dhritic99 commited on
Commit
540bf98
·
verified ·
1 Parent(s): 63775d7

dhritic99/vit-base-brain-alzheimer-detection

Browse files
Files changed (5) hide show
  1. README.md +2 -2
  2. all_results.json +11 -11
  3. eval_results.json +6 -6
  4. train_results.json +6 -6
  5. trainer_state.json +294 -291
README.md CHANGED
@@ -17,8 +17,8 @@ should probably proofread and complete it, then remove this comment. -->
17
 
18
  This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
19
  It achieves the following results on the evaluation set:
20
- - Loss: 0.1892
21
- - Accuracy: 0.9590
22
 
23
  ## Model description
24
 
 
17
 
18
  This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
19
  It achieves the following results on the evaluation set:
20
+ - Loss: 0.2301
21
+ - Accuracy: 0.9555
22
 
23
  ## Model description
24
 
all_results.json CHANGED
@@ -1,13 +1,13 @@
1
  {
2
- "epoch": 13.28125,
3
- "eval_accuracy": 0.95078125,
4
- "eval_loss": 0.24280217289924622,
5
- "eval_runtime": 6.969,
6
- "eval_samples_per_second": 183.67,
7
- "eval_steps_per_second": 22.959,
8
- "total_flos": 4.2156398005714944e+18,
9
- "train_loss": 0.23371873112285838,
10
- "train_runtime": 1043.0698,
11
- "train_samples_per_second": 78.537,
12
- "train_steps_per_second": 4.909
13
  }
 
1
  {
2
+ "epoch": 15.625,
3
+ "eval_accuracy": 0.95546875,
4
+ "eval_loss": 0.2301121950149536,
5
+ "eval_runtime": 7.6501,
6
+ "eval_samples_per_second": 167.318,
7
+ "eval_steps_per_second": 20.915,
8
+ "total_flos": 4.959576235966464e+18,
9
+ "train_loss": 0.10841592013835907,
10
+ "train_runtime": 976.7829,
11
+ "train_samples_per_second": 83.867,
12
+ "train_steps_per_second": 5.242
13
  }
eval_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
- "epoch": 13.28125,
3
- "eval_accuracy": 0.95078125,
4
- "eval_loss": 0.24280217289924622,
5
- "eval_runtime": 6.969,
6
- "eval_samples_per_second": 183.67,
7
- "eval_steps_per_second": 22.959
8
  }
 
1
  {
2
+ "epoch": 15.625,
3
+ "eval_accuracy": 0.95546875,
4
+ "eval_loss": 0.2301121950149536,
5
+ "eval_runtime": 7.6501,
6
+ "eval_samples_per_second": 167.318,
7
+ "eval_steps_per_second": 20.915
8
  }
train_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
- "epoch": 13.28125,
3
- "total_flos": 4.2156398005714944e+18,
4
- "train_loss": 0.23371873112285838,
5
- "train_runtime": 1043.0698,
6
- "train_samples_per_second": 78.537,
7
- "train_steps_per_second": 4.909
8
  }
 
1
  {
2
+ "epoch": 15.625,
3
+ "total_flos": 4.959576235966464e+18,
4
+ "train_loss": 0.10841592013835907,
5
+ "train_runtime": 976.7829,
6
+ "train_samples_per_second": 83.867,
7
+ "train_steps_per_second": 5.242
8
  }
trainer_state.json CHANGED
@@ -1,657 +1,660 @@
1
  {
2
- "best_metric": 0.19315651059150696,
3
- "best_model_checkpoint": "./vit-base-brain-alzheimer-detection/checkpoint-2800",
4
- "epoch": 13.28125,
5
- "eval_steps": 200,
6
- "global_step": 3400,
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.1953125,
13
- "grad_norm": 3.182270050048828,
14
  "learning_rate": 2.0000000000000003e-06,
15
- "loss": 1.401,
16
  "step": 50
17
  },
18
  {
19
  "epoch": 0.390625,
20
- "grad_norm": 2.6782896518707275,
21
  "learning_rate": 4.000000000000001e-06,
22
- "loss": 1.1871,
23
  "step": 100
24
  },
25
  {
26
  "epoch": 0.5859375,
27
- "grad_norm": 2.7876715660095215,
28
  "learning_rate": 6e-06,
29
- "loss": 1.035,
30
  "step": 150
31
  },
32
  {
33
  "epoch": 0.78125,
34
- "grad_norm": 3.130065441131592,
35
  "learning_rate": 8.000000000000001e-06,
36
- "loss": 0.9772,
37
- "step": 200
38
- },
39
- {
40
- "epoch": 0.78125,
41
- "eval_accuracy": 0.580078125,
42
- "eval_loss": 0.9400424957275391,
43
- "eval_runtime": 5.935,
44
- "eval_samples_per_second": 172.535,
45
- "eval_steps_per_second": 21.567,
46
  "step": 200
47
  },
48
  {
49
  "epoch": 0.9765625,
50
- "grad_norm": 2.5494868755340576,
51
  "learning_rate": 1e-05,
52
- "loss": 0.8886,
53
  "step": 250
54
  },
55
  {
56
  "epoch": 1.171875,
57
- "grad_norm": 1.62320876121521,
58
  "learning_rate": 1.2e-05,
59
- "loss": 0.8722,
60
  "step": 300
61
  },
62
  {
63
  "epoch": 1.3671875,
64
- "grad_norm": 4.327115535736084,
65
  "learning_rate": 1.4e-05,
66
- "loss": 0.8154,
67
  "step": 350
68
  },
69
  {
70
  "epoch": 1.5625,
71
- "grad_norm": 7.814743995666504,
72
  "learning_rate": 1.6000000000000003e-05,
73
- "loss": 0.7451,
74
- "step": 400
75
- },
76
- {
77
- "epoch": 1.5625,
78
- "eval_accuracy": 0.6552734375,
79
- "eval_loss": 0.7946789264678955,
80
- "eval_runtime": 7.068,
81
- "eval_samples_per_second": 144.879,
82
- "eval_steps_per_second": 18.11,
83
  "step": 400
84
  },
85
  {
86
  "epoch": 1.7578125,
87
- "grad_norm": 15.593164443969727,
88
  "learning_rate": 1.8e-05,
89
- "loss": 0.7383,
90
  "step": 450
91
  },
92
  {
93
  "epoch": 1.953125,
94
- "grad_norm": 5.583272933959961,
95
  "learning_rate": 2e-05,
96
- "loss": 0.733,
 
 
 
 
 
 
 
 
 
97
  "step": 500
98
  },
99
  {
100
  "epoch": 2.1484375,
101
- "grad_norm": 10.433585166931152,
102
  "learning_rate": 1.9783549783549785e-05,
103
- "loss": 0.5905,
104
  "step": 550
105
  },
106
  {
107
  "epoch": 2.34375,
108
- "grad_norm": 4.751012802124023,
109
  "learning_rate": 1.9567099567099568e-05,
110
- "loss": 0.5701,
111
- "step": 600
112
- },
113
- {
114
- "epoch": 2.34375,
115
- "eval_accuracy": 0.7236328125,
116
- "eval_loss": 0.7641921639442444,
117
- "eval_runtime": 5.5404,
118
- "eval_samples_per_second": 184.824,
119
- "eval_steps_per_second": 23.103,
120
  "step": 600
121
  },
122
  {
123
  "epoch": 2.5390625,
124
- "grad_norm": 17.00213050842285,
125
  "learning_rate": 1.9350649350649354e-05,
126
- "loss": 0.6235,
127
  "step": 650
128
  },
129
  {
130
  "epoch": 2.734375,
131
- "grad_norm": 10.933674812316895,
132
  "learning_rate": 1.9134199134199138e-05,
133
- "loss": 0.5385,
134
  "step": 700
135
  },
136
  {
137
  "epoch": 2.9296875,
138
- "grad_norm": 9.459794044494629,
139
  "learning_rate": 1.891774891774892e-05,
140
- "loss": 0.4557,
141
  "step": 750
142
  },
143
  {
144
  "epoch": 3.125,
145
- "grad_norm": 2.7128560543060303,
146
  "learning_rate": 1.8701298701298704e-05,
147
- "loss": 0.3704,
148
- "step": 800
149
- },
150
- {
151
- "epoch": 3.125,
152
- "eval_accuracy": 0.7744140625,
153
- "eval_loss": 0.5531814098358154,
154
- "eval_runtime": 6.1892,
155
- "eval_samples_per_second": 165.45,
156
- "eval_steps_per_second": 20.681,
157
  "step": 800
158
  },
159
  {
160
  "epoch": 3.3203125,
161
- "grad_norm": 6.759947776794434,
162
  "learning_rate": 1.8484848484848487e-05,
163
- "loss": 0.3876,
164
  "step": 850
165
  },
166
  {
167
  "epoch": 3.515625,
168
- "grad_norm": 4.957170009613037,
169
  "learning_rate": 1.826839826839827e-05,
170
- "loss": 0.3014,
171
  "step": 900
172
  },
173
  {
174
  "epoch": 3.7109375,
175
- "grad_norm": 4.334908485412598,
176
  "learning_rate": 1.8051948051948053e-05,
177
- "loss": 0.2523,
178
  "step": 950
179
  },
180
  {
181
  "epoch": 3.90625,
182
- "grad_norm": 12.843859672546387,
183
  "learning_rate": 1.7835497835497836e-05,
184
- "loss": 0.2906,
185
  "step": 1000
186
  },
187
  {
188
  "epoch": 3.90625,
189
- "eval_accuracy": 0.85546875,
190
- "eval_loss": 0.4422951340675354,
191
- "eval_runtime": 5.5363,
192
- "eval_samples_per_second": 184.962,
193
- "eval_steps_per_second": 23.12,
194
  "step": 1000
195
  },
196
  {
197
  "epoch": 4.1015625,
198
- "grad_norm": 3.9840188026428223,
199
  "learning_rate": 1.761904761904762e-05,
200
- "loss": 0.2216,
201
  "step": 1050
202
  },
203
  {
204
  "epoch": 4.296875,
205
- "grad_norm": 11.730119705200195,
206
  "learning_rate": 1.7402597402597403e-05,
207
- "loss": 0.1722,
208
  "step": 1100
209
  },
210
  {
211
  "epoch": 4.4921875,
212
- "grad_norm": 2.089110851287842,
213
  "learning_rate": 1.718614718614719e-05,
214
- "loss": 0.1427,
215
  "step": 1150
216
  },
217
  {
218
  "epoch": 4.6875,
219
- "grad_norm": 0.5950905084609985,
220
  "learning_rate": 1.6969696969696972e-05,
221
- "loss": 0.1636,
222
- "step": 1200
223
- },
224
- {
225
- "epoch": 4.6875,
226
- "eval_accuracy": 0.900390625,
227
- "eval_loss": 0.32256966829299927,
228
- "eval_runtime": 6.2703,
229
- "eval_samples_per_second": 163.31,
230
- "eval_steps_per_second": 20.414,
231
  "step": 1200
232
  },
233
  {
234
  "epoch": 4.8828125,
235
- "grad_norm": 4.693203926086426,
236
  "learning_rate": 1.6753246753246756e-05,
237
- "loss": 0.1622,
238
  "step": 1250
239
  },
240
  {
241
  "epoch": 5.078125,
242
- "grad_norm": 0.24195541441440582,
243
  "learning_rate": 1.653679653679654e-05,
244
- "loss": 0.099,
245
  "step": 1300
246
  },
247
  {
248
  "epoch": 5.2734375,
249
- "grad_norm": 0.16812123358249664,
250
  "learning_rate": 1.6320346320346322e-05,
251
- "loss": 0.0979,
252
  "step": 1350
253
  },
254
  {
255
  "epoch": 5.46875,
256
- "grad_norm": 19.697050094604492,
257
  "learning_rate": 1.6103896103896105e-05,
258
- "loss": 0.0837,
259
- "step": 1400
260
- },
261
- {
262
- "epoch": 5.46875,
263
- "eval_accuracy": 0.90234375,
264
- "eval_loss": 0.3483480215072632,
265
- "eval_runtime": 5.5142,
266
- "eval_samples_per_second": 185.702,
267
- "eval_steps_per_second": 23.213,
268
  "step": 1400
269
  },
270
  {
271
  "epoch": 5.6640625,
272
- "grad_norm": 0.35744136571884155,
273
  "learning_rate": 1.5887445887445888e-05,
274
- "loss": 0.118,
275
  "step": 1450
276
  },
277
  {
278
  "epoch": 5.859375,
279
- "grad_norm": 0.1951870173215866,
280
  "learning_rate": 1.567099567099567e-05,
281
- "loss": 0.0826,
 
 
 
 
 
 
 
 
 
282
  "step": 1500
283
  },
284
  {
285
  "epoch": 6.0546875,
286
- "grad_norm": 27.74083137512207,
287
  "learning_rate": 1.5454545454545454e-05,
288
- "loss": 0.0697,
289
  "step": 1550
290
  },
291
  {
292
  "epoch": 6.25,
293
- "grad_norm": 1.9396530389785767,
294
  "learning_rate": 1.523809523809524e-05,
295
- "loss": 0.0368,
296
- "step": 1600
297
- },
298
- {
299
- "epoch": 6.25,
300
- "eval_accuracy": 0.939453125,
301
- "eval_loss": 0.24231916666030884,
302
- "eval_runtime": 5.9487,
303
- "eval_samples_per_second": 172.139,
304
- "eval_steps_per_second": 21.517,
305
  "step": 1600
306
  },
307
  {
308
  "epoch": 6.4453125,
309
- "grad_norm": 0.1338203400373459,
310
  "learning_rate": 1.5021645021645024e-05,
311
- "loss": 0.0482,
312
  "step": 1650
313
  },
314
  {
315
  "epoch": 6.640625,
316
- "grad_norm": 0.16084209084510803,
317
  "learning_rate": 1.4805194805194807e-05,
318
- "loss": 0.0382,
319
  "step": 1700
320
  },
321
  {
322
  "epoch": 6.8359375,
323
- "grad_norm": 13.326003074645996,
324
  "learning_rate": 1.458874458874459e-05,
325
- "loss": 0.1169,
326
  "step": 1750
327
  },
328
  {
329
  "epoch": 7.03125,
330
- "grad_norm": 0.1118919774889946,
331
  "learning_rate": 1.4372294372294374e-05,
332
- "loss": 0.063,
333
- "step": 1800
334
- },
335
- {
336
- "epoch": 7.03125,
337
- "eval_accuracy": 0.927734375,
338
- "eval_loss": 0.30914944410324097,
339
- "eval_runtime": 5.5136,
340
- "eval_samples_per_second": 185.722,
341
- "eval_steps_per_second": 23.215,
342
  "step": 1800
343
  },
344
  {
345
  "epoch": 7.2265625,
346
- "grad_norm": 0.11637281626462936,
347
  "learning_rate": 1.4155844155844157e-05,
348
- "loss": 0.0385,
349
  "step": 1850
350
  },
351
  {
352
  "epoch": 7.421875,
353
- "grad_norm": 0.09042005985975266,
354
  "learning_rate": 1.3939393939393942e-05,
355
- "loss": 0.0277,
356
  "step": 1900
357
  },
358
  {
359
  "epoch": 7.6171875,
360
- "grad_norm": 0.07495836168527603,
361
  "learning_rate": 1.3722943722943725e-05,
362
- "loss": 0.0214,
363
  "step": 1950
364
  },
365
  {
366
  "epoch": 7.8125,
367
- "grad_norm": 0.06756331771612167,
368
  "learning_rate": 1.3506493506493508e-05,
369
- "loss": 0.047,
370
  "step": 2000
371
  },
372
  {
373
  "epoch": 7.8125,
374
- "eval_accuracy": 0.90234375,
375
- "eval_loss": 0.3906704783439636,
376
- "eval_runtime": 6.0843,
377
- "eval_samples_per_second": 168.303,
378
- "eval_steps_per_second": 21.038,
379
  "step": 2000
380
  },
381
  {
382
  "epoch": 8.0078125,
383
- "grad_norm": 0.3716655671596527,
384
- "learning_rate": 1.3290043290043291e-05,
385
- "loss": 0.0262,
386
  "step": 2050
387
  },
388
  {
389
  "epoch": 8.203125,
390
- "grad_norm": 0.40872329473495483,
391
- "learning_rate": 1.3073593073593074e-05,
392
- "loss": 0.0139,
393
  "step": 2100
394
  },
395
  {
396
  "epoch": 8.3984375,
397
- "grad_norm": 0.05600840970873833,
398
  "learning_rate": 1.2861471861471862e-05,
399
- "loss": 0.0161,
400
  "step": 2150
401
  },
402
  {
403
  "epoch": 8.59375,
404
- "grad_norm": 0.055402472615242004,
405
  "learning_rate": 1.2645021645021646e-05,
406
- "loss": 0.0127,
407
- "step": 2200
408
- },
409
- {
410
- "epoch": 8.59375,
411
- "eval_accuracy": 0.9560546875,
412
- "eval_loss": 0.20022055506706238,
413
- "eval_runtime": 5.6277,
414
- "eval_samples_per_second": 181.956,
415
- "eval_steps_per_second": 22.744,
416
  "step": 2200
417
  },
418
  {
419
  "epoch": 8.7890625,
420
- "grad_norm": 0.054736897349357605,
421
  "learning_rate": 1.242857142857143e-05,
422
- "loss": 0.0135,
423
  "step": 2250
424
  },
425
  {
426
  "epoch": 8.984375,
427
- "grad_norm": 0.04909529909491539,
428
  "learning_rate": 1.2212121212121213e-05,
429
- "loss": 0.0209,
430
  "step": 2300
431
  },
432
  {
433
  "epoch": 9.1796875,
434
- "grad_norm": 0.04906412959098816,
435
  "learning_rate": 1.1995670995670996e-05,
436
- "loss": 0.0107,
437
  "step": 2350
438
  },
439
  {
440
  "epoch": 9.375,
441
- "grad_norm": 0.04470803588628769,
442
  "learning_rate": 1.1779220779220779e-05,
443
- "loss": 0.0102,
444
- "step": 2400
445
- },
446
- {
447
- "epoch": 9.375,
448
- "eval_accuracy": 0.9306640625,
449
- "eval_loss": 0.30005937814712524,
450
- "eval_runtime": 6.136,
451
- "eval_samples_per_second": 166.885,
452
- "eval_steps_per_second": 20.861,
453
  "step": 2400
454
  },
455
  {
456
  "epoch": 9.5703125,
457
- "grad_norm": 0.04809673875570297,
458
  "learning_rate": 1.1562770562770564e-05,
459
- "loss": 0.01,
460
  "step": 2450
461
  },
462
  {
463
  "epoch": 9.765625,
464
- "grad_norm": 0.053658001124858856,
465
  "learning_rate": 1.1346320346320347e-05,
466
- "loss": 0.0096,
 
 
 
 
 
 
 
 
 
467
  "step": 2500
468
  },
469
  {
470
  "epoch": 9.9609375,
471
- "grad_norm": 0.05094292759895325,
472
  "learning_rate": 1.112987012987013e-05,
473
- "loss": 0.0085,
474
  "step": 2550
475
  },
476
  {
477
  "epoch": 10.15625,
478
- "grad_norm": 0.03785080462694168,
479
  "learning_rate": 1.0913419913419913e-05,
480
- "loss": 0.0086,
481
- "step": 2600
482
- },
483
- {
484
- "epoch": 10.15625,
485
- "eval_accuracy": 0.951171875,
486
- "eval_loss": 0.19980870187282562,
487
- "eval_runtime": 5.5065,
488
- "eval_samples_per_second": 185.964,
489
- "eval_steps_per_second": 23.245,
490
  "step": 2600
491
  },
492
  {
493
  "epoch": 10.3515625,
494
- "grad_norm": 0.048504624515771866,
495
  "learning_rate": 1.0696969696969696e-05,
496
- "loss": 0.0078,
497
  "step": 2650
498
  },
499
  {
500
  "epoch": 10.546875,
501
- "grad_norm": 0.040160298347473145,
502
  "learning_rate": 1.0480519480519481e-05,
503
- "loss": 0.0136,
504
  "step": 2700
505
  },
506
  {
507
  "epoch": 10.7421875,
508
- "grad_norm": 0.03454400226473808,
509
  "learning_rate": 1.0264069264069264e-05,
510
- "loss": 0.0077,
511
  "step": 2750
512
  },
513
  {
514
  "epoch": 10.9375,
515
- "grad_norm": 0.03354168310761452,
516
  "learning_rate": 1.0047619047619048e-05,
517
- "loss": 0.0073,
518
- "step": 2800
519
- },
520
- {
521
- "epoch": 10.9375,
522
- "eval_accuracy": 0.958984375,
523
- "eval_loss": 0.19315651059150696,
524
- "eval_runtime": 6.0024,
525
- "eval_samples_per_second": 170.598,
526
- "eval_steps_per_second": 21.325,
527
  "step": 2800
528
  },
529
  {
530
  "epoch": 11.1328125,
531
- "grad_norm": 0.033880043774843216,
532
  "learning_rate": 9.831168831168832e-06,
533
- "loss": 0.0071,
534
  "step": 2850
535
  },
536
  {
537
  "epoch": 11.328125,
538
- "grad_norm": 0.032037124037742615,
539
  "learning_rate": 9.614718614718616e-06,
540
- "loss": 0.0066,
541
  "step": 2900
542
  },
543
  {
544
  "epoch": 11.5234375,
545
- "grad_norm": 0.0329328328371048,
546
  "learning_rate": 9.398268398268399e-06,
547
- "loss": 0.0066,
548
  "step": 2950
549
  },
550
  {
551
  "epoch": 11.71875,
552
- "grad_norm": 0.02779380977153778,
553
  "learning_rate": 9.181818181818184e-06,
554
- "loss": 0.0064,
555
  "step": 3000
556
  },
557
  {
558
  "epoch": 11.71875,
559
- "eval_accuracy": 0.9560546875,
560
- "eval_loss": 0.19875724613666534,
561
- "eval_runtime": 5.8842,
562
- "eval_samples_per_second": 174.025,
563
- "eval_steps_per_second": 21.753,
564
  "step": 3000
565
  },
566
  {
567
  "epoch": 11.9140625,
568
- "grad_norm": 0.028905285522341728,
569
  "learning_rate": 8.965367965367967e-06,
570
- "loss": 0.0063,
571
  "step": 3050
572
  },
573
  {
574
  "epoch": 12.109375,
575
- "grad_norm": 0.027350405231118202,
576
  "learning_rate": 8.74891774891775e-06,
577
- "loss": 0.0058,
578
  "step": 3100
579
  },
580
  {
581
  "epoch": 12.3046875,
582
- "grad_norm": 0.026442719623446465,
583
  "learning_rate": 8.532467532467533e-06,
584
- "loss": 0.0059,
585
  "step": 3150
586
  },
587
  {
588
  "epoch": 12.5,
589
- "grad_norm": 0.028089182451367378,
590
  "learning_rate": 8.316017316017316e-06,
591
- "loss": 0.0056,
592
- "step": 3200
593
- },
594
- {
595
- "epoch": 12.5,
596
- "eval_accuracy": 0.9580078125,
597
- "eval_loss": 0.19929003715515137,
598
- "eval_runtime": 6.1143,
599
- "eval_samples_per_second": 167.475,
600
- "eval_steps_per_second": 20.934,
601
  "step": 3200
602
  },
603
  {
604
  "epoch": 12.6953125,
605
- "grad_norm": 0.02532665804028511,
606
  "learning_rate": 8.099567099567101e-06,
607
- "loss": 0.0053,
608
  "step": 3250
609
  },
610
  {
611
  "epoch": 12.890625,
612
- "grad_norm": 0.024192778393626213,
613
  "learning_rate": 7.883116883116884e-06,
614
- "loss": 0.0055,
615
  "step": 3300
616
  },
617
  {
618
  "epoch": 13.0859375,
619
- "grad_norm": 0.028951533138751984,
620
  "learning_rate": 7.666666666666667e-06,
621
- "loss": 0.0053,
622
  "step": 3350
623
  },
624
  {
625
  "epoch": 13.28125,
626
- "grad_norm": 0.024818725883960724,
627
  "learning_rate": 7.450216450216451e-06,
628
- "loss": 0.0049,
629
  "step": 3400
630
  },
631
  {
632
- "epoch": 13.28125,
633
- "eval_accuracy": 0.958984375,
634
- "eval_loss": 0.2046782374382019,
635
- "eval_runtime": 5.5223,
636
- "eval_samples_per_second": 185.43,
637
- "eval_steps_per_second": 23.179,
638
- "step": 3400
639
  },
640
  {
641
- "epoch": 13.28125,
642
- "step": 3400,
643
- "total_flos": 4.2156398005714944e+18,
644
- "train_loss": 0.23371873112285838,
645
- "train_runtime": 1043.0698,
646
- "train_samples_per_second": 78.537,
647
- "train_steps_per_second": 4.909
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
648
  }
649
  ],
650
  "logging_steps": 50,
651
  "max_steps": 5120,
652
  "num_input_tokens_seen": 0,
653
  "num_train_epochs": 20,
654
- "save_steps": 200,
655
  "stateful_callbacks": {
656
  "EarlyStoppingCallback": {
657
  "args": {
@@ -673,7 +676,7 @@
673
  "attributes": {}
674
  }
675
  },
676
- "total_flos": 4.2156398005714944e+18,
677
  "train_batch_size": 16,
678
  "trial_name": null,
679
  "trial_params": null
 
1
  {
2
+ "best_metric": 0.16233286261558533,
3
+ "best_model_checkpoint": "./vit-base-brain-alzheimer-detection/checkpoint-2500",
4
+ "epoch": 15.625,
5
+ "eval_steps": 500,
6
+ "global_step": 4000,
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.1953125,
13
+ "grad_norm": 5.237834453582764,
14
  "learning_rate": 2.0000000000000003e-06,
15
+ "loss": 0.6443,
16
  "step": 50
17
  },
18
  {
19
  "epoch": 0.390625,
20
+ "grad_norm": 10.076339721679688,
21
  "learning_rate": 4.000000000000001e-06,
22
+ "loss": 0.5744,
23
  "step": 100
24
  },
25
  {
26
  "epoch": 0.5859375,
27
+ "grad_norm": 10.711421012878418,
28
  "learning_rate": 6e-06,
29
+ "loss": 0.5509,
30
  "step": 150
31
  },
32
  {
33
  "epoch": 0.78125,
34
+ "grad_norm": 7.218406677246094,
35
  "learning_rate": 8.000000000000001e-06,
36
+ "loss": 0.5198,
 
 
 
 
 
 
 
 
 
37
  "step": 200
38
  },
39
  {
40
  "epoch": 0.9765625,
41
+ "grad_norm": 3.6985344886779785,
42
  "learning_rate": 1e-05,
43
+ "loss": 0.4411,
44
  "step": 250
45
  },
46
  {
47
  "epoch": 1.171875,
48
+ "grad_norm": 29.415699005126953,
49
  "learning_rate": 1.2e-05,
50
+ "loss": 0.4885,
51
  "step": 300
52
  },
53
  {
54
  "epoch": 1.3671875,
55
+ "grad_norm": 24.613481521606445,
56
  "learning_rate": 1.4e-05,
57
+ "loss": 0.4818,
58
  "step": 350
59
  },
60
  {
61
  "epoch": 1.5625,
62
+ "grad_norm": 8.766143798828125,
63
  "learning_rate": 1.6000000000000003e-05,
64
+ "loss": 0.4116,
 
 
 
 
 
 
 
 
 
65
  "step": 400
66
  },
67
  {
68
  "epoch": 1.7578125,
69
+ "grad_norm": 2.4442567825317383,
70
  "learning_rate": 1.8e-05,
71
+ "loss": 0.4328,
72
  "step": 450
73
  },
74
  {
75
  "epoch": 1.953125,
76
+ "grad_norm": 3.787712335586548,
77
  "learning_rate": 2e-05,
78
+ "loss": 0.4285,
79
+ "step": 500
80
+ },
81
+ {
82
+ "epoch": 1.953125,
83
+ "eval_accuracy": 0.8310546875,
84
+ "eval_loss": 0.4633047878742218,
85
+ "eval_runtime": 5.4233,
86
+ "eval_samples_per_second": 188.814,
87
+ "eval_steps_per_second": 23.602,
88
  "step": 500
89
  },
90
  {
91
  "epoch": 2.1484375,
92
+ "grad_norm": 2.96122407913208,
93
  "learning_rate": 1.9783549783549785e-05,
94
+ "loss": 0.3494,
95
  "step": 550
96
  },
97
  {
98
  "epoch": 2.34375,
99
+ "grad_norm": 4.47251558303833,
100
  "learning_rate": 1.9567099567099568e-05,
101
+ "loss": 0.3011,
 
 
 
 
 
 
 
 
 
102
  "step": 600
103
  },
104
  {
105
  "epoch": 2.5390625,
106
+ "grad_norm": 6.335562229156494,
107
  "learning_rate": 1.9350649350649354e-05,
108
+ "loss": 0.3097,
109
  "step": 650
110
  },
111
  {
112
  "epoch": 2.734375,
113
+ "grad_norm": 3.6047630310058594,
114
  "learning_rate": 1.9134199134199138e-05,
115
+ "loss": 0.2601,
116
  "step": 700
117
  },
118
  {
119
  "epoch": 2.9296875,
120
+ "grad_norm": 13.996108055114746,
121
  "learning_rate": 1.891774891774892e-05,
122
+ "loss": 0.3092,
123
  "step": 750
124
  },
125
  {
126
  "epoch": 3.125,
127
+ "grad_norm": 5.770679473876953,
128
  "learning_rate": 1.8701298701298704e-05,
129
+ "loss": 0.2201,
 
 
 
 
 
 
 
 
 
130
  "step": 800
131
  },
132
  {
133
  "epoch": 3.3203125,
134
+ "grad_norm": 20.05348014831543,
135
  "learning_rate": 1.8484848484848487e-05,
136
+ "loss": 0.2323,
137
  "step": 850
138
  },
139
  {
140
  "epoch": 3.515625,
141
+ "grad_norm": 1.26289963722229,
142
  "learning_rate": 1.826839826839827e-05,
143
+ "loss": 0.1483,
144
  "step": 900
145
  },
146
  {
147
  "epoch": 3.7109375,
148
+ "grad_norm": 2.166567087173462,
149
  "learning_rate": 1.8051948051948053e-05,
150
+ "loss": 0.2116,
151
  "step": 950
152
  },
153
  {
154
  "epoch": 3.90625,
155
+ "grad_norm": 25.671602249145508,
156
  "learning_rate": 1.7835497835497836e-05,
157
+ "loss": 0.171,
158
  "step": 1000
159
  },
160
  {
161
  "epoch": 3.90625,
162
+ "eval_accuracy": 0.8994140625,
163
+ "eval_loss": 0.32369568943977356,
164
+ "eval_runtime": 5.6226,
165
+ "eval_samples_per_second": 182.123,
166
+ "eval_steps_per_second": 22.765,
167
  "step": 1000
168
  },
169
  {
170
  "epoch": 4.1015625,
171
+ "grad_norm": 1.2532105445861816,
172
  "learning_rate": 1.761904761904762e-05,
173
+ "loss": 0.159,
174
  "step": 1050
175
  },
176
  {
177
  "epoch": 4.296875,
178
+ "grad_norm": 0.9766639471054077,
179
  "learning_rate": 1.7402597402597403e-05,
180
+ "loss": 0.1412,
181
  "step": 1100
182
  },
183
  {
184
  "epoch": 4.4921875,
185
+ "grad_norm": 2.724047899246216,
186
  "learning_rate": 1.718614718614719e-05,
187
+ "loss": 0.082,
188
  "step": 1150
189
  },
190
  {
191
  "epoch": 4.6875,
192
+ "grad_norm": 1.2899634838104248,
193
  "learning_rate": 1.6969696969696972e-05,
194
+ "loss": 0.0837,
 
 
 
 
 
 
 
 
 
195
  "step": 1200
196
  },
197
  {
198
  "epoch": 4.8828125,
199
+ "grad_norm": 2.9213526248931885,
200
  "learning_rate": 1.6753246753246756e-05,
201
+ "loss": 0.0554,
202
  "step": 1250
203
  },
204
  {
205
  "epoch": 5.078125,
206
+ "grad_norm": 0.10849986970424652,
207
  "learning_rate": 1.653679653679654e-05,
208
+ "loss": 0.0681,
209
  "step": 1300
210
  },
211
  {
212
  "epoch": 5.2734375,
213
+ "grad_norm": 0.07504723966121674,
214
  "learning_rate": 1.6320346320346322e-05,
215
+ "loss": 0.0415,
216
  "step": 1350
217
  },
218
  {
219
  "epoch": 5.46875,
220
+ "grad_norm": 0.1930815428495407,
221
  "learning_rate": 1.6103896103896105e-05,
222
+ "loss": 0.0333,
 
 
 
 
 
 
 
 
 
223
  "step": 1400
224
  },
225
  {
226
  "epoch": 5.6640625,
227
+ "grad_norm": 0.41994306445121765,
228
  "learning_rate": 1.5887445887445888e-05,
229
+ "loss": 0.0402,
230
  "step": 1450
231
  },
232
  {
233
  "epoch": 5.859375,
234
+ "grad_norm": 0.08935032039880753,
235
  "learning_rate": 1.567099567099567e-05,
236
+ "loss": 0.0622,
237
+ "step": 1500
238
+ },
239
+ {
240
+ "epoch": 5.859375,
241
+ "eval_accuracy": 0.94140625,
242
+ "eval_loss": 0.20316675305366516,
243
+ "eval_runtime": 5.9862,
244
+ "eval_samples_per_second": 171.06,
245
+ "eval_steps_per_second": 21.382,
246
  "step": 1500
247
  },
248
  {
249
  "epoch": 6.0546875,
250
+ "grad_norm": 0.08510852605104446,
251
  "learning_rate": 1.5454545454545454e-05,
252
+ "loss": 0.0407,
253
  "step": 1550
254
  },
255
  {
256
  "epoch": 6.25,
257
+ "grad_norm": 12.273158073425293,
258
  "learning_rate": 1.523809523809524e-05,
259
+ "loss": 0.0207,
 
 
 
 
 
 
 
 
 
260
  "step": 1600
261
  },
262
  {
263
  "epoch": 6.4453125,
264
+ "grad_norm": 0.099972203373909,
265
  "learning_rate": 1.5021645021645024e-05,
266
+ "loss": 0.0756,
267
  "step": 1650
268
  },
269
  {
270
  "epoch": 6.640625,
271
+ "grad_norm": 0.20563142001628876,
272
  "learning_rate": 1.4805194805194807e-05,
273
+ "loss": 0.0277,
274
  "step": 1700
275
  },
276
  {
277
  "epoch": 6.8359375,
278
+ "grad_norm": 0.0686117634177208,
279
  "learning_rate": 1.458874458874459e-05,
280
+ "loss": 0.0167,
281
  "step": 1750
282
  },
283
  {
284
  "epoch": 7.03125,
285
+ "grad_norm": 0.036712419241666794,
286
  "learning_rate": 1.4372294372294374e-05,
287
+ "loss": 0.0174,
 
 
 
 
 
 
 
 
 
288
  "step": 1800
289
  },
290
  {
291
  "epoch": 7.2265625,
292
+ "grad_norm": 0.04611894115805626,
293
  "learning_rate": 1.4155844155844157e-05,
294
+ "loss": 0.0161,
295
  "step": 1850
296
  },
297
  {
298
  "epoch": 7.421875,
299
+ "grad_norm": 0.0400649756193161,
300
  "learning_rate": 1.3939393939393942e-05,
301
+ "loss": 0.0087,
302
  "step": 1900
303
  },
304
  {
305
  "epoch": 7.6171875,
306
+ "grad_norm": 0.036735936999320984,
307
  "learning_rate": 1.3722943722943725e-05,
308
+ "loss": 0.0083,
309
  "step": 1950
310
  },
311
  {
312
  "epoch": 7.8125,
313
+ "grad_norm": 0.031237976625561714,
314
  "learning_rate": 1.3506493506493508e-05,
315
+ "loss": 0.0162,
316
  "step": 2000
317
  },
318
  {
319
  "epoch": 7.8125,
320
+ "eval_accuracy": 0.951171875,
321
+ "eval_loss": 0.241306334733963,
322
+ "eval_runtime": 5.4826,
323
+ "eval_samples_per_second": 186.771,
324
+ "eval_steps_per_second": 23.346,
325
  "step": 2000
326
  },
327
  {
328
  "epoch": 8.0078125,
329
+ "grad_norm": 0.027786873281002045,
330
+ "learning_rate": 1.3294372294372295e-05,
331
+ "loss": 0.0162,
332
  "step": 2050
333
  },
334
  {
335
  "epoch": 8.203125,
336
+ "grad_norm": 0.06131181865930557,
337
+ "learning_rate": 1.3077922077922078e-05,
338
+ "loss": 0.0085,
339
  "step": 2100
340
  },
341
  {
342
  "epoch": 8.3984375,
343
+ "grad_norm": 0.044134218245744705,
344
  "learning_rate": 1.2861471861471862e-05,
345
+ "loss": 0.0152,
346
  "step": 2150
347
  },
348
  {
349
  "epoch": 8.59375,
350
+ "grad_norm": 10.187455177307129,
351
  "learning_rate": 1.2645021645021646e-05,
352
+ "loss": 0.0167,
 
 
 
 
 
 
 
 
 
353
  "step": 2200
354
  },
355
  {
356
  "epoch": 8.7890625,
357
+ "grad_norm": 0.024555057287216187,
358
  "learning_rate": 1.242857142857143e-05,
359
+ "loss": 0.0092,
360
  "step": 2250
361
  },
362
  {
363
  "epoch": 8.984375,
364
+ "grad_norm": 1.3849960565567017,
365
  "learning_rate": 1.2212121212121213e-05,
366
+ "loss": 0.0068,
367
  "step": 2300
368
  },
369
  {
370
  "epoch": 9.1796875,
371
+ "grad_norm": 0.021510746330022812,
372
  "learning_rate": 1.1995670995670996e-05,
373
+ "loss": 0.0051,
374
  "step": 2350
375
  },
376
  {
377
  "epoch": 9.375,
378
+ "grad_norm": 0.01960117556154728,
379
  "learning_rate": 1.1779220779220779e-05,
380
+ "loss": 0.0045,
 
 
 
 
 
 
 
 
 
381
  "step": 2400
382
  },
383
  {
384
  "epoch": 9.5703125,
385
+ "grad_norm": 0.021382611244916916,
386
  "learning_rate": 1.1562770562770564e-05,
387
+ "loss": 0.0046,
388
  "step": 2450
389
  },
390
  {
391
  "epoch": 9.765625,
392
+ "grad_norm": 0.031110389158129692,
393
  "learning_rate": 1.1346320346320347e-05,
394
+ "loss": 0.0044,
395
+ "step": 2500
396
+ },
397
+ {
398
+ "epoch": 9.765625,
399
+ "eval_accuracy": 0.966796875,
400
+ "eval_loss": 0.16233286261558533,
401
+ "eval_runtime": 5.8021,
402
+ "eval_samples_per_second": 176.487,
403
+ "eval_steps_per_second": 22.061,
404
  "step": 2500
405
  },
406
  {
407
  "epoch": 9.9609375,
408
+ "grad_norm": 0.01663753017783165,
409
  "learning_rate": 1.112987012987013e-05,
410
+ "loss": 0.0039,
411
  "step": 2550
412
  },
413
  {
414
  "epoch": 10.15625,
415
+ "grad_norm": 0.016748279333114624,
416
  "learning_rate": 1.0913419913419913e-05,
417
+ "loss": 0.004,
 
 
 
 
 
 
 
 
 
418
  "step": 2600
419
  },
420
  {
421
  "epoch": 10.3515625,
422
+ "grad_norm": 0.019847417250275612,
423
  "learning_rate": 1.0696969696969696e-05,
424
+ "loss": 0.0036,
425
  "step": 2650
426
  },
427
  {
428
  "epoch": 10.546875,
429
+ "grad_norm": 0.01919238083064556,
430
  "learning_rate": 1.0480519480519481e-05,
431
+ "loss": 0.0037,
432
  "step": 2700
433
  },
434
  {
435
  "epoch": 10.7421875,
436
+ "grad_norm": 0.01820230484008789,
437
  "learning_rate": 1.0264069264069264e-05,
438
+ "loss": 0.0036,
439
  "step": 2750
440
  },
441
  {
442
  "epoch": 10.9375,
443
+ "grad_norm": 0.01602366380393505,
444
  "learning_rate": 1.0047619047619048e-05,
445
+ "loss": 0.0034,
 
 
 
 
 
 
 
 
 
446
  "step": 2800
447
  },
448
  {
449
  "epoch": 11.1328125,
450
+ "grad_norm": 0.01528051309287548,
451
  "learning_rate": 9.831168831168832e-06,
452
+ "loss": 0.0033,
453
  "step": 2850
454
  },
455
  {
456
  "epoch": 11.328125,
457
+ "grad_norm": 0.015123172663152218,
458
  "learning_rate": 9.614718614718616e-06,
459
+ "loss": 0.003,
460
  "step": 2900
461
  },
462
  {
463
  "epoch": 11.5234375,
464
+ "grad_norm": 0.017041392624378204,
465
  "learning_rate": 9.398268398268399e-06,
466
+ "loss": 0.0031,
467
  "step": 2950
468
  },
469
  {
470
  "epoch": 11.71875,
471
+ "grad_norm": 0.012525764293968678,
472
  "learning_rate": 9.181818181818184e-06,
473
+ "loss": 0.003,
474
  "step": 3000
475
  },
476
  {
477
  "epoch": 11.71875,
478
+ "eval_accuracy": 0.966796875,
479
+ "eval_loss": 0.16406887769699097,
480
+ "eval_runtime": 6.0958,
481
+ "eval_samples_per_second": 167.985,
482
+ "eval_steps_per_second": 20.998,
483
  "step": 3000
484
  },
485
  {
486
  "epoch": 11.9140625,
487
+ "grad_norm": 0.014454510062932968,
488
  "learning_rate": 8.965367965367967e-06,
489
+ "loss": 0.003,
490
  "step": 3050
491
  },
492
  {
493
  "epoch": 12.109375,
494
+ "grad_norm": 0.012859505601227283,
495
  "learning_rate": 8.74891774891775e-06,
496
+ "loss": 0.0027,
497
  "step": 3100
498
  },
499
  {
500
  "epoch": 12.3046875,
501
+ "grad_norm": 0.012520495802164078,
502
  "learning_rate": 8.532467532467533e-06,
503
+ "loss": 0.0028,
504
  "step": 3150
505
  },
506
  {
507
  "epoch": 12.5,
508
+ "grad_norm": 0.014481940306723118,
509
  "learning_rate": 8.316017316017316e-06,
510
+ "loss": 0.0026,
 
 
 
 
 
 
 
 
 
511
  "step": 3200
512
  },
513
  {
514
  "epoch": 12.6953125,
515
+ "grad_norm": 0.01108886580914259,
516
  "learning_rate": 8.099567099567101e-06,
517
+ "loss": 0.0025,
518
  "step": 3250
519
  },
520
  {
521
  "epoch": 12.890625,
522
+ "grad_norm": 0.011388474144041538,
523
  "learning_rate": 7.883116883116884e-06,
524
+ "loss": 0.0026,
525
  "step": 3300
526
  },
527
  {
528
  "epoch": 13.0859375,
529
+ "grad_norm": 0.01610645279288292,
530
  "learning_rate": 7.666666666666667e-06,
531
+ "loss": 0.0025,
532
  "step": 3350
533
  },
534
  {
535
  "epoch": 13.28125,
536
+ "grad_norm": 0.013085401616990566,
537
  "learning_rate": 7.450216450216451e-06,
538
+ "loss": 0.0023,
539
  "step": 3400
540
  },
541
  {
542
+ "epoch": 13.4765625,
543
+ "grad_norm": 0.012581477873027325,
544
+ "learning_rate": 7.233766233766234e-06,
545
+ "loss": 0.0023,
546
+ "step": 3450
 
 
547
  },
548
  {
549
+ "epoch": 13.671875,
550
+ "grad_norm": 0.01144211646169424,
551
+ "learning_rate": 7.017316017316018e-06,
552
+ "loss": 0.0025,
553
+ "step": 3500
554
+ },
555
+ {
556
+ "epoch": 13.671875,
557
+ "eval_accuracy": 0.9619140625,
558
+ "eval_loss": 0.17963293194770813,
559
+ "eval_runtime": 6.1937,
560
+ "eval_samples_per_second": 165.331,
561
+ "eval_steps_per_second": 20.666,
562
+ "step": 3500
563
+ },
564
+ {
565
+ "epoch": 13.8671875,
566
+ "grad_norm": 0.01094707939773798,
567
+ "learning_rate": 6.8008658008658015e-06,
568
+ "loss": 0.0022,
569
+ "step": 3550
570
+ },
571
+ {
572
+ "epoch": 14.0625,
573
+ "grad_norm": 0.010639617219567299,
574
+ "learning_rate": 6.5844155844155855e-06,
575
+ "loss": 0.0022,
576
+ "step": 3600
577
+ },
578
+ {
579
+ "epoch": 14.2578125,
580
+ "grad_norm": 0.02006010338664055,
581
+ "learning_rate": 6.367965367965369e-06,
582
+ "loss": 0.0021,
583
+ "step": 3650
584
+ },
585
+ {
586
+ "epoch": 14.453125,
587
+ "grad_norm": 0.008836320601403713,
588
+ "learning_rate": 6.151515151515152e-06,
589
+ "loss": 0.0021,
590
+ "step": 3700
591
+ },
592
+ {
593
+ "epoch": 14.6484375,
594
+ "grad_norm": 0.009966148994863033,
595
+ "learning_rate": 5.935064935064936e-06,
596
+ "loss": 0.0021,
597
+ "step": 3750
598
+ },
599
+ {
600
+ "epoch": 14.84375,
601
+ "grad_norm": 0.00935059692710638,
602
+ "learning_rate": 5.718614718614719e-06,
603
+ "loss": 0.0021,
604
+ "step": 3800
605
+ },
606
+ {
607
+ "epoch": 15.0390625,
608
+ "grad_norm": 0.009346270933747292,
609
+ "learning_rate": 5.502164502164503e-06,
610
+ "loss": 0.002,
611
+ "step": 3850
612
+ },
613
+ {
614
+ "epoch": 15.234375,
615
+ "grad_norm": 0.00850555207580328,
616
+ "learning_rate": 5.285714285714286e-06,
617
+ "loss": 0.0019,
618
+ "step": 3900
619
+ },
620
+ {
621
+ "epoch": 15.4296875,
622
+ "grad_norm": 0.009360904805362225,
623
+ "learning_rate": 5.069264069264069e-06,
624
+ "loss": 0.002,
625
+ "step": 3950
626
+ },
627
+ {
628
+ "epoch": 15.625,
629
+ "grad_norm": 0.00921907089650631,
630
+ "learning_rate": 4.852813852813853e-06,
631
+ "loss": 0.0019,
632
+ "step": 4000
633
+ },
634
+ {
635
+ "epoch": 15.625,
636
+ "eval_accuracy": 0.958984375,
637
+ "eval_loss": 0.18917381763458252,
638
+ "eval_runtime": 5.6954,
639
+ "eval_samples_per_second": 179.796,
640
+ "eval_steps_per_second": 22.474,
641
+ "step": 4000
642
+ },
643
+ {
644
+ "epoch": 15.625,
645
+ "step": 4000,
646
+ "total_flos": 4.959576235966464e+18,
647
+ "train_loss": 0.10841592013835907,
648
+ "train_runtime": 976.7829,
649
+ "train_samples_per_second": 83.867,
650
+ "train_steps_per_second": 5.242
651
  }
652
  ],
653
  "logging_steps": 50,
654
  "max_steps": 5120,
655
  "num_input_tokens_seen": 0,
656
  "num_train_epochs": 20,
657
+ "save_steps": 500,
658
  "stateful_callbacks": {
659
  "EarlyStoppingCallback": {
660
  "args": {
 
676
  "attributes": {}
677
  }
678
  },
679
+ "total_flos": 4.959576235966464e+18,
680
  "train_batch_size": 16,
681
  "trial_name": null,
682
  "trial_params": null