zqTensor commited on
Commit
c9853a1
·
verified ·
1 Parent(s): 7068e7d

Model save

Browse files
README.md CHANGED
@@ -3,29 +3,12 @@ library_name: transformers
3
  license: apache-2.0
4
  base_model: google/vit-base-patch16-224-in21k
5
  tags:
6
- - image-classification
7
- - vision
8
  - generated_from_trainer
9
- datasets:
10
- - imagefolder
11
  metrics:
12
  - accuracy
13
  model-index:
14
  - name: vit-base-beans
15
- results:
16
- - task:
17
- name: Image Classification
18
- type: image-classification
19
- dataset:
20
- name: imagefolder
21
- type: imagefolder
22
- config: default
23
- split: validation
24
- args: default
25
- metrics:
26
- - name: Accuracy
27
- type: accuracy
28
- value: 0.9924812030075187
29
  ---
30
 
31
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
@@ -33,10 +16,10 @@ should probably proofread and complete it, then remove this comment. -->
33
 
34
  # vit-base-beans
35
 
36
- 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 imagefolder dataset.
37
  It achieves the following results on the evaluation set:
38
- - Loss: 0.0650
39
- - Accuracy: 0.9925
40
 
41
  ## Model description
42
 
@@ -59,6 +42,10 @@ The following hyperparameters were used during training:
59
  - train_batch_size: 8
60
  - eval_batch_size: 8
61
  - seed: 1337
 
 
 
 
62
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
63
  - lr_scheduler_type: linear
64
  - num_epochs: 5.0
@@ -67,11 +54,11 @@ The following hyperparameters were used during training:
67
 
68
  | Training Loss | Epoch | Step | Accuracy | Validation Loss |
69
  |:-------------:|:-----:|:----:|:--------:|:---------------:|
70
- | 0.2815 | 1.0 | 130 | 0.9624 | 0.2165 |
71
- | 0.1287 | 2.0 | 260 | 0.9699 | 0.1313 |
72
- | 0.1408 | 3.0 | 390 | 0.9699 | 0.0998 |
73
- | 0.0846 | 4.0 | 520 | 0.9925 | 0.0650 |
74
- | 0.1105 | 5.0 | 650 | 0.9774 | 0.0837 |
75
 
76
 
77
  ### Framework versions
 
3
  license: apache-2.0
4
  base_model: google/vit-base-patch16-224-in21k
5
  tags:
 
 
6
  - generated_from_trainer
 
 
7
  metrics:
8
  - accuracy
9
  model-index:
10
  - name: vit-base-beans
11
+ results: []
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  ---
13
 
14
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
16
 
17
  # vit-base-beans
18
 
19
+ 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.
20
  It achieves the following results on the evaluation set:
21
+ - Accuracy: 0.9774
22
+ - Loss: 0.0817
23
 
24
  ## Model description
25
 
 
42
  - train_batch_size: 8
43
  - eval_batch_size: 8
44
  - seed: 1337
45
+ - distributed_type: multi-GPU
46
+ - num_devices: 2
47
+ - total_train_batch_size: 16
48
+ - total_eval_batch_size: 16
49
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
  - lr_scheduler_type: linear
51
  - num_epochs: 5.0
 
54
 
55
  | Training Loss | Epoch | Step | Accuracy | Validation Loss |
56
  |:-------------:|:-----:|:----:|:--------:|:---------------:|
57
+ | 0.2859 | 1.0 | 130 | 0.9624 | 0.2189 |
58
+ | 0.1316 | 2.0 | 260 | 0.9699 | 0.1334 |
59
+ | 0.1438 | 3.0 | 390 | 0.9699 | 0.0981 |
60
+ | 0.0833 | 4.0 | 520 | 0.9925 | 0.0656 |
61
+ | 0.1107 | 5.0 | 650 | 0.9774 | 0.0817 |
62
 
63
 
64
  ### Framework versions
all_results.json CHANGED
@@ -1,13 +1,13 @@
1
  {
2
  "epoch": 5.0,
3
  "eval_accuracy": 0.9924812030075187,
4
- "eval_loss": 0.06499230116605759,
5
- "eval_runtime": 1.0883,
6
- "eval_samples_per_second": 122.212,
7
- "eval_steps_per_second": 15.621,
8
  "total_flos": 4.006371770595533e+17,
9
- "train_loss": 0.0,
10
- "train_runtime": 0.0792,
11
- "train_samples_per_second": 65303.31,
12
- "train_steps_per_second": 8210.281
13
  }
 
1
  {
2
  "epoch": 5.0,
3
  "eval_accuracy": 0.9924812030075187,
4
+ "eval_loss": 0.06558172404766083,
5
+ "eval_runtime": 1.0482,
6
+ "eval_samples_per_second": 126.888,
7
+ "eval_steps_per_second": 16.219,
8
  "total_flos": 4.006371770595533e+17,
9
+ "train_loss": 0.21942725667586693,
10
+ "train_runtime": 100.7972,
11
+ "train_samples_per_second": 51.291,
12
+ "train_steps_per_second": 6.449
13
  }
config.json CHANGED
@@ -28,7 +28,6 @@
28
  "num_channels": 3,
29
  "num_hidden_layers": 12,
30
  "patch_size": 16,
31
- "problem_type": "single_label_classification",
32
  "qkv_bias": true,
33
  "torch_dtype": "float32",
34
  "transformers_version": "4.45.0.dev0"
 
28
  "num_channels": 3,
29
  "num_hidden_layers": 12,
30
  "patch_size": 16,
 
31
  "qkv_bias": true,
32
  "torch_dtype": "float32",
33
  "transformers_version": "4.45.0.dev0"
eval_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "epoch": 5.0,
3
  "eval_accuracy": 0.9924812030075187,
4
- "eval_loss": 0.06499230116605759,
5
- "eval_runtime": 1.0883,
6
- "eval_samples_per_second": 122.212,
7
- "eval_steps_per_second": 15.621
8
  }
 
1
  {
2
  "epoch": 5.0,
3
  "eval_accuracy": 0.9924812030075187,
4
+ "eval_loss": 0.06558172404766083,
5
+ "eval_runtime": 1.0482,
6
+ "eval_samples_per_second": 126.888,
7
+ "eval_steps_per_second": 16.219
8
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6ab43b90e9a0dba3663bb520f27f1b133faa119571c5b3441c604f369343ff38
3
  size 343227052
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9642438303d2b063dc124d1182a3b2a785cd9f704a965ed7052fc72f1c60318d
3
  size 343227052
train_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "epoch": 5.0,
3
  "total_flos": 4.006371770595533e+17,
4
- "train_loss": 0.0,
5
- "train_runtime": 0.0792,
6
- "train_samples_per_second": 65303.31,
7
- "train_steps_per_second": 8210.281
8
  }
 
1
  {
2
  "epoch": 5.0,
3
  "total_flos": 4.006371770595533e+17,
4
+ "train_loss": 0.21942725667586693,
5
+ "train_runtime": 100.7972,
6
+ "train_samples_per_second": 51.291,
7
+ "train_steps_per_second": 6.449
8
  }
trainer_state.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "best_metric": 0.06499230116605759,
3
  "best_model_checkpoint": "./beans_outputs/checkpoint-520",
4
  "epoch": 5.0,
5
  "eval_steps": 500,
@@ -10,512 +10,512 @@
10
  "log_history": [
11
  {
12
  "epoch": 0.07692307692307693,
13
- "grad_norm": 2.198392391204834,
14
  "learning_rate": 1.9692307692307696e-05,
15
  "loss": 1.0245,
16
  "step": 10
17
  },
18
  {
19
  "epoch": 0.15384615384615385,
20
- "grad_norm": 1.846859335899353,
21
  "learning_rate": 1.9384615384615386e-05,
22
  "loss": 0.9453,
23
  "step": 20
24
  },
25
  {
26
  "epoch": 0.23076923076923078,
27
- "grad_norm": 2.059973955154419,
28
  "learning_rate": 1.907692307692308e-05,
29
- "loss": 0.8405,
30
  "step": 30
31
  },
32
  {
33
  "epoch": 0.3076923076923077,
34
- "grad_norm": 2.618006944656372,
35
  "learning_rate": 1.876923076923077e-05,
36
- "loss": 0.6956,
37
  "step": 40
38
  },
39
  {
40
  "epoch": 0.38461538461538464,
41
- "grad_norm": 3.8514087200164795,
42
  "learning_rate": 1.8461538461538465e-05,
43
- "loss": 0.6615,
44
  "step": 50
45
  },
46
  {
47
  "epoch": 0.46153846153846156,
48
- "grad_norm": 2.1362836360931396,
49
  "learning_rate": 1.8153846153846155e-05,
50
- "loss": 0.5829,
51
  "step": 60
52
  },
53
  {
54
  "epoch": 0.5384615384615384,
55
- "grad_norm": 1.7998223304748535,
56
  "learning_rate": 1.784615384615385e-05,
57
- "loss": 0.5202,
58
  "step": 70
59
  },
60
  {
61
  "epoch": 0.6153846153846154,
62
- "grad_norm": 1.2562752962112427,
63
  "learning_rate": 1.753846153846154e-05,
64
- "loss": 0.3936,
65
  "step": 80
66
  },
67
  {
68
  "epoch": 0.6923076923076923,
69
- "grad_norm": 2.561612606048584,
70
  "learning_rate": 1.7230769230769234e-05,
71
- "loss": 0.3544,
72
  "step": 90
73
  },
74
  {
75
  "epoch": 0.7692307692307693,
76
- "grad_norm": 2.900808811187744,
77
  "learning_rate": 1.6923076923076924e-05,
78
- "loss": 0.3681,
79
  "step": 100
80
  },
81
  {
82
  "epoch": 0.8461538461538461,
83
- "grad_norm": 2.010755777359009,
84
  "learning_rate": 1.6615384615384618e-05,
85
- "loss": 0.3327,
86
  "step": 110
87
  },
88
  {
89
  "epoch": 0.9230769230769231,
90
- "grad_norm": 2.478074550628662,
91
  "learning_rate": 1.630769230769231e-05,
92
- "loss": 0.2444,
93
  "step": 120
94
  },
95
  {
96
  "epoch": 1.0,
97
- "grad_norm": 6.432145118713379,
98
  "learning_rate": 1.6000000000000003e-05,
99
- "loss": 0.2815,
100
  "step": 130
101
  },
102
  {
103
  "epoch": 1.0,
104
  "eval_accuracy": 0.9624060150375939,
105
- "eval_loss": 0.21647371351718903,
106
- "eval_runtime": 0.9083,
107
- "eval_samples_per_second": 146.421,
108
- "eval_steps_per_second": 18.715,
109
  "step": 130
110
  },
111
  {
112
  "epoch": 1.0769230769230769,
113
- "grad_norm": 1.6476765871047974,
114
  "learning_rate": 1.5692307692307693e-05,
115
- "loss": 0.1987,
116
  "step": 140
117
  },
118
  {
119
  "epoch": 1.1538461538461537,
120
- "grad_norm": 3.0852138996124268,
121
  "learning_rate": 1.5384615384615387e-05,
122
- "loss": 0.2238,
123
  "step": 150
124
  },
125
  {
126
  "epoch": 1.2307692307692308,
127
- "grad_norm": 1.8425233364105225,
128
  "learning_rate": 1.5076923076923078e-05,
129
- "loss": 0.2053,
130
  "step": 160
131
  },
132
  {
133
  "epoch": 1.3076923076923077,
134
- "grad_norm": 0.5158002972602844,
135
  "learning_rate": 1.4769230769230772e-05,
136
- "loss": 0.2207,
137
  "step": 170
138
  },
139
  {
140
  "epoch": 1.3846153846153846,
141
- "grad_norm": 0.6001647710800171,
142
  "learning_rate": 1.4461538461538462e-05,
143
- "loss": 0.2113,
144
  "step": 180
145
  },
146
  {
147
  "epoch": 1.4615384615384617,
148
- "grad_norm": 4.286410808563232,
149
  "learning_rate": 1.4153846153846156e-05,
150
- "loss": 0.165,
151
  "step": 190
152
  },
153
  {
154
  "epoch": 1.5384615384615383,
155
- "grad_norm": 0.4559226334095001,
156
  "learning_rate": 1.3846153846153847e-05,
157
- "loss": 0.2555,
158
  "step": 200
159
  },
160
  {
161
  "epoch": 1.6153846153846154,
162
- "grad_norm": 0.6161900162696838,
163
  "learning_rate": 1.353846153846154e-05,
164
- "loss": 0.1819,
165
  "step": 210
166
  },
167
  {
168
  "epoch": 1.6923076923076923,
169
- "grad_norm": 2.301481008529663,
170
  "learning_rate": 1.3230769230769231e-05,
171
- "loss": 0.2104,
172
  "step": 220
173
  },
174
  {
175
  "epoch": 1.7692307692307692,
176
- "grad_norm": 1.8308448791503906,
177
  "learning_rate": 1.2923076923076925e-05,
178
- "loss": 0.1762,
179
  "step": 230
180
  },
181
  {
182
  "epoch": 1.8461538461538463,
183
- "grad_norm": 5.278977394104004,
184
  "learning_rate": 1.2615384615384616e-05,
185
- "loss": 0.2573,
186
  "step": 240
187
  },
188
  {
189
  "epoch": 1.9230769230769231,
190
- "grad_norm": 0.40304750204086304,
191
  "learning_rate": 1.230769230769231e-05,
192
- "loss": 0.1377,
193
  "step": 250
194
  },
195
  {
196
  "epoch": 2.0,
197
- "grad_norm": 0.350562185049057,
198
  "learning_rate": 1.2e-05,
199
- "loss": 0.1287,
200
  "step": 260
201
  },
202
  {
203
  "epoch": 2.0,
204
  "eval_accuracy": 0.9699248120300752,
205
- "eval_loss": 0.13134175539016724,
206
- "eval_runtime": 0.9453,
207
- "eval_samples_per_second": 140.692,
208
- "eval_steps_per_second": 17.983,
209
  "step": 260
210
  },
211
  {
212
  "epoch": 2.076923076923077,
213
- "grad_norm": 0.5022653341293335,
214
  "learning_rate": 1.1692307692307694e-05,
215
- "loss": 0.0932,
216
  "step": 270
217
  },
218
  {
219
  "epoch": 2.1538461538461537,
220
- "grad_norm": 0.3385148346424103,
221
  "learning_rate": 1.1384615384615385e-05,
222
- "loss": 0.145,
223
  "step": 280
224
  },
225
  {
226
  "epoch": 2.230769230769231,
227
- "grad_norm": 7.167346477508545,
228
  "learning_rate": 1.1076923076923079e-05,
229
- "loss": 0.1236,
230
  "step": 290
231
  },
232
  {
233
  "epoch": 2.3076923076923075,
234
- "grad_norm": 11.584583282470703,
235
  "learning_rate": 1.076923076923077e-05,
236
- "loss": 0.138,
237
  "step": 300
238
  },
239
  {
240
  "epoch": 2.3846153846153846,
241
- "grad_norm": 4.579661846160889,
242
  "learning_rate": 1.0461538461538463e-05,
243
- "loss": 0.1726,
244
  "step": 310
245
  },
246
  {
247
  "epoch": 2.4615384615384617,
248
- "grad_norm": 0.30623820424079895,
249
  "learning_rate": 1.0153846153846154e-05,
250
- "loss": 0.1543,
251
  "step": 320
252
  },
253
  {
254
  "epoch": 2.5384615384615383,
255
- "grad_norm": 5.757983684539795,
256
  "learning_rate": 9.846153846153848e-06,
257
- "loss": 0.1897,
258
  "step": 330
259
  },
260
  {
261
  "epoch": 2.6153846153846154,
262
- "grad_norm": 1.116064190864563,
263
  "learning_rate": 9.53846153846154e-06,
264
- "loss": 0.0727,
265
  "step": 340
266
  },
267
  {
268
  "epoch": 2.6923076923076925,
269
- "grad_norm": 0.3445896506309509,
270
  "learning_rate": 9.230769230769232e-06,
271
- "loss": 0.1346,
272
  "step": 350
273
  },
274
  {
275
  "epoch": 2.769230769230769,
276
- "grad_norm": 12.3712158203125,
277
  "learning_rate": 8.923076923076925e-06,
278
- "loss": 0.1349,
279
  "step": 360
280
  },
281
  {
282
  "epoch": 2.8461538461538463,
283
- "grad_norm": 0.29760444164276123,
284
  "learning_rate": 8.615384615384617e-06,
285
- "loss": 0.1519,
286
  "step": 370
287
  },
288
  {
289
  "epoch": 2.9230769230769234,
290
- "grad_norm": 1.1171053647994995,
291
  "learning_rate": 8.307692307692309e-06,
292
- "loss": 0.1278,
293
  "step": 380
294
  },
295
  {
296
  "epoch": 3.0,
297
- "grad_norm": 0.3179745078086853,
298
  "learning_rate": 8.000000000000001e-06,
299
- "loss": 0.1408,
300
  "step": 390
301
  },
302
  {
303
  "epoch": 3.0,
304
  "eval_accuracy": 0.9699248120300752,
305
- "eval_loss": 0.09979864209890366,
306
- "eval_runtime": 0.9058,
307
- "eval_samples_per_second": 146.838,
308
- "eval_steps_per_second": 18.769,
309
  "step": 390
310
  },
311
  {
312
  "epoch": 3.076923076923077,
313
- "grad_norm": 2.1718528270721436,
314
  "learning_rate": 7.692307692307694e-06,
315
- "loss": 0.1321,
316
  "step": 400
317
  },
318
  {
319
  "epoch": 3.1538461538461537,
320
- "grad_norm": 6.615433216094971,
321
  "learning_rate": 7.384615384615386e-06,
322
- "loss": 0.1546,
323
  "step": 410
324
  },
325
  {
326
  "epoch": 3.230769230769231,
327
- "grad_norm": 8.979787826538086,
328
  "learning_rate": 7.076923076923078e-06,
329
- "loss": 0.1429,
330
  "step": 420
331
  },
332
  {
333
  "epoch": 3.3076923076923075,
334
- "grad_norm": 0.2338067889213562,
335
  "learning_rate": 6.76923076923077e-06,
336
  "loss": 0.0768,
337
  "step": 430
338
  },
339
  {
340
  "epoch": 3.3846153846153846,
341
- "grad_norm": 5.406207084655762,
342
  "learning_rate": 6.461538461538463e-06,
343
- "loss": 0.1158,
344
  "step": 440
345
  },
346
  {
347
  "epoch": 3.4615384615384617,
348
- "grad_norm": 12.034098625183105,
349
  "learning_rate": 6.153846153846155e-06,
350
- "loss": 0.0831,
351
  "step": 450
352
  },
353
  {
354
  "epoch": 3.5384615384615383,
355
- "grad_norm": 5.9186906814575195,
356
  "learning_rate": 5.846153846153847e-06,
357
- "loss": 0.0963,
358
  "step": 460
359
  },
360
  {
361
  "epoch": 3.6153846153846154,
362
- "grad_norm": 8.250151634216309,
363
  "learning_rate": 5.538461538461539e-06,
364
- "loss": 0.0791,
365
  "step": 470
366
  },
367
  {
368
  "epoch": 3.6923076923076925,
369
- "grad_norm": 0.21918846666812897,
370
  "learning_rate": 5.230769230769232e-06,
371
- "loss": 0.0971,
372
  "step": 480
373
  },
374
  {
375
  "epoch": 3.769230769230769,
376
- "grad_norm": 0.21208502352237701,
377
  "learning_rate": 4.923076923076924e-06,
378
- "loss": 0.0718,
379
  "step": 490
380
  },
381
  {
382
  "epoch": 3.8461538461538463,
383
- "grad_norm": 0.9157105684280396,
384
  "learning_rate": 4.615384615384616e-06,
385
- "loss": 0.1413,
386
  "step": 500
387
  },
388
  {
389
  "epoch": 3.9230769230769234,
390
- "grad_norm": 0.20776814222335815,
391
  "learning_rate": 4.307692307692308e-06,
392
- "loss": 0.1272,
393
  "step": 510
394
  },
395
  {
396
  "epoch": 4.0,
397
- "grad_norm": 0.30272677540779114,
398
  "learning_rate": 4.000000000000001e-06,
399
- "loss": 0.0846,
400
  "step": 520
401
  },
402
  {
403
  "epoch": 4.0,
404
  "eval_accuracy": 0.9924812030075187,
405
- "eval_loss": 0.06499230116605759,
406
- "eval_runtime": 0.9407,
407
- "eval_samples_per_second": 141.382,
408
- "eval_steps_per_second": 18.071,
409
  "step": 520
410
  },
411
  {
412
  "epoch": 4.076923076923077,
413
- "grad_norm": 7.613215923309326,
414
  "learning_rate": 3.692307692307693e-06,
415
- "loss": 0.1002,
416
  "step": 530
417
  },
418
  {
419
  "epoch": 4.153846153846154,
420
- "grad_norm": 1.5558936595916748,
421
  "learning_rate": 3.384615384615385e-06,
422
- "loss": 0.1657,
423
  "step": 540
424
  },
425
  {
426
  "epoch": 4.230769230769231,
427
- "grad_norm": 0.3433710038661957,
428
  "learning_rate": 3.0769230769230774e-06,
429
- "loss": 0.1559,
430
  "step": 550
431
  },
432
  {
433
  "epoch": 4.3076923076923075,
434
- "grad_norm": 1.3209067583084106,
435
  "learning_rate": 2.7692307692307697e-06,
436
- "loss": 0.0526,
437
  "step": 560
438
  },
439
  {
440
  "epoch": 4.384615384615385,
441
- "grad_norm": 0.307217538356781,
442
  "learning_rate": 2.461538461538462e-06,
443
- "loss": 0.1305,
444
  "step": 570
445
  },
446
  {
447
  "epoch": 4.461538461538462,
448
- "grad_norm": 0.273890882730484,
449
  "learning_rate": 2.153846153846154e-06,
450
- "loss": 0.0813,
451
  "step": 580
452
  },
453
  {
454
  "epoch": 4.538461538461538,
455
- "grad_norm": 9.096426963806152,
456
  "learning_rate": 1.8461538461538465e-06,
457
- "loss": 0.0783,
458
  "step": 590
459
  },
460
  {
461
  "epoch": 4.615384615384615,
462
- "grad_norm": 3.9279935359954834,
463
  "learning_rate": 1.5384615384615387e-06,
464
- "loss": 0.0952,
465
  "step": 600
466
  },
467
  {
468
  "epoch": 4.6923076923076925,
469
- "grad_norm": 5.055220127105713,
470
  "learning_rate": 1.230769230769231e-06,
471
- "loss": 0.0868,
472
  "step": 610
473
  },
474
  {
475
  "epoch": 4.769230769230769,
476
- "grad_norm": 0.2579015791416168,
477
  "learning_rate": 9.230769230769232e-07,
478
- "loss": 0.0834,
479
  "step": 620
480
  },
481
  {
482
  "epoch": 4.846153846153846,
483
- "grad_norm": 0.2216470092535019,
484
  "learning_rate": 6.153846153846155e-07,
485
- "loss": 0.0644,
486
  "step": 630
487
  },
488
  {
489
  "epoch": 4.923076923076923,
490
- "grad_norm": 0.23264001309871674,
491
  "learning_rate": 3.0769230769230774e-07,
492
- "loss": 0.0775,
493
  "step": 640
494
  },
495
  {
496
  "epoch": 5.0,
497
- "grad_norm": 0.5718781352043152,
498
  "learning_rate": 0.0,
499
- "loss": 0.1105,
500
  "step": 650
501
  },
502
  {
503
  "epoch": 5.0,
504
  "eval_accuracy": 0.9774436090225563,
505
- "eval_loss": 0.08365403115749359,
506
- "eval_runtime": 0.9587,
507
- "eval_samples_per_second": 138.736,
508
- "eval_steps_per_second": 17.733,
509
  "step": 650
510
  },
511
  {
512
  "epoch": 5.0,
513
  "step": 650,
514
  "total_flos": 4.006371770595533e+17,
515
- "train_loss": 0.0,
516
- "train_runtime": 0.0792,
517
- "train_samples_per_second": 65303.31,
518
- "train_steps_per_second": 8210.281
519
  }
520
  ],
521
  "logging_steps": 10,
 
1
  {
2
+ "best_metric": 0.06558172404766083,
3
  "best_model_checkpoint": "./beans_outputs/checkpoint-520",
4
  "epoch": 5.0,
5
  "eval_steps": 500,
 
10
  "log_history": [
11
  {
12
  "epoch": 0.07692307692307693,
13
+ "grad_norm": 2.198366403579712,
14
  "learning_rate": 1.9692307692307696e-05,
15
  "loss": 1.0245,
16
  "step": 10
17
  },
18
  {
19
  "epoch": 0.15384615384615385,
20
+ "grad_norm": 1.8460220098495483,
21
  "learning_rate": 1.9384615384615386e-05,
22
  "loss": 0.9453,
23
  "step": 20
24
  },
25
  {
26
  "epoch": 0.23076923076923078,
27
+ "grad_norm": 2.117300271987915,
28
  "learning_rate": 1.907692307692308e-05,
29
+ "loss": 0.8406,
30
  "step": 30
31
  },
32
  {
33
  "epoch": 0.3076923076923077,
34
+ "grad_norm": 2.645448684692383,
35
  "learning_rate": 1.876923076923077e-05,
36
+ "loss": 0.6951,
37
  "step": 40
38
  },
39
  {
40
  "epoch": 0.38461538461538464,
41
+ "grad_norm": 4.24210262298584,
42
  "learning_rate": 1.8461538461538465e-05,
43
+ "loss": 0.662,
44
  "step": 50
45
  },
46
  {
47
  "epoch": 0.46153846153846156,
48
+ "grad_norm": 2.095567464828491,
49
  "learning_rate": 1.8153846153846155e-05,
50
+ "loss": 0.5811,
51
  "step": 60
52
  },
53
  {
54
  "epoch": 0.5384615384615384,
55
+ "grad_norm": 2.079636573791504,
56
  "learning_rate": 1.784615384615385e-05,
57
+ "loss": 0.5193,
58
  "step": 70
59
  },
60
  {
61
  "epoch": 0.6153846153846154,
62
+ "grad_norm": 1.218340277671814,
63
  "learning_rate": 1.753846153846154e-05,
64
+ "loss": 0.3945,
65
  "step": 80
66
  },
67
  {
68
  "epoch": 0.6923076923076923,
69
+ "grad_norm": 2.4416184425354004,
70
  "learning_rate": 1.7230769230769234e-05,
71
+ "loss": 0.3528,
72
  "step": 90
73
  },
74
  {
75
  "epoch": 0.7692307692307693,
76
+ "grad_norm": 2.8852720260620117,
77
  "learning_rate": 1.6923076923076924e-05,
78
+ "loss": 0.3689,
79
  "step": 100
80
  },
81
  {
82
  "epoch": 0.8461538461538461,
83
+ "grad_norm": 1.9503966569900513,
84
  "learning_rate": 1.6615384615384618e-05,
85
+ "loss": 0.3368,
86
  "step": 110
87
  },
88
  {
89
  "epoch": 0.9230769230769231,
90
+ "grad_norm": 2.335829496383667,
91
  "learning_rate": 1.630769230769231e-05,
92
+ "loss": 0.2468,
93
  "step": 120
94
  },
95
  {
96
  "epoch": 1.0,
97
+ "grad_norm": 7.0948638916015625,
98
  "learning_rate": 1.6000000000000003e-05,
99
+ "loss": 0.2859,
100
  "step": 130
101
  },
102
  {
103
  "epoch": 1.0,
104
  "eval_accuracy": 0.9624060150375939,
105
+ "eval_loss": 0.21892516314983368,
106
+ "eval_runtime": 0.9855,
107
+ "eval_samples_per_second": 134.957,
108
+ "eval_steps_per_second": 17.25,
109
  "step": 130
110
  },
111
  {
112
  "epoch": 1.0769230769230769,
113
+ "grad_norm": 1.765810251235962,
114
  "learning_rate": 1.5692307692307693e-05,
115
+ "loss": 0.2006,
116
  "step": 140
117
  },
118
  {
119
  "epoch": 1.1538461538461537,
120
+ "grad_norm": 3.1403791904449463,
121
  "learning_rate": 1.5384615384615387e-05,
122
+ "loss": 0.2243,
123
  "step": 150
124
  },
125
  {
126
  "epoch": 1.2307692307692308,
127
+ "grad_norm": 1.4933677911758423,
128
  "learning_rate": 1.5076923076923078e-05,
129
+ "loss": 0.2035,
130
  "step": 160
131
  },
132
  {
133
  "epoch": 1.3076923076923077,
134
+ "grad_norm": 0.5171657800674438,
135
  "learning_rate": 1.4769230769230772e-05,
136
+ "loss": 0.2208,
137
  "step": 170
138
  },
139
  {
140
  "epoch": 1.3846153846153846,
141
+ "grad_norm": 0.600874662399292,
142
  "learning_rate": 1.4461538461538462e-05,
143
+ "loss": 0.211,
144
  "step": 180
145
  },
146
  {
147
  "epoch": 1.4615384615384617,
148
+ "grad_norm": 3.5654282569885254,
149
  "learning_rate": 1.4153846153846156e-05,
150
+ "loss": 0.1607,
151
  "step": 190
152
  },
153
  {
154
  "epoch": 1.5384615384615383,
155
+ "grad_norm": 0.47061973810195923,
156
  "learning_rate": 1.3846153846153847e-05,
157
+ "loss": 0.2526,
158
  "step": 200
159
  },
160
  {
161
  "epoch": 1.6153846153846154,
162
+ "grad_norm": 0.6342479586601257,
163
  "learning_rate": 1.353846153846154e-05,
164
+ "loss": 0.1804,
165
  "step": 210
166
  },
167
  {
168
  "epoch": 1.6923076923076923,
169
+ "grad_norm": 2.391136884689331,
170
  "learning_rate": 1.3230769230769231e-05,
171
+ "loss": 0.2121,
172
  "step": 220
173
  },
174
  {
175
  "epoch": 1.7692307692307692,
176
+ "grad_norm": 1.8535972833633423,
177
  "learning_rate": 1.2923076923076925e-05,
178
+ "loss": 0.1678,
179
  "step": 230
180
  },
181
  {
182
  "epoch": 1.8461538461538463,
183
+ "grad_norm": 11.256393432617188,
184
  "learning_rate": 1.2615384615384616e-05,
185
+ "loss": 0.2574,
186
  "step": 240
187
  },
188
  {
189
  "epoch": 1.9230769230769231,
190
+ "grad_norm": 0.4076194167137146,
191
  "learning_rate": 1.230769230769231e-05,
192
+ "loss": 0.1442,
193
  "step": 250
194
  },
195
  {
196
  "epoch": 2.0,
197
+ "grad_norm": 0.3490784168243408,
198
  "learning_rate": 1.2e-05,
199
+ "loss": 0.1316,
200
  "step": 260
201
  },
202
  {
203
  "epoch": 2.0,
204
  "eval_accuracy": 0.9699248120300752,
205
+ "eval_loss": 0.13337133824825287,
206
+ "eval_runtime": 0.9938,
207
+ "eval_samples_per_second": 133.827,
208
+ "eval_steps_per_second": 17.106,
209
  "step": 260
210
  },
211
  {
212
  "epoch": 2.076923076923077,
213
+ "grad_norm": 0.5328232645988464,
214
  "learning_rate": 1.1692307692307694e-05,
215
+ "loss": 0.0897,
216
  "step": 270
217
  },
218
  {
219
  "epoch": 2.1538461538461537,
220
+ "grad_norm": 0.3375113904476166,
221
  "learning_rate": 1.1384615384615385e-05,
222
+ "loss": 0.1475,
223
  "step": 280
224
  },
225
  {
226
  "epoch": 2.230769230769231,
227
+ "grad_norm": 7.195676326751709,
228
  "learning_rate": 1.1076923076923079e-05,
229
+ "loss": 0.1321,
230
  "step": 290
231
  },
232
  {
233
  "epoch": 2.3076923076923075,
234
+ "grad_norm": 8.226975440979004,
235
  "learning_rate": 1.076923076923077e-05,
236
+ "loss": 0.1375,
237
  "step": 300
238
  },
239
  {
240
  "epoch": 2.3846153846153846,
241
+ "grad_norm": 5.051274299621582,
242
  "learning_rate": 1.0461538461538463e-05,
243
+ "loss": 0.1755,
244
  "step": 310
245
  },
246
  {
247
  "epoch": 2.4615384615384617,
248
+ "grad_norm": 0.30559489130973816,
249
  "learning_rate": 1.0153846153846154e-05,
250
+ "loss": 0.1542,
251
  "step": 320
252
  },
253
  {
254
  "epoch": 2.5384615384615383,
255
+ "grad_norm": 6.551879405975342,
256
  "learning_rate": 9.846153846153848e-06,
257
+ "loss": 0.1872,
258
  "step": 330
259
  },
260
  {
261
  "epoch": 2.6153846153846154,
262
+ "grad_norm": 1.2321629524230957,
263
  "learning_rate": 9.53846153846154e-06,
264
+ "loss": 0.0714,
265
  "step": 340
266
  },
267
  {
268
  "epoch": 2.6923076923076925,
269
+ "grad_norm": 0.3684569299221039,
270
  "learning_rate": 9.230769230769232e-06,
271
+ "loss": 0.1325,
272
  "step": 350
273
  },
274
  {
275
  "epoch": 2.769230769230769,
276
+ "grad_norm": 9.62742805480957,
277
  "learning_rate": 8.923076923076925e-06,
278
+ "loss": 0.1203,
279
  "step": 360
280
  },
281
  {
282
  "epoch": 2.8461538461538463,
283
+ "grad_norm": 0.3335096836090088,
284
  "learning_rate": 8.615384615384617e-06,
285
+ "loss": 0.154,
286
  "step": 370
287
  },
288
  {
289
  "epoch": 2.9230769230769234,
290
+ "grad_norm": 1.1392183303833008,
291
  "learning_rate": 8.307692307692309e-06,
292
+ "loss": 0.1306,
293
  "step": 380
294
  },
295
  {
296
  "epoch": 3.0,
297
+ "grad_norm": 0.29587361216545105,
298
  "learning_rate": 8.000000000000001e-06,
299
+ "loss": 0.1438,
300
  "step": 390
301
  },
302
  {
303
  "epoch": 3.0,
304
  "eval_accuracy": 0.9699248120300752,
305
+ "eval_loss": 0.09808181971311569,
306
+ "eval_runtime": 0.9838,
307
+ "eval_samples_per_second": 135.192,
308
+ "eval_steps_per_second": 17.28,
309
  "step": 390
310
  },
311
  {
312
  "epoch": 3.076923076923077,
313
+ "grad_norm": 2.2563395500183105,
314
  "learning_rate": 7.692307692307694e-06,
315
+ "loss": 0.1325,
316
  "step": 400
317
  },
318
  {
319
  "epoch": 3.1538461538461537,
320
+ "grad_norm": 6.758065223693848,
321
  "learning_rate": 7.384615384615386e-06,
322
+ "loss": 0.154,
323
  "step": 410
324
  },
325
  {
326
  "epoch": 3.230769230769231,
327
+ "grad_norm": 8.712298393249512,
328
  "learning_rate": 7.076923076923078e-06,
329
+ "loss": 0.1422,
330
  "step": 420
331
  },
332
  {
333
  "epoch": 3.3076923076923075,
334
+ "grad_norm": 0.23161759972572327,
335
  "learning_rate": 6.76923076923077e-06,
336
  "loss": 0.0768,
337
  "step": 430
338
  },
339
  {
340
  "epoch": 3.3846153846153846,
341
+ "grad_norm": 5.164632797241211,
342
  "learning_rate": 6.461538461538463e-06,
343
+ "loss": 0.1136,
344
  "step": 440
345
  },
346
  {
347
  "epoch": 3.4615384615384617,
348
+ "grad_norm": 12.590032577514648,
349
  "learning_rate": 6.153846153846155e-06,
350
+ "loss": 0.0854,
351
  "step": 450
352
  },
353
  {
354
  "epoch": 3.5384615384615383,
355
+ "grad_norm": 4.483827590942383,
356
  "learning_rate": 5.846153846153847e-06,
357
+ "loss": 0.098,
358
  "step": 460
359
  },
360
  {
361
  "epoch": 3.6153846153846154,
362
+ "grad_norm": 7.863719940185547,
363
  "learning_rate": 5.538461538461539e-06,
364
+ "loss": 0.0778,
365
  "step": 470
366
  },
367
  {
368
  "epoch": 3.6923076923076925,
369
+ "grad_norm": 0.21892791986465454,
370
  "learning_rate": 5.230769230769232e-06,
371
+ "loss": 0.0957,
372
  "step": 480
373
  },
374
  {
375
  "epoch": 3.769230769230769,
376
+ "grad_norm": 0.2107536494731903,
377
  "learning_rate": 4.923076923076924e-06,
378
+ "loss": 0.0775,
379
  "step": 490
380
  },
381
  {
382
  "epoch": 3.8461538461538463,
383
+ "grad_norm": 0.9603075981140137,
384
  "learning_rate": 4.615384615384616e-06,
385
+ "loss": 0.1357,
386
  "step": 500
387
  },
388
  {
389
  "epoch": 3.9230769230769234,
390
+ "grad_norm": 0.21214883029460907,
391
  "learning_rate": 4.307692307692308e-06,
392
+ "loss": 0.1225,
393
  "step": 510
394
  },
395
  {
396
  "epoch": 4.0,
397
+ "grad_norm": 0.2996317744255066,
398
  "learning_rate": 4.000000000000001e-06,
399
+ "loss": 0.0833,
400
  "step": 520
401
  },
402
  {
403
  "epoch": 4.0,
404
  "eval_accuracy": 0.9924812030075187,
405
+ "eval_loss": 0.06558172404766083,
406
+ "eval_runtime": 1.0412,
407
+ "eval_samples_per_second": 127.735,
408
+ "eval_steps_per_second": 16.327,
409
  "step": 520
410
  },
411
  {
412
  "epoch": 4.076923076923077,
413
+ "grad_norm": 9.374862670898438,
414
  "learning_rate": 3.692307692307693e-06,
415
+ "loss": 0.1009,
416
  "step": 530
417
  },
418
  {
419
  "epoch": 4.153846153846154,
420
+ "grad_norm": 1.5623271465301514,
421
  "learning_rate": 3.384615384615385e-06,
422
+ "loss": 0.1658,
423
  "step": 540
424
  },
425
  {
426
  "epoch": 4.230769230769231,
427
+ "grad_norm": 0.3211674094200134,
428
  "learning_rate": 3.0769230769230774e-06,
429
+ "loss": 0.1534,
430
  "step": 550
431
  },
432
  {
433
  "epoch": 4.3076923076923075,
434
+ "grad_norm": 1.208674430847168,
435
  "learning_rate": 2.7692307692307697e-06,
436
+ "loss": 0.0504,
437
  "step": 560
438
  },
439
  {
440
  "epoch": 4.384615384615385,
441
+ "grad_norm": 0.3158506751060486,
442
  "learning_rate": 2.461538461538462e-06,
443
+ "loss": 0.1345,
444
  "step": 570
445
  },
446
  {
447
  "epoch": 4.461538461538462,
448
+ "grad_norm": 0.2690170705318451,
449
  "learning_rate": 2.153846153846154e-06,
450
+ "loss": 0.0816,
451
  "step": 580
452
  },
453
  {
454
  "epoch": 4.538461538461538,
455
+ "grad_norm": 9.395990371704102,
456
  "learning_rate": 1.8461538461538465e-06,
457
+ "loss": 0.0714,
458
  "step": 590
459
  },
460
  {
461
  "epoch": 4.615384615384615,
462
+ "grad_norm": 3.067613124847412,
463
  "learning_rate": 1.5384615384615387e-06,
464
+ "loss": 0.0892,
465
  "step": 600
466
  },
467
  {
468
  "epoch": 4.6923076923076925,
469
+ "grad_norm": 5.167181491851807,
470
  "learning_rate": 1.230769230769231e-06,
471
+ "loss": 0.087,
472
  "step": 610
473
  },
474
  {
475
  "epoch": 4.769230769230769,
476
+ "grad_norm": 0.2610948383808136,
477
  "learning_rate": 9.230769230769232e-07,
478
+ "loss": 0.0807,
479
  "step": 620
480
  },
481
  {
482
  "epoch": 4.846153846153846,
483
+ "grad_norm": 0.22187209129333496,
484
  "learning_rate": 6.153846153846155e-07,
485
+ "loss": 0.0668,
486
  "step": 630
487
  },
488
  {
489
  "epoch": 4.923076923076923,
490
+ "grad_norm": 0.23086942732334137,
491
  "learning_rate": 3.0769230769230774e-07,
492
+ "loss": 0.0784,
493
  "step": 640
494
  },
495
  {
496
  "epoch": 5.0,
497
+ "grad_norm": 0.6445406675338745,
498
  "learning_rate": 0.0,
499
+ "loss": 0.1107,
500
  "step": 650
501
  },
502
  {
503
  "epoch": 5.0,
504
  "eval_accuracy": 0.9774436090225563,
505
+ "eval_loss": 0.0816693976521492,
506
+ "eval_runtime": 1.9096,
507
+ "eval_samples_per_second": 69.648,
508
+ "eval_steps_per_second": 8.902,
509
  "step": 650
510
  },
511
  {
512
  "epoch": 5.0,
513
  "step": 650,
514
  "total_flos": 4.006371770595533e+17,
515
+ "train_loss": 0.21942725667586693,
516
+ "train_runtime": 100.7972,
517
+ "train_samples_per_second": 51.291,
518
+ "train_steps_per_second": 6.449
519
  }
520
  ],
521
  "logging_steps": 10,
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ec3cacd6d0ca0d3620eb7e4ee8e753968a6cc4a74d80f67a584244205c41f5fd
3
  size 5240
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:519c14c04b23c1ab6e31ee48861306975f6c15dd2fdb90ddcfbf4c73b20b066c
3
  size 5240