selmamalak
commited on
Commit
•
9d0277c
1
Parent(s):
3f7c176
Model save
Browse files- README.md +82 -0
- adapter_model.safetensors +1 -1
README.md
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
base_model: google/vit-base-patch16-224-in21k
|
7 |
+
datasets:
|
8 |
+
- medmnist-v2
|
9 |
+
metrics:
|
10 |
+
- accuracy
|
11 |
+
- precision
|
12 |
+
- recall
|
13 |
+
- f1
|
14 |
+
model-index:
|
15 |
+
- name: breastmnist-vit-base-finetuned
|
16 |
+
results: []
|
17 |
+
---
|
18 |
+
|
19 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
20 |
+
should probably proofread and complete it, then remove this comment. -->
|
21 |
+
|
22 |
+
# breastmnist-vit-base-finetuned
|
23 |
+
|
24 |
+
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the medmnist-v2 dataset.
|
25 |
+
It achieves the following results on the evaluation set:
|
26 |
+
- Loss: 0.2690
|
27 |
+
- Accuracy: 0.8846
|
28 |
+
- Precision: 0.9018
|
29 |
+
- Recall: 0.8008
|
30 |
+
- F1: 0.8342
|
31 |
+
|
32 |
+
## Model description
|
33 |
+
|
34 |
+
More information needed
|
35 |
+
|
36 |
+
## Intended uses & limitations
|
37 |
+
|
38 |
+
More information needed
|
39 |
+
|
40 |
+
## Training and evaluation data
|
41 |
+
|
42 |
+
More information needed
|
43 |
+
|
44 |
+
## Training procedure
|
45 |
+
|
46 |
+
### Training hyperparameters
|
47 |
+
|
48 |
+
The following hyperparameters were used during training:
|
49 |
+
- learning_rate: 0.005
|
50 |
+
- train_batch_size: 16
|
51 |
+
- eval_batch_size: 16
|
52 |
+
- seed: 42
|
53 |
+
- gradient_accumulation_steps: 4
|
54 |
+
- total_train_batch_size: 64
|
55 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
56 |
+
- lr_scheduler_type: linear
|
57 |
+
- num_epochs: 10
|
58 |
+
- mixed_precision_training: Native AMP
|
59 |
+
|
60 |
+
### Training results
|
61 |
+
|
62 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|
63 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
|
64 |
+
| No log | 0.9143 | 8 | 0.4751 | 0.7821 | 0.8851 | 0.5952 | 0.5951 |
|
65 |
+
| 0.5516 | 1.9429 | 17 | 0.4166 | 0.8462 | 0.8091 | 0.7895 | 0.7983 |
|
66 |
+
| 0.478 | 2.9714 | 26 | 0.3676 | 0.8205 | 0.7792 | 0.7419 | 0.7565 |
|
67 |
+
| 0.4617 | 4.0 | 35 | 0.3180 | 0.8718 | 0.8698 | 0.7920 | 0.8194 |
|
68 |
+
| 0.4208 | 4.9143 | 43 | 0.4562 | 0.8590 | 0.8173 | 0.8584 | 0.8325 |
|
69 |
+
| 0.3759 | 5.9429 | 52 | 0.3780 | 0.8718 | 0.8332 | 0.8521 | 0.8417 |
|
70 |
+
| 0.3689 | 6.9714 | 61 | 0.2993 | 0.8846 | 0.9018 | 0.8008 | 0.8342 |
|
71 |
+
| 0.3322 | 8.0 | 70 | 0.2785 | 0.8718 | 0.8698 | 0.7920 | 0.8194 |
|
72 |
+
| 0.3322 | 8.9143 | 78 | 0.2700 | 0.8846 | 0.9018 | 0.8008 | 0.8342 |
|
73 |
+
| 0.3242 | 9.1429 | 80 | 0.2690 | 0.8846 | 0.9018 | 0.8008 | 0.8342 |
|
74 |
+
|
75 |
+
|
76 |
+
### Framework versions
|
77 |
+
|
78 |
+
- PEFT 0.11.1
|
79 |
+
- Transformers 4.41.1
|
80 |
+
- Pytorch 2.3.0+cu121
|
81 |
+
- Datasets 2.19.1
|
82 |
+
- Tokenizers 0.19.1
|
adapter_model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 2372592
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d264639fd7f3d3c0226372774ecc1f8506583c426fcb93657768e4c64847e12e
|
3 |
size 2372592
|