selmamalak
commited on
Commit
•
9b486ed
1
Parent(s):
7fd935b
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: facebook/deit-base-patch16-224
|
7 |
+
datasets:
|
8 |
+
- medmnist-v2
|
9 |
+
metrics:
|
10 |
+
- accuracy
|
11 |
+
- precision
|
12 |
+
- recall
|
13 |
+
- f1
|
14 |
+
model-index:
|
15 |
+
- name: breastmnist-deit-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-deit-base-finetuned
|
23 |
+
|
24 |
+
This model is a fine-tuned version of [facebook/deit-base-patch16-224](https://huggingface.co/facebook/deit-base-patch16-224) on the medmnist-v2 dataset.
|
25 |
+
It achieves the following results on the evaluation set:
|
26 |
+
- Loss: 0.3454
|
27 |
+
- Accuracy: 0.8718
|
28 |
+
- Precision: 0.8698
|
29 |
+
- Recall: 0.7920
|
30 |
+
- F1: 0.8194
|
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.5026 | 0.7436 | 0.8701 | 0.5238 | 0.4708 |
|
65 |
+
| 0.6168 | 1.9429 | 17 | 0.4762 | 0.8462 | 0.8286 | 0.7594 | 0.7833 |
|
66 |
+
| 0.5954 | 2.9714 | 26 | 0.5305 | 0.7308 | 0.3654 | 0.5 | 0.4222 |
|
67 |
+
| 0.5934 | 4.0 | 35 | 0.4790 | 0.7692 | 0.7836 | 0.5865 | 0.5846 |
|
68 |
+
| 0.526 | 4.9143 | 43 | 0.3693 | 0.8718 | 0.8698 | 0.7920 | 0.8194 |
|
69 |
+
| 0.4651 | 5.9429 | 52 | 0.4789 | 0.7949 | 0.7434 | 0.7694 | 0.7534 |
|
70 |
+
| 0.493 | 6.9714 | 61 | 0.4187 | 0.8205 | 0.7792 | 0.7419 | 0.7565 |
|
71 |
+
| 0.4337 | 8.0 | 70 | 0.3600 | 0.8590 | 0.8417 | 0.7832 | 0.8051 |
|
72 |
+
| 0.4337 | 8.9143 | 78 | 0.3468 | 0.8718 | 0.8544 | 0.8070 | 0.8260 |
|
73 |
+
| 0.418 | 9.1429 | 80 | 0.3454 | 0.8718 | 0.8698 | 0.7920 | 0.8194 |
|
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:8e590f980b7f4e9ea9629833af71840d82b45e6f6b4eb4e27af9ed1b548a205c
|
3 |
size 2372592
|