selmamalak
commited on
Commit
•
4698565
1
Parent(s):
80a1644
End of training
Browse files- README.md +5 -5
- all_results.json +16 -0
- eval_results.json +11 -0
- train_results.json +8 -0
- trainer_state.json +218 -0
README.md
CHANGED
@@ -23,11 +23,11 @@ should probably proofread and complete it, then remove this comment. -->
|
|
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.
|
27 |
-
- Accuracy: 0.
|
28 |
-
- Precision: 0.
|
29 |
-
- Recall: 0.
|
30 |
-
- F1: 0.
|
31 |
|
32 |
## Model description
|
33 |
|
|
|
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.3595
|
27 |
+
- Accuracy: 0.8526
|
28 |
+
- Precision: 0.8162
|
29 |
+
- Recall: 0.8014
|
30 |
+
- F1: 0.8082
|
31 |
|
32 |
## Model description
|
33 |
|
all_results.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 9.142857142857142,
|
3 |
+
"eval_accuracy": 0.8525641025641025,
|
4 |
+
"eval_f1": 0.808241141574475,
|
5 |
+
"eval_loss": 0.359468936920166,
|
6 |
+
"eval_precision": 0.8162393162393162,
|
7 |
+
"eval_recall": 0.8013784461152882,
|
8 |
+
"eval_runtime": 1.7938,
|
9 |
+
"eval_samples_per_second": 86.967,
|
10 |
+
"eval_steps_per_second": 5.575,
|
11 |
+
"total_flos": 8.847492793597624e+17,
|
12 |
+
"train_loss": 0.48110649585723875,
|
13 |
+
"train_runtime": 140.8237,
|
14 |
+
"train_samples_per_second": 38.772,
|
15 |
+
"train_steps_per_second": 0.568
|
16 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 9.142857142857142,
|
3 |
+
"eval_accuracy": 0.8525641025641025,
|
4 |
+
"eval_f1": 0.808241141574475,
|
5 |
+
"eval_loss": 0.359468936920166,
|
6 |
+
"eval_precision": 0.8162393162393162,
|
7 |
+
"eval_recall": 0.8013784461152882,
|
8 |
+
"eval_runtime": 1.7938,
|
9 |
+
"eval_samples_per_second": 86.967,
|
10 |
+
"eval_steps_per_second": 5.575
|
11 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 9.142857142857142,
|
3 |
+
"total_flos": 8.847492793597624e+17,
|
4 |
+
"train_loss": 0.48110649585723875,
|
5 |
+
"train_runtime": 140.8237,
|
6 |
+
"train_samples_per_second": 38.772,
|
7 |
+
"train_steps_per_second": 0.568
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,218 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.8974358974358975,
|
3 |
+
"best_model_checkpoint": "swin-large-patch4-window7-224-in22k-finetuned-lora-medmnistv2/checkpoint-35",
|
4 |
+
"epoch": 9.142857142857142,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 80,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 0.9142857142857143,
|
13 |
+
"eval_accuracy": 0.7435897435897436,
|
14 |
+
"eval_f1": 0.47082767978290374,
|
15 |
+
"eval_loss": 0.506903886795044,
|
16 |
+
"eval_precision": 0.8701298701298701,
|
17 |
+
"eval_recall": 0.5238095238095238,
|
18 |
+
"eval_runtime": 1.0819,
|
19 |
+
"eval_samples_per_second": 72.096,
|
20 |
+
"eval_steps_per_second": 4.622,
|
21 |
+
"step": 8
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"epoch": 1.1428571428571428,
|
25 |
+
"grad_norm": 1.5360957384109497,
|
26 |
+
"learning_rate": 0.004375,
|
27 |
+
"loss": 0.6976,
|
28 |
+
"step": 10
|
29 |
+
},
|
30 |
+
{
|
31 |
+
"epoch": 1.9428571428571428,
|
32 |
+
"eval_accuracy": 0.8589743589743589,
|
33 |
+
"eval_f1": 0.8234204568841326,
|
34 |
+
"eval_loss": 0.4591017961502075,
|
35 |
+
"eval_precision": 0.8189935064935066,
|
36 |
+
"eval_recall": 0.8283208020050126,
|
37 |
+
"eval_runtime": 0.8911,
|
38 |
+
"eval_samples_per_second": 87.528,
|
39 |
+
"eval_steps_per_second": 5.611,
|
40 |
+
"step": 17
|
41 |
+
},
|
42 |
+
{
|
43 |
+
"epoch": 2.2857142857142856,
|
44 |
+
"grad_norm": 0.8164573311805725,
|
45 |
+
"learning_rate": 0.00375,
|
46 |
+
"loss": 0.5351,
|
47 |
+
"step": 20
|
48 |
+
},
|
49 |
+
{
|
50 |
+
"epoch": 2.9714285714285715,
|
51 |
+
"eval_accuracy": 0.8846153846153846,
|
52 |
+
"eval_f1": 0.8461538461538461,
|
53 |
+
"eval_loss": 0.37451839447021484,
|
54 |
+
"eval_precision": 0.8666666666666667,
|
55 |
+
"eval_recall": 0.8308270676691729,
|
56 |
+
"eval_runtime": 0.9058,
|
57 |
+
"eval_samples_per_second": 86.111,
|
58 |
+
"eval_steps_per_second": 5.52,
|
59 |
+
"step": 26
|
60 |
+
},
|
61 |
+
{
|
62 |
+
"epoch": 3.4285714285714284,
|
63 |
+
"grad_norm": 0.974304735660553,
|
64 |
+
"learning_rate": 0.003125,
|
65 |
+
"loss": 0.4998,
|
66 |
+
"step": 30
|
67 |
+
},
|
68 |
+
{
|
69 |
+
"epoch": 4.0,
|
70 |
+
"eval_accuracy": 0.8974358974358975,
|
71 |
+
"eval_f1": 0.8696741854636592,
|
72 |
+
"eval_loss": 0.32434844970703125,
|
73 |
+
"eval_precision": 0.8696741854636592,
|
74 |
+
"eval_recall": 0.8696741854636592,
|
75 |
+
"eval_runtime": 0.9239,
|
76 |
+
"eval_samples_per_second": 84.422,
|
77 |
+
"eval_steps_per_second": 5.412,
|
78 |
+
"step": 35
|
79 |
+
},
|
80 |
+
{
|
81 |
+
"epoch": 4.571428571428571,
|
82 |
+
"grad_norm": 0.9340265989303589,
|
83 |
+
"learning_rate": 0.0025,
|
84 |
+
"loss": 0.4569,
|
85 |
+
"step": 40
|
86 |
+
},
|
87 |
+
{
|
88 |
+
"epoch": 4.914285714285715,
|
89 |
+
"eval_accuracy": 0.8589743589743589,
|
90 |
+
"eval_f1": 0.811965811965812,
|
91 |
+
"eval_loss": 0.40701231360435486,
|
92 |
+
"eval_precision": 0.8305555555555555,
|
93 |
+
"eval_recall": 0.7982456140350878,
|
94 |
+
"eval_runtime": 0.8814,
|
95 |
+
"eval_samples_per_second": 88.5,
|
96 |
+
"eval_steps_per_second": 5.673,
|
97 |
+
"step": 43
|
98 |
+
},
|
99 |
+
{
|
100 |
+
"epoch": 5.714285714285714,
|
101 |
+
"grad_norm": 1.012099266052246,
|
102 |
+
"learning_rate": 0.001875,
|
103 |
+
"loss": 0.4182,
|
104 |
+
"step": 50
|
105 |
+
},
|
106 |
+
{
|
107 |
+
"epoch": 5.942857142857143,
|
108 |
+
"eval_accuracy": 0.8717948717948718,
|
109 |
+
"eval_f1": 0.831896551724138,
|
110 |
+
"eval_loss": 0.3801339566707611,
|
111 |
+
"eval_precision": 0.8438893844781445,
|
112 |
+
"eval_recall": 0.8220551378446115,
|
113 |
+
"eval_runtime": 0.8409,
|
114 |
+
"eval_samples_per_second": 92.758,
|
115 |
+
"eval_steps_per_second": 5.946,
|
116 |
+
"step": 52
|
117 |
+
},
|
118 |
+
{
|
119 |
+
"epoch": 6.857142857142857,
|
120 |
+
"grad_norm": 0.7531532645225525,
|
121 |
+
"learning_rate": 0.00125,
|
122 |
+
"loss": 0.4432,
|
123 |
+
"step": 60
|
124 |
+
},
|
125 |
+
{
|
126 |
+
"epoch": 6.9714285714285715,
|
127 |
+
"eval_accuracy": 0.8717948717948718,
|
128 |
+
"eval_f1": 0.8370927318295739,
|
129 |
+
"eval_loss": 0.3070574402809143,
|
130 |
+
"eval_precision": 0.8370927318295739,
|
131 |
+
"eval_recall": 0.8370927318295739,
|
132 |
+
"eval_runtime": 0.856,
|
133 |
+
"eval_samples_per_second": 91.124,
|
134 |
+
"eval_steps_per_second": 5.841,
|
135 |
+
"step": 61
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"epoch": 8.0,
|
139 |
+
"grad_norm": 1.1633806228637695,
|
140 |
+
"learning_rate": 0.000625,
|
141 |
+
"loss": 0.3988,
|
142 |
+
"step": 70
|
143 |
+
},
|
144 |
+
{
|
145 |
+
"epoch": 8.0,
|
146 |
+
"eval_accuracy": 0.8717948717948718,
|
147 |
+
"eval_f1": 0.8417207792207791,
|
148 |
+
"eval_loss": 0.320502907037735,
|
149 |
+
"eval_precision": 0.833201581027668,
|
150 |
+
"eval_recall": 0.8521303258145363,
|
151 |
+
"eval_runtime": 0.8567,
|
152 |
+
"eval_samples_per_second": 91.048,
|
153 |
+
"eval_steps_per_second": 5.836,
|
154 |
+
"step": 70
|
155 |
+
},
|
156 |
+
{
|
157 |
+
"epoch": 8.914285714285715,
|
158 |
+
"eval_accuracy": 0.8846153846153846,
|
159 |
+
"eval_f1": 0.8555258283597448,
|
160 |
+
"eval_loss": 0.3238745331764221,
|
161 |
+
"eval_precision": 0.8506493506493507,
|
162 |
+
"eval_recall": 0.8609022556390977,
|
163 |
+
"eval_runtime": 0.8616,
|
164 |
+
"eval_samples_per_second": 90.526,
|
165 |
+
"eval_steps_per_second": 5.803,
|
166 |
+
"step": 78
|
167 |
+
},
|
168 |
+
{
|
169 |
+
"epoch": 9.142857142857142,
|
170 |
+
"grad_norm": 0.8995063900947571,
|
171 |
+
"learning_rate": 0.0,
|
172 |
+
"loss": 0.3993,
|
173 |
+
"step": 80
|
174 |
+
},
|
175 |
+
{
|
176 |
+
"epoch": 9.142857142857142,
|
177 |
+
"eval_accuracy": 0.8846153846153846,
|
178 |
+
"eval_f1": 0.8555258283597448,
|
179 |
+
"eval_loss": 0.32138964533805847,
|
180 |
+
"eval_precision": 0.8506493506493507,
|
181 |
+
"eval_recall": 0.8609022556390977,
|
182 |
+
"eval_runtime": 0.8772,
|
183 |
+
"eval_samples_per_second": 88.917,
|
184 |
+
"eval_steps_per_second": 5.7,
|
185 |
+
"step": 80
|
186 |
+
},
|
187 |
+
{
|
188 |
+
"epoch": 9.142857142857142,
|
189 |
+
"step": 80,
|
190 |
+
"total_flos": 8.847492793597624e+17,
|
191 |
+
"train_loss": 0.48110649585723875,
|
192 |
+
"train_runtime": 140.8237,
|
193 |
+
"train_samples_per_second": 38.772,
|
194 |
+
"train_steps_per_second": 0.568
|
195 |
+
}
|
196 |
+
],
|
197 |
+
"logging_steps": 10,
|
198 |
+
"max_steps": 80,
|
199 |
+
"num_input_tokens_seen": 0,
|
200 |
+
"num_train_epochs": 10,
|
201 |
+
"save_steps": 500,
|
202 |
+
"stateful_callbacks": {
|
203 |
+
"TrainerControl": {
|
204 |
+
"args": {
|
205 |
+
"should_epoch_stop": false,
|
206 |
+
"should_evaluate": false,
|
207 |
+
"should_log": false,
|
208 |
+
"should_save": true,
|
209 |
+
"should_training_stop": true
|
210 |
+
},
|
211 |
+
"attributes": {}
|
212 |
+
}
|
213 |
+
},
|
214 |
+
"total_flos": 8.847492793597624e+17,
|
215 |
+
"train_batch_size": 16,
|
216 |
+
"trial_name": null,
|
217 |
+
"trial_params": null
|
218 |
+
}
|