selmamalak
commited on
Commit
•
691bcde
1
Parent(s):
d388297
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.0824
|
27 |
+
- Accuracy: 0.9580
|
28 |
+
- Precision: 0.9355
|
29 |
+
- Recall: 0.9596
|
30 |
+
- F1: 0.9466
|
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.1538 | 0.9351 | 0.9013 | 0.9466 | 0.9200 |
|
65 |
+
| 0.3466 | 1.9932 | 147 | 0.2451 | 0.9122 | 0.9197 | 0.8466 | 0.8750 |
|
66 |
+
| 0.2074 | 2.9966 | 221 | 0.1711 | 0.9427 | 0.9538 | 0.8961 | 0.9203 |
|
67 |
+
| 0.1928 | 4.0 | 295 | 0.1044 | 0.9618 | 0.9482 | 0.9525 | 0.9503 |
|
68 |
+
| 0.2043 | 4.9898 | 368 | 0.1007 | 0.9580 | 0.9491 | 0.9403 | 0.9446 |
|
69 |
+
| 0.1717 | 5.9932 | 442 | 0.0930 | 0.9618 | 0.9432 | 0.9598 | 0.9510 |
|
70 |
+
| 0.1498 | 6.9966 | 516 | 0.0845 | 0.9637 | 0.9448 | 0.9635 | 0.9536 |
|
71 |
+
| 0.1531 | 8.0 | 590 | 0.1661 | 0.9332 | 0.8974 | 0.9526 | 0.9188 |
|
72 |
+
| 0.1451 | 8.9898 | 663 | 0.0760 | 0.9637 | 0.9464 | 0.9611 | 0.9534 |
|
73 |
+
| 0.1263 | 9.8983 | 730 | 0.0824 | 0.9580 | 0.9355 | 0.9596 | 0.9466 |
|
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:ed02fdb90a5be9c534df344b15a7273f0c0215a36c7aefe04fb65386dcbc6c18
|
3 |
size 2372592
|