m0vie commited on
Commit
5ff6e3f
·
verified ·
1 Parent(s): 01af6c7
README.md CHANGED
@@ -19,8 +19,8 @@ should probably proofread and complete it, then remove this comment. -->
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.1201
23
- - Accuracy: 0.9688
24
 
25
  ## Model description
26
 
@@ -52,8 +52,8 @@ The following hyperparameters were used during training:
52
 
53
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
54
  |:-------------:|:------:|:----:|:---------------:|:--------:|
55
- | 0.0846 | 1.5385 | 100 | 0.0614 | 0.9774 |
56
- | 0.0121 | 3.0769 | 200 | 0.0188 | 1.0 |
57
 
58
 
59
  ### Framework versions
 
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.1760
23
+ - Accuracy: 0.9531
24
 
25
  ## Model description
26
 
 
52
 
53
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
54
  |:-------------:|:------:|:----:|:---------------:|:--------:|
55
+ | 0.0725 | 1.5385 | 100 | 0.1634 | 0.9474 |
56
+ | 0.0145 | 3.0769 | 200 | 0.0318 | 0.9925 |
57
 
58
 
59
  ### Framework versions
all_results.json CHANGED
@@ -1,13 +1,13 @@
1
  {
2
  "epoch": 4.0,
3
- "eval_accuracy": 0.96875,
4
- "eval_loss": 0.12014883756637573,
5
- "eval_runtime": 1.4118,
6
- "eval_samples_per_second": 90.668,
7
- "eval_steps_per_second": 11.333,
8
  "total_flos": 3.205097416476426e+17,
9
- "train_loss": 0.1095780831690018,
10
- "train_runtime": 90.7321,
11
- "train_samples_per_second": 45.585,
12
- "train_steps_per_second": 2.866
13
  }
 
1
  {
2
  "epoch": 4.0,
3
+ "eval_accuracy": 0.953125,
4
+ "eval_loss": 0.1760333776473999,
5
+ "eval_runtime": 1.8596,
6
+ "eval_samples_per_second": 68.831,
7
+ "eval_steps_per_second": 8.604,
8
  "total_flos": 3.205097416476426e+17,
9
+ "train_loss": 0.12231931924246825,
10
+ "train_runtime": 89.2176,
11
+ "train_samples_per_second": 46.359,
12
+ "train_steps_per_second": 2.914
13
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f243f5eda82922461d9227c7e69fbef747dbd510a9019cb215e3dc6f4d2ca0d2
3
  size 343227052
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49d38e18efa6bde3220d6e044b699c03976ae00fb42b00a89f4ace18bb9c207d
3
  size 343227052
runs/Jul08_06-47-03_33d8eb963be1/events.out.tfevents.1720422777.33d8eb963be1.1201.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba6822308c6b30b8d4c704d340dd13d2068efd3a878e5974dbe35f59ff7c894f
3
+ size 11323
runs/Jul08_06-47-03_33d8eb963be1/events.out.tfevents.1720423002.33d8eb963be1.1201.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6824763ed256fa5d26941b629d6118b337b1235a937bc7fa5bb03792191abff
3
+ size 411
test_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "epoch": 4.0,
3
- "eval_accuracy": 0.96875,
4
- "eval_loss": 0.12014883756637573,
5
- "eval_runtime": 1.4118,
6
- "eval_samples_per_second": 90.668,
7
- "eval_steps_per_second": 11.333
8
  }
 
1
  {
2
  "epoch": 4.0,
3
+ "eval_accuracy": 0.953125,
4
+ "eval_loss": 0.1760333776473999,
5
+ "eval_runtime": 1.8596,
6
+ "eval_samples_per_second": 68.831,
7
+ "eval_steps_per_second": 8.604
8
  }
train_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "epoch": 4.0,
3
  "total_flos": 3.205097416476426e+17,
4
- "train_loss": 0.1095780831690018,
5
- "train_runtime": 90.7321,
6
- "train_samples_per_second": 45.585,
7
- "train_steps_per_second": 2.866
8
  }
 
1
  {
2
  "epoch": 4.0,
3
  "total_flos": 3.205097416476426e+17,
4
+ "train_loss": 0.12231931924246825,
5
+ "train_runtime": 89.2176,
6
+ "train_samples_per_second": 46.359,
7
+ "train_steps_per_second": 2.914
8
  }
trainer_state.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "best_metric": 0.018796762451529503,
3
  "best_model_checkpoint": "./vit-base-beans-demo-v5/checkpoint-200",
4
  "epoch": 4.0,
5
  "eval_steps": 100,
@@ -10,212 +10,212 @@
10
  "log_history": [
11
  {
12
  "epoch": 0.15384615384615385,
13
- "grad_norm": 1.4108372926712036,
14
  "learning_rate": 0.00019230769230769233,
15
- "loss": 0.7924,
16
  "step": 10
17
  },
18
  {
19
  "epoch": 0.3076923076923077,
20
- "grad_norm": 2.044903039932251,
21
  "learning_rate": 0.00018461538461538463,
22
- "loss": 0.301,
23
  "step": 20
24
  },
25
  {
26
  "epoch": 0.46153846153846156,
27
- "grad_norm": 0.7039980888366699,
28
  "learning_rate": 0.00017692307692307693,
29
- "loss": 0.1992,
30
  "step": 30
31
  },
32
  {
33
  "epoch": 0.6153846153846154,
34
- "grad_norm": 1.1257214546203613,
35
  "learning_rate": 0.00016923076923076923,
36
- "loss": 0.2634,
37
  "step": 40
38
  },
39
  {
40
  "epoch": 0.7692307692307693,
41
- "grad_norm": 0.34912949800491333,
42
  "learning_rate": 0.00016153846153846155,
43
- "loss": 0.1518,
44
  "step": 50
45
  },
46
  {
47
  "epoch": 0.9230769230769231,
48
- "grad_norm": 4.554572582244873,
49
  "learning_rate": 0.00015384615384615385,
50
- "loss": 0.23,
51
  "step": 60
52
  },
53
  {
54
  "epoch": 1.0769230769230769,
55
- "grad_norm": 0.4593968093395233,
56
  "learning_rate": 0.00014615384615384615,
57
- "loss": 0.0491,
58
  "step": 70
59
  },
60
  {
61
  "epoch": 1.2307692307692308,
62
- "grad_norm": 0.13646918535232544,
63
  "learning_rate": 0.00013846153846153847,
64
- "loss": 0.1,
65
  "step": 80
66
  },
67
  {
68
  "epoch": 1.3846153846153846,
69
- "grad_norm": 5.695180416107178,
70
  "learning_rate": 0.00013076923076923077,
71
- "loss": 0.0552,
72
  "step": 90
73
  },
74
  {
75
  "epoch": 1.5384615384615383,
76
- "grad_norm": 1.3406460285186768,
77
  "learning_rate": 0.0001230769230769231,
78
- "loss": 0.0846,
79
  "step": 100
80
  },
81
  {
82
  "epoch": 1.5384615384615383,
83
- "eval_accuracy": 0.9774436090225563,
84
- "eval_loss": 0.061424773186445236,
85
- "eval_runtime": 1.708,
86
- "eval_samples_per_second": 77.869,
87
- "eval_steps_per_second": 9.953,
88
  "step": 100
89
  },
90
  {
91
  "epoch": 1.6923076923076923,
92
- "grad_norm": 1.4606086015701294,
93
  "learning_rate": 0.00011538461538461538,
94
- "loss": 0.1462,
95
  "step": 110
96
  },
97
  {
98
  "epoch": 1.8461538461538463,
99
- "grad_norm": 0.5630506873130798,
100
  "learning_rate": 0.0001076923076923077,
101
- "loss": 0.0893,
102
  "step": 120
103
  },
104
  {
105
  "epoch": 2.0,
106
- "grad_norm": 0.09152624756097794,
107
  "learning_rate": 0.0001,
108
- "loss": 0.0368,
109
  "step": 130
110
  },
111
  {
112
  "epoch": 2.1538461538461537,
113
- "grad_norm": 0.9141150116920471,
114
  "learning_rate": 9.230769230769232e-05,
115
- "loss": 0.0192,
116
  "step": 140
117
  },
118
  {
119
  "epoch": 2.3076923076923075,
120
- "grad_norm": 1.7744202613830566,
121
  "learning_rate": 8.461538461538461e-05,
122
- "loss": 0.0423,
123
  "step": 150
124
  },
125
  {
126
  "epoch": 2.4615384615384617,
127
- "grad_norm": 0.14094310998916626,
128
  "learning_rate": 7.692307692307693e-05,
129
- "loss": 0.0894,
130
  "step": 160
131
  },
132
  {
133
  "epoch": 2.6153846153846154,
134
- "grad_norm": 0.2033337652683258,
135
  "learning_rate": 6.923076923076924e-05,
136
- "loss": 0.0158,
137
  "step": 170
138
  },
139
  {
140
  "epoch": 2.769230769230769,
141
- "grad_norm": 2.038670778274536,
142
  "learning_rate": 6.153846153846155e-05,
143
- "loss": 0.0682,
144
  "step": 180
145
  },
146
  {
147
  "epoch": 2.9230769230769234,
148
- "grad_norm": 0.5425238609313965,
149
  "learning_rate": 5.384615384615385e-05,
150
- "loss": 0.0148,
151
  "step": 190
152
  },
153
  {
154
  "epoch": 3.076923076923077,
155
- "grad_norm": 0.12908649444580078,
156
  "learning_rate": 4.615384615384616e-05,
157
- "loss": 0.0121,
158
  "step": 200
159
  },
160
  {
161
  "epoch": 3.076923076923077,
162
- "eval_accuracy": 1.0,
163
- "eval_loss": 0.018796762451529503,
164
- "eval_runtime": 2.1434,
165
- "eval_samples_per_second": 62.05,
166
- "eval_steps_per_second": 7.931,
167
  "step": 200
168
  },
169
  {
170
  "epoch": 3.230769230769231,
171
- "grad_norm": 0.07232276350259781,
172
  "learning_rate": 3.846153846153846e-05,
173
- "loss": 0.0119,
174
  "step": 210
175
  },
176
  {
177
  "epoch": 3.3846153846153846,
178
- "grad_norm": 0.05829685181379318,
179
  "learning_rate": 3.0769230769230774e-05,
180
- "loss": 0.0131,
181
  "step": 220
182
  },
183
  {
184
  "epoch": 3.5384615384615383,
185
- "grad_norm": 0.06218134984374046,
186
  "learning_rate": 2.307692307692308e-05,
187
- "loss": 0.0306,
188
  "step": 230
189
  },
190
  {
191
  "epoch": 3.6923076923076925,
192
- "grad_norm": 0.06792601197957993,
193
  "learning_rate": 1.5384615384615387e-05,
194
- "loss": 0.011,
195
  "step": 240
196
  },
197
  {
198
  "epoch": 3.8461538461538463,
199
- "grad_norm": 0.060047898441553116,
200
  "learning_rate": 7.692307692307694e-06,
201
- "loss": 0.0108,
202
  "step": 250
203
  },
204
  {
205
  "epoch": 4.0,
206
- "grad_norm": 0.05698742717504501,
207
  "learning_rate": 0.0,
208
- "loss": 0.0106,
209
  "step": 260
210
  },
211
  {
212
  "epoch": 4.0,
213
  "step": 260,
214
  "total_flos": 3.205097416476426e+17,
215
- "train_loss": 0.1095780831690018,
216
- "train_runtime": 90.7321,
217
- "train_samples_per_second": 45.585,
218
- "train_steps_per_second": 2.866
219
  }
220
  ],
221
  "logging_steps": 10,
 
1
  {
2
+ "best_metric": 0.03179202973842621,
3
  "best_model_checkpoint": "./vit-base-beans-demo-v5/checkpoint-200",
4
  "epoch": 4.0,
5
  "eval_steps": 100,
 
10
  "log_history": [
11
  {
12
  "epoch": 0.15384615384615385,
13
+ "grad_norm": 1.3854262828826904,
14
  "learning_rate": 0.00019230769230769233,
15
+ "loss": 0.8006,
16
  "step": 10
17
  },
18
  {
19
  "epoch": 0.3076923076923077,
20
+ "grad_norm": 4.267582893371582,
21
  "learning_rate": 0.00018461538461538463,
22
+ "loss": 0.3319,
23
  "step": 20
24
  },
25
  {
26
  "epoch": 0.46153846153846156,
27
+ "grad_norm": 1.7108104228973389,
28
  "learning_rate": 0.00017692307692307693,
29
+ "loss": 0.2789,
30
  "step": 30
31
  },
32
  {
33
  "epoch": 0.6153846153846154,
34
+ "grad_norm": 1.280118465423584,
35
  "learning_rate": 0.00016923076923076923,
36
+ "loss": 0.2837,
37
  "step": 40
38
  },
39
  {
40
  "epoch": 0.7692307692307693,
41
+ "grad_norm": 8.134176254272461,
42
  "learning_rate": 0.00016153846153846155,
43
+ "loss": 0.2461,
44
  "step": 50
45
  },
46
  {
47
  "epoch": 0.9230769230769231,
48
+ "grad_norm": 2.2806813716888428,
49
  "learning_rate": 0.00015384615384615385,
50
+ "loss": 0.2131,
51
  "step": 60
52
  },
53
  {
54
  "epoch": 1.0769230769230769,
55
+ "grad_norm": 0.2824852168560028,
56
  "learning_rate": 0.00014615384615384615,
57
+ "loss": 0.1639,
58
  "step": 70
59
  },
60
  {
61
  "epoch": 1.2307692307692308,
62
+ "grad_norm": 0.39076101779937744,
63
  "learning_rate": 0.00013846153846153847,
64
+ "loss": 0.0845,
65
  "step": 80
66
  },
67
  {
68
  "epoch": 1.3846153846153846,
69
+ "grad_norm": 0.1591070592403412,
70
  "learning_rate": 0.00013076923076923077,
71
+ "loss": 0.0721,
72
  "step": 90
73
  },
74
  {
75
  "epoch": 1.5384615384615383,
76
+ "grad_norm": 2.908008575439453,
77
  "learning_rate": 0.0001230769230769231,
78
+ "loss": 0.0725,
79
  "step": 100
80
  },
81
  {
82
  "epoch": 1.5384615384615383,
83
+ "eval_accuracy": 0.9473684210526315,
84
+ "eval_loss": 0.1633957028388977,
85
+ "eval_runtime": 1.2488,
86
+ "eval_samples_per_second": 106.503,
87
+ "eval_steps_per_second": 13.613,
88
  "step": 100
89
  },
90
  {
91
  "epoch": 1.6923076923076923,
92
+ "grad_norm": 3.4353740215301514,
93
  "learning_rate": 0.00011538461538461538,
94
+ "loss": 0.1748,
95
  "step": 110
96
  },
97
  {
98
  "epoch": 1.8461538461538463,
99
+ "grad_norm": 3.038853883743286,
100
  "learning_rate": 0.0001076923076923077,
101
+ "loss": 0.1436,
102
  "step": 120
103
  },
104
  {
105
  "epoch": 2.0,
106
+ "grad_norm": 2.874983310699463,
107
  "learning_rate": 0.0001,
108
+ "loss": 0.0415,
109
  "step": 130
110
  },
111
  {
112
  "epoch": 2.1538461538461537,
113
+ "grad_norm": 0.20417748391628265,
114
  "learning_rate": 9.230769230769232e-05,
115
+ "loss": 0.0394,
116
  "step": 140
117
  },
118
  {
119
  "epoch": 2.3076923076923075,
120
+ "grad_norm": 9.560956954956055,
121
  "learning_rate": 8.461538461538461e-05,
122
+ "loss": 0.0438,
123
  "step": 150
124
  },
125
  {
126
  "epoch": 2.4615384615384617,
127
+ "grad_norm": 0.3993445634841919,
128
  "learning_rate": 7.692307692307693e-05,
129
+ "loss": 0.0366,
130
  "step": 160
131
  },
132
  {
133
  "epoch": 2.6153846153846154,
134
+ "grad_norm": 0.07924646139144897,
135
  "learning_rate": 6.923076923076924e-05,
136
+ "loss": 0.0157,
137
  "step": 170
138
  },
139
  {
140
  "epoch": 2.769230769230769,
141
+ "grad_norm": 0.07146325707435608,
142
  "learning_rate": 6.153846153846155e-05,
143
+ "loss": 0.0336,
144
  "step": 180
145
  },
146
  {
147
  "epoch": 2.9230769230769234,
148
+ "grad_norm": 1.8434661626815796,
149
  "learning_rate": 5.384615384615385e-05,
150
+ "loss": 0.0176,
151
  "step": 190
152
  },
153
  {
154
  "epoch": 3.076923076923077,
155
+ "grad_norm": 0.07253334671258926,
156
  "learning_rate": 4.615384615384616e-05,
157
+ "loss": 0.0145,
158
  "step": 200
159
  },
160
  {
161
  "epoch": 3.076923076923077,
162
+ "eval_accuracy": 0.9924812030075187,
163
+ "eval_loss": 0.03179202973842621,
164
+ "eval_runtime": 1.4947,
165
+ "eval_samples_per_second": 88.979,
166
+ "eval_steps_per_second": 11.373,
167
  "step": 200
168
  },
169
  {
170
  "epoch": 3.230769230769231,
171
+ "grad_norm": 0.0676412433385849,
172
  "learning_rate": 3.846153846153846e-05,
173
+ "loss": 0.013,
174
  "step": 210
175
  },
176
  {
177
  "epoch": 3.3846153846153846,
178
+ "grad_norm": 0.06383011490106583,
179
  "learning_rate": 3.0769230769230774e-05,
180
+ "loss": 0.0123,
181
  "step": 220
182
  },
183
  {
184
  "epoch": 3.5384615384615383,
185
+ "grad_norm": 0.06610537320375443,
186
  "learning_rate": 2.307692307692308e-05,
187
+ "loss": 0.0119,
188
  "step": 230
189
  },
190
  {
191
  "epoch": 3.6923076923076925,
192
+ "grad_norm": 0.06182776391506195,
193
  "learning_rate": 1.5384615384615387e-05,
194
+ "loss": 0.0116,
195
  "step": 240
196
  },
197
  {
198
  "epoch": 3.8461538461538463,
199
+ "grad_norm": 0.05951670929789543,
200
  "learning_rate": 7.692307692307694e-06,
201
+ "loss": 0.0115,
202
  "step": 250
203
  },
204
  {
205
  "epoch": 4.0,
206
+ "grad_norm": 0.11315698176622391,
207
  "learning_rate": 0.0,
208
+ "loss": 0.0117,
209
  "step": 260
210
  },
211
  {
212
  "epoch": 4.0,
213
  "step": 260,
214
  "total_flos": 3.205097416476426e+17,
215
+ "train_loss": 0.12231931924246825,
216
+ "train_runtime": 89.2176,
217
+ "train_samples_per_second": 46.359,
218
+ "train_steps_per_second": 2.914
219
  }
220
  ],
221
  "logging_steps": 10,
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:79743f40a0fe1e7366d56248ce2933432324293fcaaef4908186b85c13cc78a3
3
  size 5112
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1068466c39135f47bf594575dd82b090510f428889e5c78115653611ddee98e8
3
  size 5112