selmamalak commited on
Commit
ffb3ce7
·
verified ·
1 Parent(s): 9b486ed

End of training

Browse files
Files changed (5) hide show
  1. README.md +5 -5
  2. all_results.json +16 -0
  3. eval_results.json +11 -0
  4. train_results.json +8 -0
  5. 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 [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
 
 
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.3832
27
+ - Accuracy: 0.8333
28
+ - Precision: 0.8079
29
+ - Recall: 0.7431
30
+ - F1: 0.7653
31
 
32
  ## Model description
33
 
all_results.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 9.142857142857142,
3
+ "eval_accuracy": 0.8333333333333334,
4
+ "eval_f1": 0.7652777777777777,
5
+ "eval_loss": 0.38321784138679504,
6
+ "eval_precision": 0.807936507936508,
7
+ "eval_recall": 0.7431077694235589,
8
+ "eval_runtime": 0.7783,
9
+ "eval_samples_per_second": 200.43,
10
+ "eval_steps_per_second": 12.848,
11
+ "total_flos": 3.8966228771394355e+17,
12
+ "train_loss": 0.5176919877529145,
13
+ "train_runtime": 49.4572,
14
+ "train_samples_per_second": 110.398,
15
+ "train_steps_per_second": 1.618
16
+ }
eval_results.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 9.142857142857142,
3
+ "eval_accuracy": 0.8333333333333334,
4
+ "eval_f1": 0.7652777777777777,
5
+ "eval_loss": 0.38321784138679504,
6
+ "eval_precision": 0.807936507936508,
7
+ "eval_recall": 0.7431077694235589,
8
+ "eval_runtime": 0.7783,
9
+ "eval_samples_per_second": 200.43,
10
+ "eval_steps_per_second": 12.848
11
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 9.142857142857142,
3
+ "total_flos": 3.8966228771394355e+17,
4
+ "train_loss": 0.5176919877529145,
5
+ "train_runtime": 49.4572,
6
+ "train_samples_per_second": 110.398,
7
+ "train_steps_per_second": 1.618
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.8717948717948718,
3
+ "best_model_checkpoint": "deit-base-patch16-224-finetuned-lora-medmnistv2/checkpoint-43",
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.5025883913040161,
16
+ "eval_precision": 0.8701298701298701,
17
+ "eval_recall": 0.5238095238095238,
18
+ "eval_runtime": 0.3964,
19
+ "eval_samples_per_second": 196.791,
20
+ "eval_steps_per_second": 12.615,
21
+ "step": 8
22
+ },
23
+ {
24
+ "epoch": 1.1428571428571428,
25
+ "grad_norm": 2.9126269817352295,
26
+ "learning_rate": 0.004375,
27
+ "loss": 0.6168,
28
+ "step": 10
29
+ },
30
+ {
31
+ "epoch": 1.9428571428571428,
32
+ "eval_accuracy": 0.8461538461538461,
33
+ "eval_f1": 0.7833333333333333,
34
+ "eval_loss": 0.4762480854988098,
35
+ "eval_precision": 0.8285714285714285,
36
+ "eval_recall": 0.7593984962406015,
37
+ "eval_runtime": 0.4194,
38
+ "eval_samples_per_second": 185.972,
39
+ "eval_steps_per_second": 11.921,
40
+ "step": 17
41
+ },
42
+ {
43
+ "epoch": 2.2857142857142856,
44
+ "grad_norm": 4.246772289276123,
45
+ "learning_rate": 0.00375,
46
+ "loss": 0.5954,
47
+ "step": 20
48
+ },
49
+ {
50
+ "epoch": 2.9714285714285715,
51
+ "eval_accuracy": 0.7307692307692307,
52
+ "eval_f1": 0.42222222222222217,
53
+ "eval_loss": 0.5305488109588623,
54
+ "eval_precision": 0.36538461538461536,
55
+ "eval_recall": 0.5,
56
+ "eval_runtime": 0.3621,
57
+ "eval_samples_per_second": 215.403,
58
+ "eval_steps_per_second": 13.808,
59
+ "step": 26
60
+ },
61
+ {
62
+ "epoch": 3.4285714285714284,
63
+ "grad_norm": 0.7361263036727905,
64
+ "learning_rate": 0.003125,
65
+ "loss": 0.5934,
66
+ "step": 30
67
+ },
68
+ {
69
+ "epoch": 4.0,
70
+ "eval_accuracy": 0.7692307692307693,
71
+ "eval_f1": 0.5846153846153846,
72
+ "eval_loss": 0.4789685606956482,
73
+ "eval_precision": 0.7835616438356164,
74
+ "eval_recall": 0.5864661654135338,
75
+ "eval_runtime": 0.3661,
76
+ "eval_samples_per_second": 213.032,
77
+ "eval_steps_per_second": 13.656,
78
+ "step": 35
79
+ },
80
+ {
81
+ "epoch": 4.571428571428571,
82
+ "grad_norm": 2.504427909851074,
83
+ "learning_rate": 0.0025,
84
+ "loss": 0.526,
85
+ "step": 40
86
+ },
87
+ {
88
+ "epoch": 4.914285714285715,
89
+ "eval_accuracy": 0.8717948717948718,
90
+ "eval_f1": 0.8194444444444444,
91
+ "eval_loss": 0.3693440556526184,
92
+ "eval_precision": 0.8698412698412699,
93
+ "eval_recall": 0.7919799498746867,
94
+ "eval_runtime": 0.3764,
95
+ "eval_samples_per_second": 207.212,
96
+ "eval_steps_per_second": 13.283,
97
+ "step": 43
98
+ },
99
+ {
100
+ "epoch": 5.714285714285714,
101
+ "grad_norm": 1.3234041929244995,
102
+ "learning_rate": 0.001875,
103
+ "loss": 0.4651,
104
+ "step": 50
105
+ },
106
+ {
107
+ "epoch": 5.942857142857143,
108
+ "eval_accuracy": 0.7948717948717948,
109
+ "eval_f1": 0.7533596837944665,
110
+ "eval_loss": 0.47893068194389343,
111
+ "eval_precision": 0.7433962264150944,
112
+ "eval_recall": 0.7694235588972431,
113
+ "eval_runtime": 0.4225,
114
+ "eval_samples_per_second": 184.594,
115
+ "eval_steps_per_second": 11.833,
116
+ "step": 52
117
+ },
118
+ {
119
+ "epoch": 6.857142857142857,
120
+ "grad_norm": 0.49008217453956604,
121
+ "learning_rate": 0.00125,
122
+ "loss": 0.493,
123
+ "step": 60
124
+ },
125
+ {
126
+ "epoch": 6.9714285714285715,
127
+ "eval_accuracy": 0.8205128205128205,
128
+ "eval_f1": 0.7564674397859055,
129
+ "eval_loss": 0.4186874330043793,
130
+ "eval_precision": 0.7791706846673095,
131
+ "eval_recall": 0.7418546365914787,
132
+ "eval_runtime": 0.367,
133
+ "eval_samples_per_second": 212.543,
134
+ "eval_steps_per_second": 13.625,
135
+ "step": 61
136
+ },
137
+ {
138
+ "epoch": 8.0,
139
+ "grad_norm": 1.9268220663070679,
140
+ "learning_rate": 0.000625,
141
+ "loss": 0.4337,
142
+ "step": 70
143
+ },
144
+ {
145
+ "epoch": 8.0,
146
+ "eval_accuracy": 0.8589743589743589,
147
+ "eval_f1": 0.8051328639563933,
148
+ "eval_loss": 0.3599574863910675,
149
+ "eval_precision": 0.841733870967742,
150
+ "eval_recall": 0.7832080200501252,
151
+ "eval_runtime": 0.3708,
152
+ "eval_samples_per_second": 210.383,
153
+ "eval_steps_per_second": 13.486,
154
+ "step": 70
155
+ },
156
+ {
157
+ "epoch": 8.914285714285715,
158
+ "eval_accuracy": 0.8717948717948718,
159
+ "eval_f1": 0.8260481712756467,
160
+ "eval_loss": 0.3467828929424286,
161
+ "eval_precision": 0.854387656702025,
162
+ "eval_recall": 0.8070175438596491,
163
+ "eval_runtime": 0.4353,
164
+ "eval_samples_per_second": 179.205,
165
+ "eval_steps_per_second": 11.487,
166
+ "step": 78
167
+ },
168
+ {
169
+ "epoch": 9.142857142857142,
170
+ "grad_norm": 0.5700221657752991,
171
+ "learning_rate": 0.0,
172
+ "loss": 0.418,
173
+ "step": 80
174
+ },
175
+ {
176
+ "epoch": 9.142857142857142,
177
+ "eval_accuracy": 0.8717948717948718,
178
+ "eval_f1": 0.8194444444444444,
179
+ "eval_loss": 0.3453872501850128,
180
+ "eval_precision": 0.8698412698412699,
181
+ "eval_recall": 0.7919799498746867,
182
+ "eval_runtime": 0.4424,
183
+ "eval_samples_per_second": 176.325,
184
+ "eval_steps_per_second": 11.303,
185
+ "step": 80
186
+ },
187
+ {
188
+ "epoch": 9.142857142857142,
189
+ "step": 80,
190
+ "total_flos": 3.8966228771394355e+17,
191
+ "train_loss": 0.5176919877529145,
192
+ "train_runtime": 49.4572,
193
+ "train_samples_per_second": 110.398,
194
+ "train_steps_per_second": 1.618
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
+ }