selmamalak
commited on
Commit
•
0013153
1
Parent(s):
9d0277c
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 [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) 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 [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the medmnist-v2 dataset.
|
25 |
It achieves the following results on the evaluation set:
|
26 |
+
- Loss: 0.3129
|
27 |
+
- Accuracy: 0.8782
|
28 |
+
- Precision: 0.8971
|
29 |
+
- Recall: 0.7888
|
30 |
+
- F1: 0.8232
|
31 |
|
32 |
## Model description
|
33 |
|
all_results.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 9.142857142857142,
|
3 |
+
"eval_accuracy": 0.8782051282051282,
|
4 |
+
"eval_f1": 0.8232241903739489,
|
5 |
+
"eval_loss": 0.3128599524497986,
|
6 |
+
"eval_precision": 0.8970714900947458,
|
7 |
+
"eval_recall": 0.7888471177944862,
|
8 |
+
"eval_runtime": 0.8256,
|
9 |
+
"eval_samples_per_second": 188.95,
|
10 |
+
"eval_steps_per_second": 12.112,
|
11 |
+
"total_flos": 3.8966228771394355e+17,
|
12 |
+
"train_loss": 0.41416080892086027,
|
13 |
+
"train_runtime": 62.0133,
|
14 |
+
"train_samples_per_second": 88.046,
|
15 |
+
"train_steps_per_second": 1.29
|
16 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 9.142857142857142,
|
3 |
+
"eval_accuracy": 0.8782051282051282,
|
4 |
+
"eval_f1": 0.8232241903739489,
|
5 |
+
"eval_loss": 0.3128599524497986,
|
6 |
+
"eval_precision": 0.8970714900947458,
|
7 |
+
"eval_recall": 0.7888471177944862,
|
8 |
+
"eval_runtime": 0.8256,
|
9 |
+
"eval_samples_per_second": 188.95,
|
10 |
+
"eval_steps_per_second": 12.112
|
11 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 9.142857142857142,
|
3 |
+
"total_flos": 3.8966228771394355e+17,
|
4 |
+
"train_loss": 0.41416080892086027,
|
5 |
+
"train_runtime": 62.0133,
|
6 |
+
"train_samples_per_second": 88.046,
|
7 |
+
"train_steps_per_second": 1.29
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,218 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.8846153846153846,
|
3 |
+
"best_model_checkpoint": "vit-base-patch16-224-in21k-finetuned-lora-medmnistv2/checkpoint-61",
|
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.782051282051282,
|
14 |
+
"eval_f1": 0.595114503816794,
|
15 |
+
"eval_loss": 0.4751149117946625,
|
16 |
+
"eval_precision": 0.8851351351351351,
|
17 |
+
"eval_recall": 0.5952380952380952,
|
18 |
+
"eval_runtime": 0.4075,
|
19 |
+
"eval_samples_per_second": 191.417,
|
20 |
+
"eval_steps_per_second": 12.27,
|
21 |
+
"step": 8
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"epoch": 1.1428571428571428,
|
25 |
+
"grad_norm": 0.6409297585487366,
|
26 |
+
"learning_rate": 0.004375,
|
27 |
+
"loss": 0.5516,
|
28 |
+
"step": 10
|
29 |
+
},
|
30 |
+
{
|
31 |
+
"epoch": 1.9428571428571428,
|
32 |
+
"eval_accuracy": 0.8461538461538461,
|
33 |
+
"eval_f1": 0.7982758620689654,
|
34 |
+
"eval_loss": 0.4165884256362915,
|
35 |
+
"eval_precision": 0.8090990187332738,
|
36 |
+
"eval_recall": 0.7894736842105263,
|
37 |
+
"eval_runtime": 0.3611,
|
38 |
+
"eval_samples_per_second": 215.989,
|
39 |
+
"eval_steps_per_second": 13.845,
|
40 |
+
"step": 17
|
41 |
+
},
|
42 |
+
{
|
43 |
+
"epoch": 2.2857142857142856,
|
44 |
+
"grad_norm": 0.398532509803772,
|
45 |
+
"learning_rate": 0.00375,
|
46 |
+
"loss": 0.478,
|
47 |
+
"step": 20
|
48 |
+
},
|
49 |
+
{
|
50 |
+
"epoch": 2.9714285714285715,
|
51 |
+
"eval_accuracy": 0.8205128205128205,
|
52 |
+
"eval_f1": 0.7564674397859055,
|
53 |
+
"eval_loss": 0.3675924241542816,
|
54 |
+
"eval_precision": 0.7791706846673095,
|
55 |
+
"eval_recall": 0.7418546365914787,
|
56 |
+
"eval_runtime": 0.3868,
|
57 |
+
"eval_samples_per_second": 201.635,
|
58 |
+
"eval_steps_per_second": 12.925,
|
59 |
+
"step": 26
|
60 |
+
},
|
61 |
+
{
|
62 |
+
"epoch": 3.4285714285714284,
|
63 |
+
"grad_norm": 0.3681485056877136,
|
64 |
+
"learning_rate": 0.003125,
|
65 |
+
"loss": 0.4617,
|
66 |
+
"step": 30
|
67 |
+
},
|
68 |
+
{
|
69 |
+
"epoch": 4.0,
|
70 |
+
"eval_accuracy": 0.8717948717948718,
|
71 |
+
"eval_f1": 0.8194444444444444,
|
72 |
+
"eval_loss": 0.31802448630332947,
|
73 |
+
"eval_precision": 0.8698412698412699,
|
74 |
+
"eval_recall": 0.7919799498746867,
|
75 |
+
"eval_runtime": 0.3831,
|
76 |
+
"eval_samples_per_second": 203.577,
|
77 |
+
"eval_steps_per_second": 13.05,
|
78 |
+
"step": 35
|
79 |
+
},
|
80 |
+
{
|
81 |
+
"epoch": 4.571428571428571,
|
82 |
+
"grad_norm": 0.6881831288337708,
|
83 |
+
"learning_rate": 0.0025,
|
84 |
+
"loss": 0.4208,
|
85 |
+
"step": 40
|
86 |
+
},
|
87 |
+
{
|
88 |
+
"epoch": 4.914285714285715,
|
89 |
+
"eval_accuracy": 0.8589743589743589,
|
90 |
+
"eval_f1": 0.8325200078079251,
|
91 |
+
"eval_loss": 0.4562018811702728,
|
92 |
+
"eval_precision": 0.8173076923076923,
|
93 |
+
"eval_recall": 0.8583959899749374,
|
94 |
+
"eval_runtime": 0.382,
|
95 |
+
"eval_samples_per_second": 204.197,
|
96 |
+
"eval_steps_per_second": 13.09,
|
97 |
+
"step": 43
|
98 |
+
},
|
99 |
+
{
|
100 |
+
"epoch": 5.714285714285714,
|
101 |
+
"grad_norm": 0.34260129928588867,
|
102 |
+
"learning_rate": 0.001875,
|
103 |
+
"loss": 0.3759,
|
104 |
+
"step": 50
|
105 |
+
},
|
106 |
+
{
|
107 |
+
"epoch": 5.942857142857143,
|
108 |
+
"eval_accuracy": 0.8717948717948718,
|
109 |
+
"eval_f1": 0.8417207792207791,
|
110 |
+
"eval_loss": 0.3780059218406677,
|
111 |
+
"eval_precision": 0.833201581027668,
|
112 |
+
"eval_recall": 0.8521303258145363,
|
113 |
+
"eval_runtime": 0.3775,
|
114 |
+
"eval_samples_per_second": 206.647,
|
115 |
+
"eval_steps_per_second": 13.247,
|
116 |
+
"step": 52
|
117 |
+
},
|
118 |
+
{
|
119 |
+
"epoch": 6.857142857142857,
|
120 |
+
"grad_norm": 0.5428153872489929,
|
121 |
+
"learning_rate": 0.00125,
|
122 |
+
"loss": 0.3689,
|
123 |
+
"step": 60
|
124 |
+
},
|
125 |
+
{
|
126 |
+
"epoch": 6.9714285714285715,
|
127 |
+
"eval_accuracy": 0.8846153846153846,
|
128 |
+
"eval_f1": 0.8342384887839434,
|
129 |
+
"eval_loss": 0.29926371574401855,
|
130 |
+
"eval_precision": 0.9017857142857143,
|
131 |
+
"eval_recall": 0.8007518796992481,
|
132 |
+
"eval_runtime": 0.4642,
|
133 |
+
"eval_samples_per_second": 168.033,
|
134 |
+
"eval_steps_per_second": 10.771,
|
135 |
+
"step": 61
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"epoch": 8.0,
|
139 |
+
"grad_norm": 0.7398069500923157,
|
140 |
+
"learning_rate": 0.000625,
|
141 |
+
"loss": 0.3322,
|
142 |
+
"step": 70
|
143 |
+
},
|
144 |
+
{
|
145 |
+
"epoch": 8.0,
|
146 |
+
"eval_accuracy": 0.8717948717948718,
|
147 |
+
"eval_f1": 0.8194444444444444,
|
148 |
+
"eval_loss": 0.2784874737262726,
|
149 |
+
"eval_precision": 0.8698412698412699,
|
150 |
+
"eval_recall": 0.7919799498746867,
|
151 |
+
"eval_runtime": 0.3832,
|
152 |
+
"eval_samples_per_second": 203.524,
|
153 |
+
"eval_steps_per_second": 13.046,
|
154 |
+
"step": 70
|
155 |
+
},
|
156 |
+
{
|
157 |
+
"epoch": 8.914285714285715,
|
158 |
+
"eval_accuracy": 0.8846153846153846,
|
159 |
+
"eval_f1": 0.8342384887839434,
|
160 |
+
"eval_loss": 0.2699558734893799,
|
161 |
+
"eval_precision": 0.9017857142857143,
|
162 |
+
"eval_recall": 0.8007518796992481,
|
163 |
+
"eval_runtime": 0.456,
|
164 |
+
"eval_samples_per_second": 171.058,
|
165 |
+
"eval_steps_per_second": 10.965,
|
166 |
+
"step": 78
|
167 |
+
},
|
168 |
+
{
|
169 |
+
"epoch": 9.142857142857142,
|
170 |
+
"grad_norm": 0.5633471012115479,
|
171 |
+
"learning_rate": 0.0,
|
172 |
+
"loss": 0.3242,
|
173 |
+
"step": 80
|
174 |
+
},
|
175 |
+
{
|
176 |
+
"epoch": 9.142857142857142,
|
177 |
+
"eval_accuracy": 0.8846153846153846,
|
178 |
+
"eval_f1": 0.8342384887839434,
|
179 |
+
"eval_loss": 0.2689835727214813,
|
180 |
+
"eval_precision": 0.9017857142857143,
|
181 |
+
"eval_recall": 0.8007518796992481,
|
182 |
+
"eval_runtime": 0.4354,
|
183 |
+
"eval_samples_per_second": 179.156,
|
184 |
+
"eval_steps_per_second": 11.484,
|
185 |
+
"step": 80
|
186 |
+
},
|
187 |
+
{
|
188 |
+
"epoch": 9.142857142857142,
|
189 |
+
"step": 80,
|
190 |
+
"total_flos": 3.8966228771394355e+17,
|
191 |
+
"train_loss": 0.41416080892086027,
|
192 |
+
"train_runtime": 62.0133,
|
193 |
+
"train_samples_per_second": 88.046,
|
194 |
+
"train_steps_per_second": 1.29
|
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": 3.8966228771394355e+17,
|
215 |
+
"train_batch_size": 16,
|
216 |
+
"trial_name": null,
|
217 |
+
"trial_params": null
|
218 |
+
}
|