sharren commited on
Commit
4a3cf5e
1 Parent(s): 24b08a5

🍻 cheers

Browse files
README.md CHANGED
@@ -2,6 +2,7 @@
2
  license: apache-2.0
3
  base_model: google/vit-base-patch16-224
4
  tags:
 
5
  - generated_from_trainer
6
  metrics:
7
  - accuracy
@@ -18,13 +19,13 @@ should probably proofread and complete it, then remove this comment. -->
18
 
19
  # vit-epsilon-1e-9
20
 
21
- This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on an unknown dataset.
22
  It achieves the following results on the evaluation set:
23
- - Loss: 0.6021
24
- - Accuracy: 0.8627
25
- - Precision: 0.8567
26
- - Recall: 0.8627
27
- - F1: 0.8572
28
 
29
  ## Model description
30
 
 
2
  license: apache-2.0
3
  base_model: google/vit-base-patch16-224
4
  tags:
5
+ - image-classification
6
  - generated_from_trainer
7
  metrics:
8
  - accuracy
 
19
 
20
  # vit-epsilon-1e-9
21
 
22
+ This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the skin-cancer dataset.
23
  It achieves the following results on the evaluation set:
24
+ - Loss: 0.5143
25
+ - Accuracy: 0.8131
26
+ - Precision: 0.8359
27
+ - Recall: 0.8131
28
+ - F1: 0.8206
29
 
30
  ## Model description
31
 
all_results.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 21.0,
3
+ "eval_accuracy": 0.8131067961165048,
4
+ "eval_f1": 0.8206122662707227,
5
+ "eval_loss": 0.5143479704856873,
6
+ "eval_precision": 0.8358668720104463,
7
+ "eval_recall": 0.8131067961165048,
8
+ "eval_runtime": 22.7414,
9
+ "eval_samples_per_second": 126.817,
10
+ "eval_steps_per_second": 15.874,
11
+ "total_flos": 8.345331343683404e+18,
12
+ "train_loss": 0.6620033840241126,
13
+ "train_runtime": 2520.6758,
14
+ "train_samples_per_second": 203.438,
15
+ "train_steps_per_second": 12.735
16
+ }
eval_results.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 21.0,
3
+ "eval_accuracy": 0.8131067961165048,
4
+ "eval_f1": 0.8206122662707227,
5
+ "eval_loss": 0.5143479704856873,
6
+ "eval_precision": 0.8358668720104463,
7
+ "eval_recall": 0.8131067961165048,
8
+ "eval_runtime": 22.7414,
9
+ "eval_samples_per_second": 126.817,
10
+ "eval_steps_per_second": 15.874
11
+ }
runs/Mar22_09-25-07_80a90583e6d6/events.out.tfevents.1711102086.80a90583e6d6.2864.7 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1df46c5213de5a3cc61e2f5bf2cd507ea848039d103020ed0ad0d661e6e9065
3
+ size 560
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 21.0,
3
+ "total_flos": 8.345331343683404e+18,
4
+ "train_loss": 0.6620033840241126,
5
+ "train_runtime": 2520.6758,
6
+ "train_samples_per_second": 203.438,
7
+ "train_steps_per_second": 12.735
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,429 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.5143479704856873,
3
+ "best_model_checkpoint": "./vit-epsilon-1e-9/checkpoint-3531",
4
+ "epoch": 21.0,
5
+ "eval_steps": 500,
6
+ "global_step": 6741,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 1.0,
13
+ "grad_norm": 31.074954986572266,
14
+ "learning_rate": 1.8291979226774382e-05,
15
+ "loss": 1.7127,
16
+ "step": 321
17
+ },
18
+ {
19
+ "epoch": 1.0,
20
+ "eval_accuracy": 0.6986823855755895,
21
+ "eval_f1": 0.6331209029522241,
22
+ "eval_loss": 0.9578500390052795,
23
+ "eval_precision": 0.6581233216765519,
24
+ "eval_recall": 0.6986823855755895,
25
+ "eval_runtime": 22.9329,
26
+ "eval_samples_per_second": 125.758,
27
+ "eval_steps_per_second": 15.742,
28
+ "step": 321
29
+ },
30
+ {
31
+ "epoch": 2.0,
32
+ "grad_norm": 32.117530822753906,
33
+ "learning_rate": 3.675706866705136e-05,
34
+ "loss": 1.1596,
35
+ "step": 642
36
+ },
37
+ {
38
+ "epoch": 2.0,
39
+ "eval_accuracy": 0.7298890429958391,
40
+ "eval_f1": 0.7299352756165304,
41
+ "eval_loss": 0.7026094794273376,
42
+ "eval_precision": 0.7441954806441219,
43
+ "eval_recall": 0.7298890429958391,
44
+ "eval_runtime": 22.7527,
45
+ "eval_samples_per_second": 126.754,
46
+ "eval_steps_per_second": 15.866,
47
+ "step": 642
48
+ },
49
+ {
50
+ "epoch": 3.0,
51
+ "grad_norm": 7.492339134216309,
52
+ "learning_rate": 5.52798615118292e-05,
53
+ "loss": 1.0337,
54
+ "step": 963
55
+ },
56
+ {
57
+ "epoch": 3.0,
58
+ "eval_accuracy": 0.7548543689320388,
59
+ "eval_f1": 0.7356331445906263,
60
+ "eval_loss": 0.6560060977935791,
61
+ "eval_precision": 0.7647340906949731,
62
+ "eval_recall": 0.7548543689320388,
63
+ "eval_runtime": 22.6575,
64
+ "eval_samples_per_second": 127.287,
65
+ "eval_steps_per_second": 15.933,
66
+ "step": 963
67
+ },
68
+ {
69
+ "epoch": 4.0,
70
+ "grad_norm": 26.88030433654785,
71
+ "learning_rate": 7.380265435660705e-05,
72
+ "loss": 0.9695,
73
+ "step": 1284
74
+ },
75
+ {
76
+ "epoch": 4.0,
77
+ "eval_accuracy": 0.7656033287101248,
78
+ "eval_f1": 0.7758337241261131,
79
+ "eval_loss": 0.5708493590354919,
80
+ "eval_precision": 0.7963463250386764,
81
+ "eval_recall": 0.7656033287101248,
82
+ "eval_runtime": 23.0619,
83
+ "eval_samples_per_second": 125.055,
84
+ "eval_steps_per_second": 15.654,
85
+ "step": 1284
86
+ },
87
+ {
88
+ "epoch": 5.0,
89
+ "grad_norm": 5.717092514038086,
90
+ "learning_rate": 9.232544720138489e-05,
91
+ "loss": 0.9137,
92
+ "step": 1605
93
+ },
94
+ {
95
+ "epoch": 5.0,
96
+ "eval_accuracy": 0.7610957004160888,
97
+ "eval_f1": 0.7625168248891897,
98
+ "eval_loss": 0.646024227142334,
99
+ "eval_precision": 0.7828031789425305,
100
+ "eval_recall": 0.7610957004160888,
101
+ "eval_runtime": 22.9345,
102
+ "eval_samples_per_second": 125.75,
103
+ "eval_steps_per_second": 15.74,
104
+ "step": 1605
105
+ },
106
+ {
107
+ "epoch": 6.0,
108
+ "grad_norm": 8.619205474853516,
109
+ "learning_rate": 9.984876489938473e-05,
110
+ "loss": 1.0053,
111
+ "step": 1926
112
+ },
113
+ {
114
+ "epoch": 6.0,
115
+ "eval_accuracy": 0.7673370319001387,
116
+ "eval_f1": 0.7796592423510157,
117
+ "eval_loss": 0.6020165681838989,
118
+ "eval_precision": 0.8048902741712624,
119
+ "eval_recall": 0.7673370319001387,
120
+ "eval_runtime": 22.5129,
121
+ "eval_samples_per_second": 128.104,
122
+ "eval_steps_per_second": 16.035,
123
+ "step": 1926
124
+ },
125
+ {
126
+ "epoch": 7.0,
127
+ "grad_norm": 7.978899955749512,
128
+ "learning_rate": 9.889494151200358e-05,
129
+ "loss": 0.896,
130
+ "step": 2247
131
+ },
132
+ {
133
+ "epoch": 7.0,
134
+ "eval_accuracy": 0.7271151178918169,
135
+ "eval_f1": 0.747671205921563,
136
+ "eval_loss": 0.7087484002113342,
137
+ "eval_precision": 0.8055197232423271,
138
+ "eval_recall": 0.7271151178918169,
139
+ "eval_runtime": 22.9629,
140
+ "eval_samples_per_second": 125.594,
141
+ "eval_steps_per_second": 15.721,
142
+ "step": 2247
143
+ },
144
+ {
145
+ "epoch": 8.0,
146
+ "grad_norm": 3.2379393577575684,
147
+ "learning_rate": 9.707962612088379e-05,
148
+ "loss": 0.7646,
149
+ "step": 2568
150
+ },
151
+ {
152
+ "epoch": 8.0,
153
+ "eval_accuracy": 0.7441054091539528,
154
+ "eval_f1": 0.7622121595512239,
155
+ "eval_loss": 0.6615051627159119,
156
+ "eval_precision": 0.8133816759254769,
157
+ "eval_recall": 0.7441054091539528,
158
+ "eval_runtime": 22.527,
159
+ "eval_samples_per_second": 128.024,
160
+ "eval_steps_per_second": 16.025,
161
+ "step": 2568
162
+ },
163
+ {
164
+ "epoch": 9.0,
165
+ "grad_norm": 1.0829046964645386,
166
+ "learning_rate": 9.443480321450928e-05,
167
+ "loss": 0.7262,
168
+ "step": 2889
169
+ },
170
+ {
171
+ "epoch": 9.0,
172
+ "eval_accuracy": 0.79750346740638,
173
+ "eval_f1": 0.7985217217665854,
174
+ "eval_loss": 0.5611338019371033,
175
+ "eval_precision": 0.8189863473770944,
176
+ "eval_recall": 0.79750346740638,
177
+ "eval_runtime": 22.5299,
178
+ "eval_samples_per_second": 128.008,
179
+ "eval_steps_per_second": 16.023,
180
+ "step": 2889
181
+ },
182
+ {
183
+ "epoch": 10.0,
184
+ "grad_norm": 12.064545631408691,
185
+ "learning_rate": 9.100707257835249e-05,
186
+ "loss": 0.7025,
187
+ "step": 3210
188
+ },
189
+ {
190
+ "epoch": 10.0,
191
+ "eval_accuracy": 0.79750346740638,
192
+ "eval_f1": 0.805841955667511,
193
+ "eval_loss": 0.5337752103805542,
194
+ "eval_precision": 0.8277828822554938,
195
+ "eval_recall": 0.79750346740638,
196
+ "eval_runtime": 22.769,
197
+ "eval_samples_per_second": 126.663,
198
+ "eval_steps_per_second": 15.855,
199
+ "step": 3210
200
+ },
201
+ {
202
+ "epoch": 11.0,
203
+ "grad_norm": 22.526174545288086,
204
+ "learning_rate": 8.685682824178951e-05,
205
+ "loss": 0.6138,
206
+ "step": 3531
207
+ },
208
+ {
209
+ "epoch": 11.0,
210
+ "eval_accuracy": 0.8131067961165048,
211
+ "eval_f1": 0.8206122662707227,
212
+ "eval_loss": 0.5143479704856873,
213
+ "eval_precision": 0.8358668720104463,
214
+ "eval_recall": 0.8131067961165048,
215
+ "eval_runtime": 22.3689,
216
+ "eval_samples_per_second": 128.929,
217
+ "eval_steps_per_second": 16.138,
218
+ "step": 3531
219
+ },
220
+ {
221
+ "epoch": 12.0,
222
+ "grad_norm": 4.508119583129883,
223
+ "learning_rate": 8.205719438083829e-05,
224
+ "loss": 0.5582,
225
+ "step": 3852
226
+ },
227
+ {
228
+ "epoch": 12.0,
229
+ "eval_accuracy": 0.7864077669902912,
230
+ "eval_f1": 0.7992483326872344,
231
+ "eval_loss": 0.6157103180885315,
232
+ "eval_precision": 0.8253081034753366,
233
+ "eval_recall": 0.7864077669902912,
234
+ "eval_runtime": 22.2433,
235
+ "eval_samples_per_second": 129.657,
236
+ "eval_steps_per_second": 16.23,
237
+ "step": 3852
238
+ },
239
+ {
240
+ "epoch": 13.0,
241
+ "grad_norm": 37.043174743652344,
242
+ "learning_rate": 7.669273692531118e-05,
243
+ "loss": 0.4736,
244
+ "step": 4173
245
+ },
246
+ {
247
+ "epoch": 13.0,
248
+ "eval_accuracy": 0.8117198335644937,
249
+ "eval_f1": 0.8007107317782642,
250
+ "eval_loss": 0.6899198293685913,
251
+ "eval_precision": 0.8252732818495465,
252
+ "eval_recall": 0.8117198335644937,
253
+ "eval_runtime": 23.2981,
254
+ "eval_samples_per_second": 123.787,
255
+ "eval_steps_per_second": 15.495,
256
+ "step": 4173
257
+ },
258
+ {
259
+ "epoch": 14.0,
260
+ "grad_norm": 2.777528762817383,
261
+ "learning_rate": 7.085797357089247e-05,
262
+ "loss": 0.4581,
263
+ "step": 4494
264
+ },
265
+ {
266
+ "epoch": 14.0,
267
+ "eval_accuracy": 0.812760055478502,
268
+ "eval_f1": 0.8198980869707609,
269
+ "eval_loss": 0.6062142252922058,
270
+ "eval_precision": 0.8446721645536698,
271
+ "eval_recall": 0.812760055478502,
272
+ "eval_runtime": 22.8029,
273
+ "eval_samples_per_second": 126.475,
274
+ "eval_steps_per_second": 15.831,
275
+ "step": 4494
276
+ },
277
+ {
278
+ "epoch": 15.0,
279
+ "grad_norm": 1.7661919593811035,
280
+ "learning_rate": 6.46557084486047e-05,
281
+ "loss": 0.407,
282
+ "step": 4815
283
+ },
284
+ {
285
+ "epoch": 15.0,
286
+ "eval_accuracy": 0.8307905686546463,
287
+ "eval_f1": 0.8338660350277718,
288
+ "eval_loss": 0.531688928604126,
289
+ "eval_precision": 0.8410181561922312,
290
+ "eval_recall": 0.8307905686546463,
291
+ "eval_runtime": 22.886,
292
+ "eval_samples_per_second": 126.016,
293
+ "eval_steps_per_second": 15.774,
294
+ "step": 4815
295
+ },
296
+ {
297
+ "epoch": 16.0,
298
+ "grad_norm": 45.85359573364258,
299
+ "learning_rate": 5.8195220793532045e-05,
300
+ "loss": 0.369,
301
+ "step": 5136
302
+ },
303
+ {
304
+ "epoch": 16.0,
305
+ "eval_accuracy": 0.8196948682385575,
306
+ "eval_f1": 0.8270482179777584,
307
+ "eval_loss": 0.6474519371986389,
308
+ "eval_precision": 0.8414288606484934,
309
+ "eval_recall": 0.8196948682385575,
310
+ "eval_runtime": 22.3448,
311
+ "eval_samples_per_second": 129.068,
312
+ "eval_steps_per_second": 16.156,
313
+ "step": 5136
314
+ },
315
+ {
316
+ "epoch": 17.0,
317
+ "grad_norm": 32.817665100097656,
318
+ "learning_rate": 5.15903395270923e-05,
319
+ "loss": 0.2855,
320
+ "step": 5457
321
+ },
322
+ {
323
+ "epoch": 17.0,
324
+ "eval_accuracy": 0.8616504854368932,
325
+ "eval_f1": 0.8578019708384981,
326
+ "eval_loss": 0.5152972340583801,
327
+ "eval_precision": 0.85715321702538,
328
+ "eval_recall": 0.8616504854368932,
329
+ "eval_runtime": 22.8719,
330
+ "eval_samples_per_second": 126.094,
331
+ "eval_steps_per_second": 15.784,
332
+ "step": 5457
333
+ },
334
+ {
335
+ "epoch": 18.0,
336
+ "grad_norm": 13.112251281738281,
337
+ "learning_rate": 4.495743767726598e-05,
338
+ "loss": 0.2545,
339
+ "step": 5778
340
+ },
341
+ {
342
+ "epoch": 18.0,
343
+ "eval_accuracy": 0.8436199722607489,
344
+ "eval_f1": 0.847268091121353,
345
+ "eval_loss": 0.5454699993133545,
346
+ "eval_precision": 0.8555190582823499,
347
+ "eval_recall": 0.8436199722607489,
348
+ "eval_runtime": 22.9113,
349
+ "eval_samples_per_second": 125.877,
350
+ "eval_steps_per_second": 15.756,
351
+ "step": 5778
352
+ },
353
+ {
354
+ "epoch": 19.0,
355
+ "grad_norm": 11.9920015335083,
356
+ "learning_rate": 3.843351058509752e-05,
357
+ "loss": 0.2221,
358
+ "step": 6099
359
+ },
360
+ {
361
+ "epoch": 19.0,
362
+ "eval_accuracy": 0.8470873786407767,
363
+ "eval_f1": 0.8516125159546437,
364
+ "eval_loss": 0.5955303311347961,
365
+ "eval_precision": 0.8624218059544237,
366
+ "eval_recall": 0.8470873786407767,
367
+ "eval_runtime": 22.6514,
368
+ "eval_samples_per_second": 127.321,
369
+ "eval_steps_per_second": 15.937,
370
+ "step": 6099
371
+ },
372
+ {
373
+ "epoch": 20.0,
374
+ "grad_norm": 0.16968537867069244,
375
+ "learning_rate": 3.209279054309716e-05,
376
+ "loss": 0.2143,
377
+ "step": 6420
378
+ },
379
+ {
380
+ "epoch": 20.0,
381
+ "eval_accuracy": 0.8574895977808599,
382
+ "eval_f1": 0.8581580614443969,
383
+ "eval_loss": 0.5771576762199402,
384
+ "eval_precision": 0.86041215849512,
385
+ "eval_recall": 0.8574895977808599,
386
+ "eval_runtime": 22.9384,
387
+ "eval_samples_per_second": 125.728,
388
+ "eval_steps_per_second": 15.738,
389
+ "step": 6420
390
+ },
391
+ {
392
+ "epoch": 21.0,
393
+ "grad_norm": 4.404163360595703,
394
+ "learning_rate": 2.6067582030088143e-05,
395
+ "loss": 0.1619,
396
+ "step": 6741
397
+ },
398
+ {
399
+ "epoch": 21.0,
400
+ "eval_accuracy": 0.8626907073509015,
401
+ "eval_f1": 0.8572038210510016,
402
+ "eval_loss": 0.6020533442497253,
403
+ "eval_precision": 0.8566861930842659,
404
+ "eval_recall": 0.8626907073509015,
405
+ "eval_runtime": 23.4679,
406
+ "eval_samples_per_second": 122.891,
407
+ "eval_steps_per_second": 15.383,
408
+ "step": 6741
409
+ },
410
+ {
411
+ "epoch": 21.0,
412
+ "step": 6741,
413
+ "total_flos": 8.345331343683404e+18,
414
+ "train_loss": 0.6620033840241126,
415
+ "train_runtime": 2520.6758,
416
+ "train_samples_per_second": 203.438,
417
+ "train_steps_per_second": 12.735
418
+ }
419
+ ],
420
+ "logging_steps": 500,
421
+ "max_steps": 32100,
422
+ "num_input_tokens_seen": 0,
423
+ "num_train_epochs": 100,
424
+ "save_steps": 500,
425
+ "total_flos": 8.345331343683404e+18,
426
+ "train_batch_size": 16,
427
+ "trial_name": null,
428
+ "trial_params": null
429
+ }