Salmamoori commited on
Commit
484aa43
·
verified ·
1 Parent(s): e313fe7

🍻 cheers

Browse files
Files changed (5) hide show
  1. README.md +2 -1
  2. all_results.json +13 -0
  3. eval_results.json +8 -0
  4. train_results.json +8 -0
  5. trainer_state.json +293 -0
README.md CHANGED
@@ -2,6 +2,7 @@
2
  license: apache-2.0
3
  base_model: google/vit-base-patch16-224-in21k
4
  tags:
 
5
  - generated_from_trainer
6
  metrics:
7
  - accuracy
@@ -16,7 +17,7 @@ should probably proofread and complete it, then remove this comment. -->
16
  [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="200" height="32"/>](https://wandb.ai/salmamoori/vit-beans-image-classification-2/runs/5fik93zr)
17
  # vit-fine-tuned-image-classification-beans_2
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
  - Loss: 0.0170
22
  - Accuracy: 1.0
 
2
  license: apache-2.0
3
  base_model: google/vit-base-patch16-224-in21k
4
  tags:
5
+ - image-classification
6
  - generated_from_trainer
7
  metrics:
8
  - accuracy
 
17
  [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="200" height="32"/>](https://wandb.ai/salmamoori/vit-beans-image-classification-2/runs/5fik93zr)
18
  # vit-fine-tuned-image-classification-beans_2
19
 
20
+ 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 beans dataset.
21
  It achieves the following results on the evaluation set:
22
  - Loss: 0.0170
23
  - Accuracy: 1.0
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "eval_accuracy": 1.0,
4
+ "eval_loss": 0.017028138041496277,
5
+ "eval_runtime": 17.5441,
6
+ "eval_samples_per_second": 7.581,
7
+ "eval_steps_per_second": 0.969,
8
+ "total_flos": 4.006371770595533e+17,
9
+ "train_loss": 0.10399184557107778,
10
+ "train_runtime": 4370.2022,
11
+ "train_samples_per_second": 1.183,
12
+ "train_steps_per_second": 0.074
13
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "eval_accuracy": 1.0,
4
+ "eval_loss": 0.017028138041496277,
5
+ "eval_runtime": 17.5441,
6
+ "eval_samples_per_second": 7.581,
7
+ "eval_steps_per_second": 0.969
8
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "total_flos": 4.006371770595533e+17,
4
+ "train_loss": 0.10399184557107778,
5
+ "train_runtime": 4370.2022,
6
+ "train_samples_per_second": 1.183,
7
+ "train_steps_per_second": 0.074
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,293 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.017028138041496277,
3
+ "best_model_checkpoint": "vit-fine-tuned-image-classification-beans_2\\checkpoint-300",
4
+ "epoch": 5.0,
5
+ "eval_steps": 100,
6
+ "global_step": 325,
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.15384615384615385,
13
+ "grad_norm": 1.838330626487732,
14
+ "learning_rate": 0.00019384615384615385,
15
+ "loss": 0.9029,
16
+ "step": 10
17
+ },
18
+ {
19
+ "epoch": 0.3076923076923077,
20
+ "grad_norm": 0.8585432767868042,
21
+ "learning_rate": 0.0001876923076923077,
22
+ "loss": 0.3239,
23
+ "step": 20
24
+ },
25
+ {
26
+ "epoch": 0.46153846153846156,
27
+ "grad_norm": 2.5284998416900635,
28
+ "learning_rate": 0.00018153846153846155,
29
+ "loss": 0.2423,
30
+ "step": 30
31
+ },
32
+ {
33
+ "epoch": 0.6153846153846154,
34
+ "grad_norm": 5.096222877502441,
35
+ "learning_rate": 0.0001753846153846154,
36
+ "loss": 0.3654,
37
+ "step": 40
38
+ },
39
+ {
40
+ "epoch": 0.7692307692307693,
41
+ "grad_norm": 2.209157943725586,
42
+ "learning_rate": 0.00016923076923076923,
43
+ "loss": 0.1337,
44
+ "step": 50
45
+ },
46
+ {
47
+ "epoch": 0.9230769230769231,
48
+ "grad_norm": 1.0063344240188599,
49
+ "learning_rate": 0.0001630769230769231,
50
+ "loss": 0.2958,
51
+ "step": 60
52
+ },
53
+ {
54
+ "epoch": 1.0769230769230769,
55
+ "grad_norm": 5.1612725257873535,
56
+ "learning_rate": 0.00015692307692307693,
57
+ "loss": 0.2864,
58
+ "step": 70
59
+ },
60
+ {
61
+ "epoch": 1.2307692307692308,
62
+ "grad_norm": 0.8443673253059387,
63
+ "learning_rate": 0.00015076923076923077,
64
+ "loss": 0.1165,
65
+ "step": 80
66
+ },
67
+ {
68
+ "epoch": 1.3846153846153846,
69
+ "grad_norm": 0.1971602886915207,
70
+ "learning_rate": 0.0001446153846153846,
71
+ "loss": 0.0356,
72
+ "step": 90
73
+ },
74
+ {
75
+ "epoch": 1.5384615384615383,
76
+ "grad_norm": 0.22484387457370758,
77
+ "learning_rate": 0.00013846153846153847,
78
+ "loss": 0.0648,
79
+ "step": 100
80
+ },
81
+ {
82
+ "epoch": 1.5384615384615383,
83
+ "eval_accuracy": 0.9924812030075187,
84
+ "eval_loss": 0.0420377217233181,
85
+ "eval_runtime": 30.8858,
86
+ "eval_samples_per_second": 4.306,
87
+ "eval_steps_per_second": 0.55,
88
+ "step": 100
89
+ },
90
+ {
91
+ "epoch": 1.6923076923076923,
92
+ "grad_norm": 0.10582908987998962,
93
+ "learning_rate": 0.0001323076923076923,
94
+ "loss": 0.0537,
95
+ "step": 110
96
+ },
97
+ {
98
+ "epoch": 1.8461538461538463,
99
+ "grad_norm": 0.09471665322780609,
100
+ "learning_rate": 0.00012615384615384615,
101
+ "loss": 0.1001,
102
+ "step": 120
103
+ },
104
+ {
105
+ "epoch": 2.0,
106
+ "grad_norm": 0.08882123231887817,
107
+ "learning_rate": 0.00012,
108
+ "loss": 0.0386,
109
+ "step": 130
110
+ },
111
+ {
112
+ "epoch": 2.1538461538461537,
113
+ "grad_norm": 2.4845492839813232,
114
+ "learning_rate": 0.00011384615384615384,
115
+ "loss": 0.0227,
116
+ "step": 140
117
+ },
118
+ {
119
+ "epoch": 2.3076923076923075,
120
+ "grad_norm": 4.820040702819824,
121
+ "learning_rate": 0.0001076923076923077,
122
+ "loss": 0.0325,
123
+ "step": 150
124
+ },
125
+ {
126
+ "epoch": 2.4615384615384617,
127
+ "grad_norm": 0.06727772951126099,
128
+ "learning_rate": 0.00010153846153846153,
129
+ "loss": 0.0224,
130
+ "step": 160
131
+ },
132
+ {
133
+ "epoch": 2.6153846153846154,
134
+ "grad_norm": 6.172357082366943,
135
+ "learning_rate": 9.53846153846154e-05,
136
+ "loss": 0.0455,
137
+ "step": 170
138
+ },
139
+ {
140
+ "epoch": 2.769230769230769,
141
+ "grad_norm": 0.7179319262504578,
142
+ "learning_rate": 8.923076923076924e-05,
143
+ "loss": 0.0756,
144
+ "step": 180
145
+ },
146
+ {
147
+ "epoch": 2.9230769230769234,
148
+ "grad_norm": 0.07661673426628113,
149
+ "learning_rate": 8.307692307692309e-05,
150
+ "loss": 0.0196,
151
+ "step": 190
152
+ },
153
+ {
154
+ "epoch": 3.076923076923077,
155
+ "grad_norm": 0.05913277715444565,
156
+ "learning_rate": 7.692307692307693e-05,
157
+ "loss": 0.0422,
158
+ "step": 200
159
+ },
160
+ {
161
+ "epoch": 3.076923076923077,
162
+ "eval_accuracy": 0.9924812030075187,
163
+ "eval_loss": 0.04675745964050293,
164
+ "eval_runtime": 37.7884,
165
+ "eval_samples_per_second": 3.52,
166
+ "eval_steps_per_second": 0.45,
167
+ "step": 200
168
+ },
169
+ {
170
+ "epoch": 3.230769230769231,
171
+ "grad_norm": 0.0708017349243164,
172
+ "learning_rate": 7.076923076923078e-05,
173
+ "loss": 0.0107,
174
+ "step": 210
175
+ },
176
+ {
177
+ "epoch": 3.3846153846153846,
178
+ "grad_norm": 0.05266530439257622,
179
+ "learning_rate": 6.461538461538462e-05,
180
+ "loss": 0.0215,
181
+ "step": 220
182
+ },
183
+ {
184
+ "epoch": 3.5384615384615383,
185
+ "grad_norm": 0.05381350219249725,
186
+ "learning_rate": 5.846153846153847e-05,
187
+ "loss": 0.0329,
188
+ "step": 230
189
+ },
190
+ {
191
+ "epoch": 3.6923076923076925,
192
+ "grad_norm": 0.04883628711104393,
193
+ "learning_rate": 5.230769230769231e-05,
194
+ "loss": 0.0094,
195
+ "step": 240
196
+ },
197
+ {
198
+ "epoch": 3.8461538461538463,
199
+ "grad_norm": 0.04827561974525452,
200
+ "learning_rate": 4.615384615384616e-05,
201
+ "loss": 0.0089,
202
+ "step": 250
203
+ },
204
+ {
205
+ "epoch": 4.0,
206
+ "grad_norm": 0.046552080661058426,
207
+ "learning_rate": 4e-05,
208
+ "loss": 0.0094,
209
+ "step": 260
210
+ },
211
+ {
212
+ "epoch": 4.153846153846154,
213
+ "grad_norm": 0.04622137174010277,
214
+ "learning_rate": 3.384615384615385e-05,
215
+ "loss": 0.0229,
216
+ "step": 270
217
+ },
218
+ {
219
+ "epoch": 4.3076923076923075,
220
+ "grad_norm": 0.04905983805656433,
221
+ "learning_rate": 2.7692307692307694e-05,
222
+ "loss": 0.0083,
223
+ "step": 280
224
+ },
225
+ {
226
+ "epoch": 4.461538461538462,
227
+ "grad_norm": 0.04810818284749985,
228
+ "learning_rate": 2.1538461538461542e-05,
229
+ "loss": 0.008,
230
+ "step": 290
231
+ },
232
+ {
233
+ "epoch": 4.615384615384615,
234
+ "grad_norm": 0.04192296415567398,
235
+ "learning_rate": 1.5384615384615387e-05,
236
+ "loss": 0.008,
237
+ "step": 300
238
+ },
239
+ {
240
+ "epoch": 4.615384615384615,
241
+ "eval_accuracy": 1.0,
242
+ "eval_loss": 0.017028138041496277,
243
+ "eval_runtime": 28.3225,
244
+ "eval_samples_per_second": 4.696,
245
+ "eval_steps_per_second": 0.6,
246
+ "step": 300
247
+ },
248
+ {
249
+ "epoch": 4.769230769230769,
250
+ "grad_norm": 0.04521344602108002,
251
+ "learning_rate": 9.230769230769232e-06,
252
+ "loss": 0.0078,
253
+ "step": 310
254
+ },
255
+ {
256
+ "epoch": 4.923076923076923,
257
+ "grad_norm": 0.04102473333477974,
258
+ "learning_rate": 3.0769230769230774e-06,
259
+ "loss": 0.0078,
260
+ "step": 320
261
+ },
262
+ {
263
+ "epoch": 5.0,
264
+ "step": 325,
265
+ "total_flos": 4.006371770595533e+17,
266
+ "train_loss": 0.10399184557107778,
267
+ "train_runtime": 4370.2022,
268
+ "train_samples_per_second": 1.183,
269
+ "train_steps_per_second": 0.074
270
+ }
271
+ ],
272
+ "logging_steps": 10,
273
+ "max_steps": 325,
274
+ "num_input_tokens_seen": 0,
275
+ "num_train_epochs": 5,
276
+ "save_steps": 100,
277
+ "stateful_callbacks": {
278
+ "TrainerControl": {
279
+ "args": {
280
+ "should_epoch_stop": false,
281
+ "should_evaluate": false,
282
+ "should_log": false,
283
+ "should_save": true,
284
+ "should_training_stop": true
285
+ },
286
+ "attributes": {}
287
+ }
288
+ },
289
+ "total_flos": 4.006371770595533e+17,
290
+ "train_batch_size": 16,
291
+ "trial_name": null,
292
+ "trial_params": null
293
+ }