selmamalak
commited on
Commit
•
91be5f2
1
Parent(s):
c2deb64
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: microsoft/beit-base-patch16-224-pt22k-ft22k
|
7 |
+
datasets:
|
8 |
+
- medmnist-v2
|
9 |
+
metrics:
|
10 |
+
- accuracy
|
11 |
+
- precision
|
12 |
+
- recall
|
13 |
+
- f1
|
14 |
+
model-index:
|
15 |
+
- name: breastmnist-beit-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-beit-base-finetuned
|
23 |
+
|
24 |
+
This model is a fine-tuned version of [microsoft/beit-base-patch16-224-pt22k-ft22k](https://huggingface.co/microsoft/beit-base-patch16-224-pt22k-ft22k) on the medmnist-v2 dataset.
|
25 |
+
It achieves the following results on the evaluation set:
|
26 |
+
- Loss: 0.5228
|
27 |
+
- Accuracy: 0.7308
|
28 |
+
- Precision: 0.3654
|
29 |
+
- Recall: 0.5
|
30 |
+
- F1: 0.4222
|
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.8325 | 0.7308 | 0.3654 | 0.5 | 0.4222 |
|
65 |
+
| 0.7315 | 1.9429 | 17 | 0.5744 | 0.7308 | 0.3654 | 0.5 | 0.4222 |
|
66 |
+
| 0.6223 | 2.9714 | 26 | 0.5911 | 0.7308 | 0.3654 | 0.5 | 0.4222 |
|
67 |
+
| 0.5815 | 4.0 | 35 | 0.5743 | 0.7308 | 0.3654 | 0.5 | 0.4222 |
|
68 |
+
| 0.5627 | 4.9143 | 43 | 0.6546 | 0.7308 | 0.3654 | 0.5 | 0.4222 |
|
69 |
+
| 0.5552 | 5.9429 | 52 | 0.5381 | 0.7308 | 0.3654 | 0.5 | 0.4222 |
|
70 |
+
| 0.536 | 6.9714 | 61 | 0.5101 | 0.7949 | 0.8904 | 0.6190 | 0.6308 |
|
71 |
+
| 0.5454 | 8.0 | 70 | 0.5273 | 0.7692 | 0.7246 | 0.6165 | 0.6286 |
|
72 |
+
| 0.5454 | 8.9143 | 78 | 0.5176 | 0.7308 | 0.3654 | 0.5 | 0.4222 |
|
73 |
+
| 0.5058 | 9.1429 | 80 | 0.5228 | 0.7308 | 0.3654 | 0.5 | 0.4222 |
|
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 2372656
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a067b2ed3c3ca56b314741a707dfcb169bc2e34c04a30fd14c352ce226d2e8db
|
3 |
size 2372656
|