selmamalak
commited on
Commit
•
80a1644
1
Parent(s):
a11ed6d
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/swin-large-patch4-window7-224-in22k
|
7 |
+
datasets:
|
8 |
+
- medmnist-v2
|
9 |
+
metrics:
|
10 |
+
- accuracy
|
11 |
+
- precision
|
12 |
+
- recall
|
13 |
+
- f1
|
14 |
+
model-index:
|
15 |
+
- name: breastmnist-swin-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-swin-base-finetuned
|
23 |
+
|
24 |
+
This model is a fine-tuned version of [microsoft/swin-large-patch4-window7-224-in22k](https://huggingface.co/microsoft/swin-large-patch4-window7-224-in22k) on the medmnist-v2 dataset.
|
25 |
+
It achieves the following results on the evaluation set:
|
26 |
+
- Loss: 0.3214
|
27 |
+
- Accuracy: 0.8846
|
28 |
+
- Precision: 0.8506
|
29 |
+
- Recall: 0.8609
|
30 |
+
- F1: 0.8555
|
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.5069 | 0.7436 | 0.8701 | 0.5238 | 0.4708 |
|
65 |
+
| 0.6976 | 1.9429 | 17 | 0.4591 | 0.8590 | 0.8190 | 0.8283 | 0.8234 |
|
66 |
+
| 0.5351 | 2.9714 | 26 | 0.3745 | 0.8846 | 0.8667 | 0.8308 | 0.8462 |
|
67 |
+
| 0.4998 | 4.0 | 35 | 0.3243 | 0.8974 | 0.8697 | 0.8697 | 0.8697 |
|
68 |
+
| 0.4569 | 4.9143 | 43 | 0.4070 | 0.8590 | 0.8306 | 0.7982 | 0.8120 |
|
69 |
+
| 0.4182 | 5.9429 | 52 | 0.3801 | 0.8718 | 0.8439 | 0.8221 | 0.8319 |
|
70 |
+
| 0.4432 | 6.9714 | 61 | 0.3071 | 0.8718 | 0.8371 | 0.8371 | 0.8371 |
|
71 |
+
| 0.3988 | 8.0 | 70 | 0.3205 | 0.8718 | 0.8332 | 0.8521 | 0.8417 |
|
72 |
+
| 0.3988 | 8.9143 | 78 | 0.3239 | 0.8846 | 0.8506 | 0.8609 | 0.8555 |
|
73 |
+
| 0.3993 | 9.1429 | 80 | 0.3214 | 0.8846 | 0.8506 | 0.8609 | 0.8555 |
|
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 4647264
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fd23a493f8a85e89023ebd9b9e8118e17675224e8f5127ecd0cf47a69a880428
|
3 |
size 4647264
|