selmamalak
commited on
Commit
•
2ea3aa7
1
Parent(s):
eede85f
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: organamnist-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 |
+
# organamnist-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.0450
|
27 |
+
- Accuracy: 0.9831
|
28 |
+
- Precision: 0.9880
|
29 |
+
- Recall: 0.9862
|
30 |
+
- F1: 0.9869
|
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.6786 | 1.0 | 540 | 0.1776 | 0.9339 | 0.9507 | 0.9341 | 0.9385 |
|
65 |
+
| 0.7397 | 2.0 | 1081 | 0.1783 | 0.9407 | 0.9539 | 0.9346 | 0.9415 |
|
66 |
+
| 0.7151 | 3.0 | 1621 | 0.1297 | 0.9552 | 0.9611 | 0.9555 | 0.9572 |
|
67 |
+
| 0.4964 | 4.0 | 2162 | 0.0741 | 0.9735 | 0.9765 | 0.9702 | 0.9730 |
|
68 |
+
| 0.5509 | 5.0 | 2702 | 0.0671 | 0.9770 | 0.9776 | 0.9796 | 0.9783 |
|
69 |
+
| 0.5746 | 6.0 | 3243 | 0.0642 | 0.9754 | 0.9810 | 0.9788 | 0.9795 |
|
70 |
+
| 0.4066 | 7.0 | 3783 | 0.1196 | 0.9566 | 0.9693 | 0.9563 | 0.9614 |
|
71 |
+
| 0.4046 | 8.0 | 4324 | 0.0469 | 0.9798 | 0.9853 | 0.9821 | 0.9834 |
|
72 |
+
| 0.3314 | 9.0 | 4864 | 0.0388 | 0.9861 | 0.9892 | 0.9860 | 0.9874 |
|
73 |
+
| 0.2865 | 9.99 | 5400 | 0.0450 | 0.9831 | 0.9880 | 0.9862 | 0.9869 |
|
74 |
+
|
75 |
+
|
76 |
+
### Framework versions
|
77 |
+
|
78 |
+
- PEFT 0.11.1
|
79 |
+
- Transformers 4.39.3
|
80 |
+
- Pytorch 2.1.2
|
81 |
+
- Datasets 2.18.0
|
82 |
+
- Tokenizers 0.15.2
|
adapter_model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 2400340
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e3846e03a8339cf84cdc2d1776c3e20936318343ab3921775cd4de9b90f7f074
|
3 |
size 2400340
|