fuji12345 commited on
Commit
3766834
·
verified ·
1 Parent(s): d6ed699

End of training

Browse files
Files changed (5) hide show
  1. README.md +21 -1
  2. all_results.json +13 -0
  3. eval_results.json +8 -0
  4. train_results.json +8 -0
  5. trainer_state.json +337 -0
README.md CHANGED
@@ -3,12 +3,29 @@ library_name: transformers
3
  license: apache-2.0
4
  base_model: google/vit-base-patch16-224-in21k
5
  tags:
 
 
6
  - generated_from_trainer
7
  datasets:
8
  - imagefolder
 
 
9
  model-index:
10
  - name: vit-base-anime-e10_prompt_data
11
- results: []
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  ---
13
 
14
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
@@ -17,6 +34,9 @@ should probably proofread and complete it, then remove this comment. -->
17
  # vit-base-anime-e10_prompt_data
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 the imagefolder dataset.
 
 
 
20
 
21
  ## Model description
22
 
 
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-anime-e10_prompt_data
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: train
24
+ args: default
25
+ metrics:
26
+ - name: Accuracy
27
+ type: accuracy
28
+ value: 0.9266666666666666
29
  ---
30
 
31
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
34
  # vit-base-anime-e10_prompt_data
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.2713
39
+ - Accuracy: 0.9267
40
 
41
  ## Model description
42
 
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "eval_accuracy": 0.9266666666666666,
4
+ "eval_loss": 0.27128249406814575,
5
+ "eval_runtime": 63.9769,
6
+ "eval_samples_per_second": 9.378,
7
+ "eval_steps_per_second": 1.172,
8
+ "total_flos": 2.634727646896128e+18,
9
+ "train_loss": 0.21935006769965676,
10
+ "train_runtime": 2953.1098,
11
+ "train_samples_per_second": 11.513,
12
+ "train_steps_per_second": 1.439
13
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "eval_accuracy": 0.9266666666666666,
4
+ "eval_loss": 0.27128249406814575,
5
+ "eval_runtime": 63.9769,
6
+ "eval_samples_per_second": 9.378,
7
+ "eval_steps_per_second": 1.172
8
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "total_flos": 2.634727646896128e+18,
4
+ "train_loss": 0.21935006769965676,
5
+ "train_runtime": 2953.1098,
6
+ "train_samples_per_second": 11.513,
7
+ "train_steps_per_second": 1.439
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,337 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 10.0,
6
+ "eval_steps": 500,
7
+ "global_step": 4250,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.23529411764705882,
14
+ "grad_norm": 3.403212308883667,
15
+ "learning_rate": 4.883529411764706e-05,
16
+ "loss": 0.5999,
17
+ "step": 100
18
+ },
19
+ {
20
+ "epoch": 0.47058823529411764,
21
+ "grad_norm": 3.9369142055511475,
22
+ "learning_rate": 4.765882352941177e-05,
23
+ "loss": 0.4832,
24
+ "step": 200
25
+ },
26
+ {
27
+ "epoch": 0.7058823529411765,
28
+ "grad_norm": 5.758166790008545,
29
+ "learning_rate": 4.6482352941176474e-05,
30
+ "loss": 0.429,
31
+ "step": 300
32
+ },
33
+ {
34
+ "epoch": 0.9411764705882353,
35
+ "grad_norm": 8.335492134094238,
36
+ "learning_rate": 4.530588235294118e-05,
37
+ "loss": 0.3882,
38
+ "step": 400
39
+ },
40
+ {
41
+ "epoch": 1.1764705882352942,
42
+ "grad_norm": 3.4791135787963867,
43
+ "learning_rate": 4.4129411764705886e-05,
44
+ "loss": 0.3203,
45
+ "step": 500
46
+ },
47
+ {
48
+ "epoch": 1.4117647058823528,
49
+ "grad_norm": 5.319788455963135,
50
+ "learning_rate": 4.295294117647059e-05,
51
+ "loss": 0.3308,
52
+ "step": 600
53
+ },
54
+ {
55
+ "epoch": 1.6470588235294117,
56
+ "grad_norm": 9.800257682800293,
57
+ "learning_rate": 4.177647058823529e-05,
58
+ "loss": 0.2995,
59
+ "step": 700
60
+ },
61
+ {
62
+ "epoch": 1.8823529411764706,
63
+ "grad_norm": 14.425982475280762,
64
+ "learning_rate": 4.0600000000000004e-05,
65
+ "loss": 0.313,
66
+ "step": 800
67
+ },
68
+ {
69
+ "epoch": 2.1176470588235294,
70
+ "grad_norm": 0.170698344707489,
71
+ "learning_rate": 3.942352941176471e-05,
72
+ "loss": 0.3574,
73
+ "step": 900
74
+ },
75
+ {
76
+ "epoch": 2.3529411764705883,
77
+ "grad_norm": 1.452454924583435,
78
+ "learning_rate": 3.8247058823529416e-05,
79
+ "loss": 0.2773,
80
+ "step": 1000
81
+ },
82
+ {
83
+ "epoch": 2.588235294117647,
84
+ "grad_norm": 0.7341296076774597,
85
+ "learning_rate": 3.7070588235294115e-05,
86
+ "loss": 0.3076,
87
+ "step": 1100
88
+ },
89
+ {
90
+ "epoch": 2.8235294117647056,
91
+ "grad_norm": 5.775131702423096,
92
+ "learning_rate": 3.589411764705882e-05,
93
+ "loss": 0.2605,
94
+ "step": 1200
95
+ },
96
+ {
97
+ "epoch": 3.0588235294117645,
98
+ "grad_norm": 6.790212154388428,
99
+ "learning_rate": 3.4717647058823534e-05,
100
+ "loss": 0.2492,
101
+ "step": 1300
102
+ },
103
+ {
104
+ "epoch": 3.2941176470588234,
105
+ "grad_norm": 50.06572723388672,
106
+ "learning_rate": 3.354117647058824e-05,
107
+ "loss": 0.2808,
108
+ "step": 1400
109
+ },
110
+ {
111
+ "epoch": 3.5294117647058822,
112
+ "grad_norm": 13.668601989746094,
113
+ "learning_rate": 3.236470588235294e-05,
114
+ "loss": 0.2679,
115
+ "step": 1500
116
+ },
117
+ {
118
+ "epoch": 3.764705882352941,
119
+ "grad_norm": 30.59315299987793,
120
+ "learning_rate": 3.1188235294117645e-05,
121
+ "loss": 0.1894,
122
+ "step": 1600
123
+ },
124
+ {
125
+ "epoch": 4.0,
126
+ "grad_norm": 0.2560558617115021,
127
+ "learning_rate": 3.0011764705882355e-05,
128
+ "loss": 0.2447,
129
+ "step": 1700
130
+ },
131
+ {
132
+ "epoch": 4.235294117647059,
133
+ "grad_norm": 6.998530387878418,
134
+ "learning_rate": 2.883529411764706e-05,
135
+ "loss": 0.1961,
136
+ "step": 1800
137
+ },
138
+ {
139
+ "epoch": 4.470588235294118,
140
+ "grad_norm": 21.405479431152344,
141
+ "learning_rate": 2.7658823529411763e-05,
142
+ "loss": 0.1845,
143
+ "step": 1900
144
+ },
145
+ {
146
+ "epoch": 4.705882352941177,
147
+ "grad_norm": 1.0605692863464355,
148
+ "learning_rate": 2.648235294117647e-05,
149
+ "loss": 0.2051,
150
+ "step": 2000
151
+ },
152
+ {
153
+ "epoch": 4.9411764705882355,
154
+ "grad_norm": 0.4075890779495239,
155
+ "learning_rate": 2.530588235294118e-05,
156
+ "loss": 0.2337,
157
+ "step": 2100
158
+ },
159
+ {
160
+ "epoch": 5.176470588235294,
161
+ "grad_norm": 0.1492820531129837,
162
+ "learning_rate": 2.4129411764705885e-05,
163
+ "loss": 0.1478,
164
+ "step": 2200
165
+ },
166
+ {
167
+ "epoch": 5.411764705882353,
168
+ "grad_norm": 17.102733612060547,
169
+ "learning_rate": 2.2952941176470587e-05,
170
+ "loss": 0.1272,
171
+ "step": 2300
172
+ },
173
+ {
174
+ "epoch": 5.647058823529412,
175
+ "grad_norm": 0.04777925834059715,
176
+ "learning_rate": 2.1776470588235297e-05,
177
+ "loss": 0.201,
178
+ "step": 2400
179
+ },
180
+ {
181
+ "epoch": 5.882352941176471,
182
+ "grad_norm": 0.19522254168987274,
183
+ "learning_rate": 2.06e-05,
184
+ "loss": 0.2402,
185
+ "step": 2500
186
+ },
187
+ {
188
+ "epoch": 6.117647058823529,
189
+ "grad_norm": 0.07973190397024155,
190
+ "learning_rate": 1.942352941176471e-05,
191
+ "loss": 0.1412,
192
+ "step": 2600
193
+ },
194
+ {
195
+ "epoch": 6.352941176470588,
196
+ "grad_norm": 1.31982421875,
197
+ "learning_rate": 1.824705882352941e-05,
198
+ "loss": 0.1503,
199
+ "step": 2700
200
+ },
201
+ {
202
+ "epoch": 6.588235294117647,
203
+ "grad_norm": 0.062359828501939774,
204
+ "learning_rate": 1.7070588235294117e-05,
205
+ "loss": 0.1466,
206
+ "step": 2800
207
+ },
208
+ {
209
+ "epoch": 6.823529411764706,
210
+ "grad_norm": 0.11714987456798553,
211
+ "learning_rate": 1.5894117647058823e-05,
212
+ "loss": 0.1276,
213
+ "step": 2900
214
+ },
215
+ {
216
+ "epoch": 7.0588235294117645,
217
+ "grad_norm": 29.877296447753906,
218
+ "learning_rate": 1.4717647058823531e-05,
219
+ "loss": 0.1515,
220
+ "step": 3000
221
+ },
222
+ {
223
+ "epoch": 7.294117647058823,
224
+ "grad_norm": 0.2120763063430786,
225
+ "learning_rate": 1.3541176470588235e-05,
226
+ "loss": 0.1284,
227
+ "step": 3100
228
+ },
229
+ {
230
+ "epoch": 7.529411764705882,
231
+ "grad_norm": 12.091958045959473,
232
+ "learning_rate": 1.2364705882352943e-05,
233
+ "loss": 0.1346,
234
+ "step": 3200
235
+ },
236
+ {
237
+ "epoch": 7.764705882352941,
238
+ "grad_norm": 0.07248464971780777,
239
+ "learning_rate": 1.1188235294117647e-05,
240
+ "loss": 0.1526,
241
+ "step": 3300
242
+ },
243
+ {
244
+ "epoch": 8.0,
245
+ "grad_norm": 0.2186937779188156,
246
+ "learning_rate": 1.0011764705882353e-05,
247
+ "loss": 0.1607,
248
+ "step": 3400
249
+ },
250
+ {
251
+ "epoch": 8.235294117647058,
252
+ "grad_norm": 2.143234968185425,
253
+ "learning_rate": 8.835294117647059e-06,
254
+ "loss": 0.127,
255
+ "step": 3500
256
+ },
257
+ {
258
+ "epoch": 8.470588235294118,
259
+ "grad_norm": 0.1842782199382782,
260
+ "learning_rate": 7.658823529411765e-06,
261
+ "loss": 0.09,
262
+ "step": 3600
263
+ },
264
+ {
265
+ "epoch": 8.705882352941176,
266
+ "grad_norm": 0.10567642003297806,
267
+ "learning_rate": 6.482352941176471e-06,
268
+ "loss": 0.1225,
269
+ "step": 3700
270
+ },
271
+ {
272
+ "epoch": 8.941176470588236,
273
+ "grad_norm": 8.74448013305664,
274
+ "learning_rate": 5.305882352941176e-06,
275
+ "loss": 0.0993,
276
+ "step": 3800
277
+ },
278
+ {
279
+ "epoch": 9.176470588235293,
280
+ "grad_norm": 21.5183048248291,
281
+ "learning_rate": 4.129411764705882e-06,
282
+ "loss": 0.1746,
283
+ "step": 3900
284
+ },
285
+ {
286
+ "epoch": 9.411764705882353,
287
+ "grad_norm": 0.03366835415363312,
288
+ "learning_rate": 2.9529411764705886e-06,
289
+ "loss": 0.095,
290
+ "step": 4000
291
+ },
292
+ {
293
+ "epoch": 9.647058823529411,
294
+ "grad_norm": 0.2817438840866089,
295
+ "learning_rate": 1.7764705882352944e-06,
296
+ "loss": 0.0865,
297
+ "step": 4100
298
+ },
299
+ {
300
+ "epoch": 9.882352941176471,
301
+ "grad_norm": 22.497867584228516,
302
+ "learning_rate": 6.000000000000001e-07,
303
+ "loss": 0.0687,
304
+ "step": 4200
305
+ },
306
+ {
307
+ "epoch": 10.0,
308
+ "step": 4250,
309
+ "total_flos": 2.634727646896128e+18,
310
+ "train_loss": 0.21935006769965676,
311
+ "train_runtime": 2953.1098,
312
+ "train_samples_per_second": 11.513,
313
+ "train_steps_per_second": 1.439
314
+ }
315
+ ],
316
+ "logging_steps": 100,
317
+ "max_steps": 4250,
318
+ "num_input_tokens_seen": 0,
319
+ "num_train_epochs": 10,
320
+ "save_steps": 500,
321
+ "stateful_callbacks": {
322
+ "TrainerControl": {
323
+ "args": {
324
+ "should_epoch_stop": false,
325
+ "should_evaluate": false,
326
+ "should_log": false,
327
+ "should_save": true,
328
+ "should_training_stop": true
329
+ },
330
+ "attributes": {}
331
+ }
332
+ },
333
+ "total_flos": 2.634727646896128e+18,
334
+ "train_batch_size": 8,
335
+ "trial_name": null,
336
+ "trial_params": null
337
+ }