SeyedAli commited on
Commit
7e0eecb
1 Parent(s): 29bb8bf

Upload 8 files

Browse files
config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "MobileNetV2ForImageClassification"
4
+ ],
5
+ "classifier_dropout_prob": 0.8,
6
+ "depth_divisible_by": 8,
7
+ "depth_multiplier": 1.0,
8
+ "expand_ratio": 6.0,
9
+ "finegrained_output": true,
10
+ "first_layer_is_expansion": true,
11
+ "hidden_act": "relu6",
12
+ "id2label": {
13
+ "0": "Melanoma",
14
+ "1": "Melanocytic nevus",
15
+ "2": "Basal cell carcinoma",
16
+ "3": "Actinic keratosis",
17
+ "4": "Benign keratosis",
18
+ "5": "Dermatofibroma",
19
+ "6": "Vascular lesion",
20
+ "7": "Squamous cell carcinoma"
21
+ },
22
+ "image_size": 224,
23
+ "initializer_range": 0.02,
24
+ "label2id": {
25
+ "Actinic keratosis": "3",
26
+ "Basal cell carcinoma": "2",
27
+ "Benign keratosis": "4",
28
+ "Dermatofibroma": "5",
29
+ "Melanocytic nevus": "1",
30
+ "Melanoma": "0",
31
+ "Squamous cell carcinoma": "7",
32
+ "Vascular lesion": "6"
33
+ },
34
+ "layer_norm_eps": 0.001,
35
+ "min_depth": 8,
36
+ "model_type": "mobilenet_v2",
37
+ "num_channels": 3,
38
+ "output_stride": 32,
39
+ "problem_type": "single_label_classification",
40
+ "semantic_loss_ignore_index": 255,
41
+ "tf_padding": true,
42
+ "torch_dtype": "float32",
43
+ "transformers_version": "4.36.2"
44
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d166196ee89b4c4e294e144e9411bf63187cde70e71c3084fca43130f033d687
3
+ size 9110960
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52738783f8fdd9fdba2396d23326d76310f78ebecce2230561509554048c8a9d
3
+ size 18005242
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_processor_type": "ViTImageProcessor",
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "resample": 2,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 224,
20
+ "width": 224
21
+ }
22
+ }
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e79da67cddb223149ca5814493e58c2dfe9333b37179a472e255c6c1ea67f02f
3
+ size 14244
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:795aae61e054f7c273a548f291a22c10185e466cd7af31fed7886b963079b475
3
+ size 1064
trainer_state.json ADDED
@@ -0,0 +1,471 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.6672587329780936,
3
+ "best_model_checkpoint": "Distilled-Melanoma-Classification-MobileNetV2/checkpoint-60792",
4
+ "epoch": 30.0,
5
+ "eval_steps": 500,
6
+ "global_step": 75990,
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
+ "learning_rate": 4.8333333333333334e-05,
14
+ "loss": 1.9302,
15
+ "step": 2533
16
+ },
17
+ {
18
+ "epoch": 1.0,
19
+ "eval_accuracy": 0.551805802249852,
20
+ "eval_loss": 1.6089619398117065,
21
+ "eval_runtime": 454.9672,
22
+ "eval_samples_per_second": 11.137,
23
+ "eval_steps_per_second": 1.394,
24
+ "step": 2533
25
+ },
26
+ {
27
+ "epoch": 2.0,
28
+ "learning_rate": 4.666666666666667e-05,
29
+ "loss": 1.6357,
30
+ "step": 5066
31
+ },
32
+ {
33
+ "epoch": 2.0,
34
+ "eval_accuracy": 0.5964081310440102,
35
+ "eval_loss": 1.3391807079315186,
36
+ "eval_runtime": 461.1878,
37
+ "eval_samples_per_second": 10.987,
38
+ "eval_steps_per_second": 1.375,
39
+ "step": 5066
40
+ },
41
+ {
42
+ "epoch": 3.0,
43
+ "learning_rate": 4.5e-05,
44
+ "loss": 1.5009,
45
+ "step": 7599
46
+ },
47
+ {
48
+ "epoch": 3.0,
49
+ "eval_accuracy": 0.6208802052496546,
50
+ "eval_loss": 1.2432700395584106,
51
+ "eval_runtime": 461.7485,
52
+ "eval_samples_per_second": 10.974,
53
+ "eval_steps_per_second": 1.373,
54
+ "step": 7599
55
+ },
56
+ {
57
+ "epoch": 4.0,
58
+ "learning_rate": 4.3333333333333334e-05,
59
+ "loss": 1.4095,
60
+ "step": 10132
61
+ },
62
+ {
63
+ "epoch": 4.0,
64
+ "eval_accuracy": 0.6246299585553582,
65
+ "eval_loss": 1.3341896533966064,
66
+ "eval_runtime": 455.3869,
67
+ "eval_samples_per_second": 11.127,
68
+ "eval_steps_per_second": 1.392,
69
+ "step": 10132
70
+ },
71
+ {
72
+ "epoch": 5.0,
73
+ "learning_rate": 4.166666666666667e-05,
74
+ "loss": 1.33,
75
+ "step": 12665
76
+ },
77
+ {
78
+ "epoch": 5.0,
79
+ "eval_accuracy": 0.6445628577067298,
80
+ "eval_loss": 1.154502511024475,
81
+ "eval_runtime": 456.8814,
82
+ "eval_samples_per_second": 11.09,
83
+ "eval_steps_per_second": 1.388,
84
+ "step": 12665
85
+ },
86
+ {
87
+ "epoch": 6.0,
88
+ "learning_rate": 4e-05,
89
+ "loss": 1.2499,
90
+ "step": 15198
91
+ },
92
+ {
93
+ "epoch": 6.0,
94
+ "eval_accuracy": 0.6329188869153345,
95
+ "eval_loss": 1.3197146654129028,
96
+ "eval_runtime": 470.1267,
97
+ "eval_samples_per_second": 10.778,
98
+ "eval_steps_per_second": 1.349,
99
+ "step": 15198
100
+ },
101
+ {
102
+ "epoch": 7.0,
103
+ "learning_rate": 3.8333333333333334e-05,
104
+ "loss": 1.1881,
105
+ "step": 17731
106
+ },
107
+ {
108
+ "epoch": 7.0,
109
+ "eval_accuracy": 0.6538385632524176,
110
+ "eval_loss": 1.0565587282180786,
111
+ "eval_runtime": 468.3787,
112
+ "eval_samples_per_second": 10.818,
113
+ "eval_steps_per_second": 1.354,
114
+ "step": 17731
115
+ },
116
+ {
117
+ "epoch": 8.0,
118
+ "learning_rate": 3.6666666666666666e-05,
119
+ "loss": 1.1184,
120
+ "step": 20264
121
+ },
122
+ {
123
+ "epoch": 8.0,
124
+ "eval_accuracy": 0.6660746003552398,
125
+ "eval_loss": 1.036229133605957,
126
+ "eval_runtime": 466.4784,
127
+ "eval_samples_per_second": 10.862,
128
+ "eval_steps_per_second": 1.359,
129
+ "step": 20264
130
+ },
131
+ {
132
+ "epoch": 9.0,
133
+ "learning_rate": 3.5e-05,
134
+ "loss": 1.0487,
135
+ "step": 22797
136
+ },
137
+ {
138
+ "epoch": 9.0,
139
+ "eval_accuracy": 0.648707321886718,
140
+ "eval_loss": 1.2400047779083252,
141
+ "eval_runtime": 466.581,
142
+ "eval_samples_per_second": 10.86,
143
+ "eval_steps_per_second": 1.359,
144
+ "step": 22797
145
+ },
146
+ {
147
+ "epoch": 10.0,
148
+ "learning_rate": 3.3333333333333335e-05,
149
+ "loss": 0.9876,
150
+ "step": 25330
151
+ },
152
+ {
153
+ "epoch": 10.0,
154
+ "eval_accuracy": 0.6571936056838366,
155
+ "eval_loss": 1.0631685256958008,
156
+ "eval_runtime": 466.0607,
157
+ "eval_samples_per_second": 10.872,
158
+ "eval_steps_per_second": 1.36,
159
+ "step": 25330
160
+ },
161
+ {
162
+ "epoch": 11.0,
163
+ "learning_rate": 3.1666666666666666e-05,
164
+ "loss": 0.9002,
165
+ "step": 27863
166
+ },
167
+ {
168
+ "epoch": 11.0,
169
+ "eval_accuracy": 0.6473258338267219,
170
+ "eval_loss": 1.1159186363220215,
171
+ "eval_runtime": 466.1714,
172
+ "eval_samples_per_second": 10.869,
173
+ "eval_steps_per_second": 1.36,
174
+ "step": 27863
175
+ },
176
+ {
177
+ "epoch": 12.0,
178
+ "learning_rate": 3e-05,
179
+ "loss": 0.8309,
180
+ "step": 30396
181
+ },
182
+ {
183
+ "epoch": 12.0,
184
+ "eval_accuracy": 0.6311426879810539,
185
+ "eval_loss": 1.2457987070083618,
186
+ "eval_runtime": 477.2863,
187
+ "eval_samples_per_second": 10.616,
188
+ "eval_steps_per_second": 1.328,
189
+ "step": 30396
190
+ },
191
+ {
192
+ "epoch": 13.0,
193
+ "learning_rate": 2.8333333333333335e-05,
194
+ "loss": 0.7729,
195
+ "step": 32929
196
+ },
197
+ {
198
+ "epoch": 13.0,
199
+ "eval_accuracy": 0.6425893033353068,
200
+ "eval_loss": 1.2415727376937866,
201
+ "eval_runtime": 468.9202,
202
+ "eval_samples_per_second": 10.806,
203
+ "eval_steps_per_second": 1.352,
204
+ "step": 32929
205
+ },
206
+ {
207
+ "epoch": 14.0,
208
+ "learning_rate": 2.6666666666666667e-05,
209
+ "loss": 0.7069,
210
+ "step": 35462
211
+ },
212
+ {
213
+ "epoch": 14.0,
214
+ "eval_accuracy": 0.6492993881981448,
215
+ "eval_loss": 1.1467454433441162,
216
+ "eval_runtime": 463.7522,
217
+ "eval_samples_per_second": 10.926,
218
+ "eval_steps_per_second": 1.367,
219
+ "step": 35462
220
+ },
221
+ {
222
+ "epoch": 15.0,
223
+ "learning_rate": 2.5e-05,
224
+ "loss": 0.6519,
225
+ "step": 37995
226
+ },
227
+ {
228
+ "epoch": 15.0,
229
+ "eval_accuracy": 0.6573909611209788,
230
+ "eval_loss": 1.2422680854797363,
231
+ "eval_runtime": 464.9266,
232
+ "eval_samples_per_second": 10.898,
233
+ "eval_steps_per_second": 1.364,
234
+ "step": 37995
235
+ },
236
+ {
237
+ "epoch": 16.0,
238
+ "learning_rate": 2.3333333333333336e-05,
239
+ "loss": 0.5956,
240
+ "step": 40528
241
+ },
242
+ {
243
+ "epoch": 16.0,
244
+ "eval_accuracy": 0.6498914545095718,
245
+ "eval_loss": 1.2838796377182007,
246
+ "eval_runtime": 477.5194,
247
+ "eval_samples_per_second": 10.611,
248
+ "eval_steps_per_second": 1.328,
249
+ "step": 40528
250
+ },
251
+ {
252
+ "epoch": 17.0,
253
+ "learning_rate": 2.1666666666666667e-05,
254
+ "loss": 0.5531,
255
+ "step": 43061
256
+ },
257
+ {
258
+ "epoch": 17.0,
259
+ "eval_accuracy": 0.6591671600552595,
260
+ "eval_loss": 1.228452444076538,
261
+ "eval_runtime": 479.3427,
262
+ "eval_samples_per_second": 10.571,
263
+ "eval_steps_per_second": 1.323,
264
+ "step": 43061
265
+ },
266
+ {
267
+ "epoch": 18.0,
268
+ "learning_rate": 2e-05,
269
+ "loss": 0.5104,
270
+ "step": 45594
271
+ },
272
+ {
273
+ "epoch": 18.0,
274
+ "eval_accuracy": 0.6421945924610223,
275
+ "eval_loss": 1.287538766860962,
276
+ "eval_runtime": 470.0202,
277
+ "eval_samples_per_second": 10.78,
278
+ "eval_steps_per_second": 1.349,
279
+ "step": 45594
280
+ },
281
+ {
282
+ "epoch": 19.0,
283
+ "learning_rate": 1.8333333333333333e-05,
284
+ "loss": 0.4777,
285
+ "step": 48127
286
+ },
287
+ {
288
+ "epoch": 19.0,
289
+ "eval_accuracy": 0.6573909611209788,
290
+ "eval_loss": 1.1871315240859985,
291
+ "eval_runtime": 471.7135,
292
+ "eval_samples_per_second": 10.742,
293
+ "eval_steps_per_second": 1.344,
294
+ "step": 48127
295
+ },
296
+ {
297
+ "epoch": 20.0,
298
+ "learning_rate": 1.6666666666666667e-05,
299
+ "loss": 0.447,
300
+ "step": 50660
301
+ },
302
+ {
303
+ "epoch": 20.0,
304
+ "eval_accuracy": 0.6566015393724097,
305
+ "eval_loss": 1.2442570924758911,
306
+ "eval_runtime": 467.1299,
307
+ "eval_samples_per_second": 10.847,
308
+ "eval_steps_per_second": 1.357,
309
+ "step": 50660
310
+ },
311
+ {
312
+ "epoch": 21.0,
313
+ "learning_rate": 1.5e-05,
314
+ "loss": 0.4179,
315
+ "step": 53193
316
+ },
317
+ {
318
+ "epoch": 21.0,
319
+ "eval_accuracy": 0.6603512926781133,
320
+ "eval_loss": 1.2222002744674683,
321
+ "eval_runtime": 467.1803,
322
+ "eval_samples_per_second": 10.846,
323
+ "eval_steps_per_second": 1.357,
324
+ "step": 53193
325
+ },
326
+ {
327
+ "epoch": 22.0,
328
+ "learning_rate": 1.3333333333333333e-05,
329
+ "loss": 0.3939,
330
+ "step": 55726
331
+ },
332
+ {
333
+ "epoch": 22.0,
334
+ "eval_accuracy": 0.6400236826524571,
335
+ "eval_loss": 1.2755681276321411,
336
+ "eval_runtime": 466.7893,
337
+ "eval_samples_per_second": 10.855,
338
+ "eval_steps_per_second": 1.358,
339
+ "step": 55726
340
+ },
341
+ {
342
+ "epoch": 23.0,
343
+ "learning_rate": 1.1666666666666668e-05,
344
+ "loss": 0.3695,
345
+ "step": 58259
346
+ },
347
+ {
348
+ "epoch": 23.0,
349
+ "eval_accuracy": 0.656798894809552,
350
+ "eval_loss": 1.1457221508026123,
351
+ "eval_runtime": 468.5285,
352
+ "eval_samples_per_second": 10.815,
353
+ "eval_steps_per_second": 1.353,
354
+ "step": 58259
355
+ },
356
+ {
357
+ "epoch": 24.0,
358
+ "learning_rate": 1e-05,
359
+ "loss": 0.348,
360
+ "step": 60792
361
+ },
362
+ {
363
+ "epoch": 24.0,
364
+ "eval_accuracy": 0.6672587329780936,
365
+ "eval_loss": 1.144992709159851,
366
+ "eval_runtime": 470.6423,
367
+ "eval_samples_per_second": 10.766,
368
+ "eval_steps_per_second": 1.347,
369
+ "step": 60792
370
+ },
371
+ {
372
+ "epoch": 25.0,
373
+ "learning_rate": 8.333333333333334e-06,
374
+ "loss": 0.3326,
375
+ "step": 63325
376
+ },
377
+ {
378
+ "epoch": 25.0,
379
+ "eval_accuracy": 0.6644957568581015,
380
+ "eval_loss": 1.0921552181243896,
381
+ "eval_runtime": 470.5011,
382
+ "eval_samples_per_second": 10.769,
383
+ "eval_steps_per_second": 1.347,
384
+ "step": 63325
385
+ },
386
+ {
387
+ "epoch": 26.0,
388
+ "learning_rate": 6.666666666666667e-06,
389
+ "loss": 0.315,
390
+ "step": 65858
391
+ },
392
+ {
393
+ "epoch": 26.0,
394
+ "eval_accuracy": 0.6621274916123939,
395
+ "eval_loss": 1.1216638088226318,
396
+ "eval_runtime": 454.9608,
397
+ "eval_samples_per_second": 11.137,
398
+ "eval_steps_per_second": 1.394,
399
+ "step": 65858
400
+ },
401
+ {
402
+ "epoch": 27.0,
403
+ "learning_rate": 5e-06,
404
+ "loss": 0.2995,
405
+ "step": 68391
406
+ },
407
+ {
408
+ "epoch": 27.0,
409
+ "eval_accuracy": 0.6611407144266824,
410
+ "eval_loss": 1.0976777076721191,
411
+ "eval_runtime": 446.8324,
412
+ "eval_samples_per_second": 11.34,
413
+ "eval_steps_per_second": 1.419,
414
+ "step": 68391
415
+ },
416
+ {
417
+ "epoch": 28.0,
418
+ "learning_rate": 3.3333333333333333e-06,
419
+ "loss": 0.2943,
420
+ "step": 70924
421
+ },
422
+ {
423
+ "epoch": 28.0,
424
+ "eval_accuracy": 0.6607460035523979,
425
+ "eval_loss": 1.1353331804275513,
426
+ "eval_runtime": 452.9025,
427
+ "eval_samples_per_second": 11.188,
428
+ "eval_steps_per_second": 1.4,
429
+ "step": 70924
430
+ },
431
+ {
432
+ "epoch": 29.0,
433
+ "learning_rate": 1.6666666666666667e-06,
434
+ "loss": 0.2828,
435
+ "step": 73457
436
+ },
437
+ {
438
+ "epoch": 29.0,
439
+ "eval_accuracy": 0.66350897967239,
440
+ "eval_loss": 1.0929347276687622,
441
+ "eval_runtime": 461.1223,
442
+ "eval_samples_per_second": 10.988,
443
+ "eval_steps_per_second": 1.375,
444
+ "step": 73457
445
+ },
446
+ {
447
+ "epoch": 30.0,
448
+ "learning_rate": 0.0,
449
+ "loss": 0.276,
450
+ "step": 75990
451
+ },
452
+ {
453
+ "epoch": 30.0,
454
+ "eval_accuracy": 0.6627195579238208,
455
+ "eval_loss": 1.0914403200149536,
456
+ "eval_runtime": 464.7038,
457
+ "eval_samples_per_second": 10.904,
458
+ "eval_steps_per_second": 1.364,
459
+ "step": 75990
460
+ }
461
+ ],
462
+ "logging_steps": 500,
463
+ "max_steps": 75990,
464
+ "num_input_tokens_seen": 0,
465
+ "num_train_epochs": 30,
466
+ "save_steps": 500,
467
+ "total_flos": 1.2266522779779072e+18,
468
+ "train_batch_size": 8,
469
+ "trial_name": null,
470
+ "trial_params": null
471
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51e056e0ee2d9a6372cbb5a5e55de4e9cc18bfe76331118acdeb9b74dca9f4bc
3
+ size 4792