selmamalak
commited on
Commit
•
e3d8c56
1
Parent(s):
b344f3f
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: pneumoniamnist-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 |
+
# pneumoniamnist-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.0765
|
27 |
+
- Accuracy: 0.9752
|
28 |
+
- Precision: 0.9626
|
29 |
+
- Recall: 0.9736
|
30 |
+
- F1: 0.9680
|
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 |
+
| 0.2447 | 0.9898 | 73 | 0.1180 | 0.9561 | 0.9313 | 0.9608 | 0.9446 |
|
65 |
+
| 0.2136 | 1.9932 | 147 | 0.1015 | 0.9637 | 0.9498 | 0.9562 | 0.9529 |
|
66 |
+
| 0.1431 | 2.9966 | 221 | 0.0729 | 0.9752 | 0.9732 | 0.9615 | 0.9672 |
|
67 |
+
| 0.1576 | 4.0 | 295 | 0.0873 | 0.9637 | 0.9480 | 0.9586 | 0.9532 |
|
68 |
+
| 0.2072 | 4.9898 | 368 | 0.0761 | 0.9714 | 0.9616 | 0.9638 | 0.9627 |
|
69 |
+
| 0.1908 | 5.9932 | 442 | 0.1044 | 0.9599 | 0.9348 | 0.9682 | 0.9496 |
|
70 |
+
| 0.1637 | 6.9966 | 516 | 0.0742 | 0.9676 | 0.9512 | 0.9661 | 0.9583 |
|
71 |
+
| 0.1385 | 8.0 | 590 | 0.1843 | 0.9313 | 0.8947 | 0.9537 | 0.9169 |
|
72 |
+
| 0.1335 | 8.9898 | 663 | 0.0677 | 0.9752 | 0.9626 | 0.9736 | 0.9680 |
|
73 |
+
| 0.1186 | 9.8983 | 730 | 0.0765 | 0.9752 | 0.9626 | 0.9736 | 0.9680 |
|
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:dfbf0e2344d16b6cb39887471822285caedab3cfab18f52ae1ff4da554c00aff
|
3 |
size 2372592
|