bikekowal commited on
Commit
76022df
·
verified ·
1 Parent(s): dd8eb89

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 +294 -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: models_diff
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
  # models_diff
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: models_diff
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: 1.0
29
  ---
30
 
31
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
34
  # models_diff
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.0001
39
+ - Accuracy: 1.0
40
 
41
  ## Model description
42
 
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 500.0,
3
+ "eval_accuracy": 1.0,
4
+ "eval_loss": 0.00011338650074321777,
5
+ "eval_runtime": 1.0132,
6
+ "eval_samples_per_second": 99.684,
7
+ "eval_steps_per_second": 6.909,
8
+ "total_flos": 2.208521704015872e+19,
9
+ "train_loss": 0.04609681815571255,
10
+ "train_runtime": 3784.0996,
11
+ "train_samples_per_second": 75.315,
12
+ "train_steps_per_second": 4.757
13
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 500.0,
3
+ "eval_accuracy": 1.0,
4
+ "eval_loss": 0.00011338650074321777,
5
+ "eval_runtime": 1.0132,
6
+ "eval_samples_per_second": 99.684,
7
+ "eval_steps_per_second": 6.909
8
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 500.0,
3
+ "total_flos": 2.208521704015872e+19,
4
+ "train_loss": 0.04609681815571255,
5
+ "train_runtime": 3784.0996,
6
+ "train_samples_per_second": 75.315,
7
+ "train_steps_per_second": 4.757
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,294 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 500.0,
5
+ "eval_steps": 500,
6
+ "global_step": 18000,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 13.88888888888889,
13
+ "grad_norm": 2.0625548362731934,
14
+ "learning_rate": 4.8611111111111115e-05,
15
+ "loss": 0.2419,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 27.77777777777778,
20
+ "grad_norm": 1.07987380027771,
21
+ "learning_rate": 4.722222222222222e-05,
22
+ "loss": 0.122,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 41.666666666666664,
27
+ "grad_norm": 0.8302552700042725,
28
+ "learning_rate": 4.5833333333333334e-05,
29
+ "loss": 0.0991,
30
+ "step": 1500
31
+ },
32
+ {
33
+ "epoch": 55.55555555555556,
34
+ "grad_norm": 3.696808099746704,
35
+ "learning_rate": 4.4444444444444447e-05,
36
+ "loss": 0.0848,
37
+ "step": 2000
38
+ },
39
+ {
40
+ "epoch": 69.44444444444444,
41
+ "grad_norm": 0.5040786266326904,
42
+ "learning_rate": 4.305555555555556e-05,
43
+ "loss": 0.0727,
44
+ "step": 2500
45
+ },
46
+ {
47
+ "epoch": 83.33333333333333,
48
+ "grad_norm": 3.4218876361846924,
49
+ "learning_rate": 4.166666666666667e-05,
50
+ "loss": 0.0722,
51
+ "step": 3000
52
+ },
53
+ {
54
+ "epoch": 97.22222222222223,
55
+ "grad_norm": 0.38914600014686584,
56
+ "learning_rate": 4.027777777777778e-05,
57
+ "loss": 0.0657,
58
+ "step": 3500
59
+ },
60
+ {
61
+ "epoch": 111.11111111111111,
62
+ "grad_norm": 0.18231849372386932,
63
+ "learning_rate": 3.888888888888889e-05,
64
+ "loss": 0.0625,
65
+ "step": 4000
66
+ },
67
+ {
68
+ "epoch": 125.0,
69
+ "grad_norm": 0.00844669621437788,
70
+ "learning_rate": 3.7500000000000003e-05,
71
+ "loss": 0.06,
72
+ "step": 4500
73
+ },
74
+ {
75
+ "epoch": 138.88888888888889,
76
+ "grad_norm": 0.024724161252379417,
77
+ "learning_rate": 3.611111111111111e-05,
78
+ "loss": 0.0554,
79
+ "step": 5000
80
+ },
81
+ {
82
+ "epoch": 152.77777777777777,
83
+ "grad_norm": 0.017953308299183846,
84
+ "learning_rate": 3.472222222222222e-05,
85
+ "loss": 0.0506,
86
+ "step": 5500
87
+ },
88
+ {
89
+ "epoch": 166.66666666666666,
90
+ "grad_norm": 0.007029552944004536,
91
+ "learning_rate": 3.3333333333333335e-05,
92
+ "loss": 0.0416,
93
+ "step": 6000
94
+ },
95
+ {
96
+ "epoch": 180.55555555555554,
97
+ "grad_norm": 0.09840937703847885,
98
+ "learning_rate": 3.194444444444444e-05,
99
+ "loss": 0.0439,
100
+ "step": 6500
101
+ },
102
+ {
103
+ "epoch": 194.44444444444446,
104
+ "grad_norm": 0.010464319959282875,
105
+ "learning_rate": 3.055555555555556e-05,
106
+ "loss": 0.0378,
107
+ "step": 7000
108
+ },
109
+ {
110
+ "epoch": 208.33333333333334,
111
+ "grad_norm": 0.6669019460678101,
112
+ "learning_rate": 2.916666666666667e-05,
113
+ "loss": 0.0372,
114
+ "step": 7500
115
+ },
116
+ {
117
+ "epoch": 222.22222222222223,
118
+ "grad_norm": 5.722232818603516,
119
+ "learning_rate": 2.777777777777778e-05,
120
+ "loss": 0.0431,
121
+ "step": 8000
122
+ },
123
+ {
124
+ "epoch": 236.11111111111111,
125
+ "grad_norm": 0.12137515097856522,
126
+ "learning_rate": 2.6388888888888892e-05,
127
+ "loss": 0.0362,
128
+ "step": 8500
129
+ },
130
+ {
131
+ "epoch": 250.0,
132
+ "grad_norm": 0.2072753608226776,
133
+ "learning_rate": 2.5e-05,
134
+ "loss": 0.0318,
135
+ "step": 9000
136
+ },
137
+ {
138
+ "epoch": 263.8888888888889,
139
+ "grad_norm": 0.7483288645744324,
140
+ "learning_rate": 2.361111111111111e-05,
141
+ "loss": 0.0314,
142
+ "step": 9500
143
+ },
144
+ {
145
+ "epoch": 277.77777777777777,
146
+ "grad_norm": 0.004340521525591612,
147
+ "learning_rate": 2.2222222222222223e-05,
148
+ "loss": 0.035,
149
+ "step": 10000
150
+ },
151
+ {
152
+ "epoch": 291.6666666666667,
153
+ "grad_norm": 0.33232325315475464,
154
+ "learning_rate": 2.0833333333333336e-05,
155
+ "loss": 0.0295,
156
+ "step": 10500
157
+ },
158
+ {
159
+ "epoch": 305.55555555555554,
160
+ "grad_norm": 0.001907658763229847,
161
+ "learning_rate": 1.9444444444444445e-05,
162
+ "loss": 0.0265,
163
+ "step": 11000
164
+ },
165
+ {
166
+ "epoch": 319.44444444444446,
167
+ "grad_norm": 0.03909081220626831,
168
+ "learning_rate": 1.8055555555555555e-05,
169
+ "loss": 0.0243,
170
+ "step": 11500
171
+ },
172
+ {
173
+ "epoch": 333.3333333333333,
174
+ "grad_norm": 0.12255003303289413,
175
+ "learning_rate": 1.6666666666666667e-05,
176
+ "loss": 0.0243,
177
+ "step": 12000
178
+ },
179
+ {
180
+ "epoch": 347.22222222222223,
181
+ "grad_norm": 0.0019066839013248682,
182
+ "learning_rate": 1.527777777777778e-05,
183
+ "loss": 0.0218,
184
+ "step": 12500
185
+ },
186
+ {
187
+ "epoch": 361.1111111111111,
188
+ "grad_norm": 0.01006140187382698,
189
+ "learning_rate": 1.388888888888889e-05,
190
+ "loss": 0.0252,
191
+ "step": 13000
192
+ },
193
+ {
194
+ "epoch": 375.0,
195
+ "grad_norm": 0.0507582426071167,
196
+ "learning_rate": 1.25e-05,
197
+ "loss": 0.0235,
198
+ "step": 13500
199
+ },
200
+ {
201
+ "epoch": 388.8888888888889,
202
+ "grad_norm": 0.001732513541355729,
203
+ "learning_rate": 1.1111111111111112e-05,
204
+ "loss": 0.0227,
205
+ "step": 14000
206
+ },
207
+ {
208
+ "epoch": 402.77777777777777,
209
+ "grad_norm": 0.039914872497320175,
210
+ "learning_rate": 9.722222222222223e-06,
211
+ "loss": 0.019,
212
+ "step": 14500
213
+ },
214
+ {
215
+ "epoch": 416.6666666666667,
216
+ "grad_norm": 9.351898193359375,
217
+ "learning_rate": 8.333333333333334e-06,
218
+ "loss": 0.0216,
219
+ "step": 15000
220
+ },
221
+ {
222
+ "epoch": 430.55555555555554,
223
+ "grad_norm": 0.0020057051442563534,
224
+ "learning_rate": 6.944444444444445e-06,
225
+ "loss": 0.0156,
226
+ "step": 15500
227
+ },
228
+ {
229
+ "epoch": 444.44444444444446,
230
+ "grad_norm": 0.04586656391620636,
231
+ "learning_rate": 5.555555555555556e-06,
232
+ "loss": 0.0195,
233
+ "step": 16000
234
+ },
235
+ {
236
+ "epoch": 458.3333333333333,
237
+ "grad_norm": 0.248296856880188,
238
+ "learning_rate": 4.166666666666667e-06,
239
+ "loss": 0.017,
240
+ "step": 16500
241
+ },
242
+ {
243
+ "epoch": 472.22222222222223,
244
+ "grad_norm": 0.0010602438123896718,
245
+ "learning_rate": 2.777777777777778e-06,
246
+ "loss": 0.0144,
247
+ "step": 17000
248
+ },
249
+ {
250
+ "epoch": 486.1111111111111,
251
+ "grad_norm": 0.0068945749662816525,
252
+ "learning_rate": 1.388888888888889e-06,
253
+ "loss": 0.0142,
254
+ "step": 17500
255
+ },
256
+ {
257
+ "epoch": 500.0,
258
+ "grad_norm": 0.001057297340594232,
259
+ "learning_rate": 0.0,
260
+ "loss": 0.0155,
261
+ "step": 18000
262
+ },
263
+ {
264
+ "epoch": 500.0,
265
+ "step": 18000,
266
+ "total_flos": 2.208521704015872e+19,
267
+ "train_loss": 0.04609681815571255,
268
+ "train_runtime": 3784.0996,
269
+ "train_samples_per_second": 75.315,
270
+ "train_steps_per_second": 4.757
271
+ }
272
+ ],
273
+ "logging_steps": 500,
274
+ "max_steps": 18000,
275
+ "num_input_tokens_seen": 0,
276
+ "num_train_epochs": 500,
277
+ "save_steps": 500,
278
+ "stateful_callbacks": {
279
+ "TrainerControl": {
280
+ "args": {
281
+ "should_epoch_stop": false,
282
+ "should_evaluate": false,
283
+ "should_log": false,
284
+ "should_save": true,
285
+ "should_training_stop": true
286
+ },
287
+ "attributes": {}
288
+ }
289
+ },
290
+ "total_flos": 2.208521704015872e+19,
291
+ "train_batch_size": 16,
292
+ "trial_name": null,
293
+ "trial_params": null
294
+ }