wonnie0413 commited on
Commit
1a8dfe1
·
verified ·
1 Parent(s): 4cf3109

wonnie0413

Browse files
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.0123
23
- - Accuracy: 1.0
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.0529 | 1.5385 | 100 | 0.0920 | 0.9774 |
56
- | 0.0601 | 3.0769 | 200 | 0.0123 | 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.1220
23
+ - Accuracy: 0.9699
24
 
25
  ## Model description
26
 
 
52
 
53
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
54
  |:-------------:|:------:|:----:|:---------------:|:--------:|
55
+ | 0.0631 | 1.5385 | 100 | 0.0711 | 0.9850 |
56
+ | 0.0409 | 3.0769 | 200 | 0.1220 | 0.9699 |
57
 
58
 
59
  ### Framework versions
all_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "epoch": 4.0,
3
  "total_flos": 3.205097416476426e+17,
4
- "train_loss": 0.11325625943449827,
5
- "train_runtime": 101.5296,
6
- "train_samples_per_second": 40.737,
7
- "train_steps_per_second": 2.561
8
  }
 
1
  {
2
  "epoch": 4.0,
3
  "total_flos": 3.205097416476426e+17,
4
+ "train_loss": 0.12752302890786757,
5
+ "train_runtime": 91.8806,
6
+ "train_samples_per_second": 45.015,
7
+ "train_steps_per_second": 2.83
8
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9c25b36af2b6e89a6dae111ec02626db0cf7e88d25bd7b496674e4c198695a11
3
  size 343227052
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3bf63b25eafe2060ed78e3462d9b2afd82248b5a12bd3251df88a0e1652b0699
3
  size 343227052
runs/Jul04_07-40-55_ac97485dd4af/events.out.tfevents.1720078860.ac97485dd4af.1451.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39b9f1f9c8a5c36c8cb24a18177f9554b17789cc37b59bd3fb2bc7312a15c462
3
+ size 11323
train_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "epoch": 4.0,
3
  "total_flos": 3.205097416476426e+17,
4
- "train_loss": 0.11325625943449827,
5
- "train_runtime": 101.5296,
6
- "train_samples_per_second": 40.737,
7
- "train_steps_per_second": 2.561
8
  }
 
1
  {
2
  "epoch": 4.0,
3
  "total_flos": 3.205097416476426e+17,
4
+ "train_loss": 0.12752302890786757,
5
+ "train_runtime": 91.8806,
6
+ "train_samples_per_second": 45.015,
7
+ "train_steps_per_second": 2.83
8
  }
trainer_state.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
- "best_metric": 0.012265427969396114,
3
- "best_model_checkpoint": "./vit-base-beans-demo-v5/checkpoint-200",
4
  "epoch": 4.0,
5
  "eval_steps": 100,
6
  "global_step": 260,
@@ -10,212 +10,212 @@
10
  "log_history": [
11
  {
12
  "epoch": 0.15384615384615385,
13
- "grad_norm": 1.34767746925354,
14
  "learning_rate": 0.00019230769230769233,
15
- "loss": 0.8154,
16
  "step": 10
17
  },
18
  {
19
  "epoch": 0.3076923076923077,
20
- "grad_norm": 2.5922181606292725,
21
  "learning_rate": 0.00018461538461538463,
22
- "loss": 0.356,
23
  "step": 20
24
  },
25
  {
26
  "epoch": 0.46153846153846156,
27
- "grad_norm": 1.924363374710083,
28
  "learning_rate": 0.00017692307692307693,
29
- "loss": 0.2338,
30
  "step": 30
31
  },
32
  {
33
  "epoch": 0.6153846153846154,
34
- "grad_norm": 1.5984817743301392,
35
  "learning_rate": 0.00016923076923076923,
36
- "loss": 0.2239,
37
  "step": 40
38
  },
39
  {
40
  "epoch": 0.7692307692307693,
41
- "grad_norm": 0.47597455978393555,
42
  "learning_rate": 0.00016153846153846155,
43
- "loss": 0.148,
44
  "step": 50
45
  },
46
  {
47
  "epoch": 0.9230769230769231,
48
- "grad_norm": 4.586166858673096,
49
  "learning_rate": 0.00015384615384615385,
50
- "loss": 0.2055,
51
  "step": 60
52
  },
53
  {
54
  "epoch": 1.0769230769230769,
55
- "grad_norm": 0.215128555893898,
56
  "learning_rate": 0.00014615384615384615,
57
- "loss": 0.0955,
58
  "step": 70
59
  },
60
  {
61
  "epoch": 1.2307692307692308,
62
- "grad_norm": 0.1345285028219223,
63
  "learning_rate": 0.00013846153846153847,
64
- "loss": 0.0943,
65
  "step": 80
66
  },
67
  {
68
  "epoch": 1.3846153846153846,
69
- "grad_norm": 0.12171005457639694,
70
  "learning_rate": 0.00013076923076923077,
71
- "loss": 0.0354,
72
  "step": 90
73
  },
74
  {
75
  "epoch": 1.5384615384615383,
76
- "grad_norm": 0.10186214745044708,
77
  "learning_rate": 0.0001230769230769231,
78
- "loss": 0.0529,
79
  "step": 100
80
  },
81
  {
82
  "epoch": 1.5384615384615383,
83
- "eval_accuracy": 0.9774436090225563,
84
- "eval_loss": 0.09199133515357971,
85
- "eval_runtime": 1.2623,
86
- "eval_samples_per_second": 105.363,
87
- "eval_steps_per_second": 13.467,
88
  "step": 100
89
  },
90
  {
91
  "epoch": 1.6923076923076923,
92
- "grad_norm": 0.11654942482709885,
93
  "learning_rate": 0.00011538461538461538,
94
- "loss": 0.0699,
95
  "step": 110
96
  },
97
  {
98
  "epoch": 1.8461538461538463,
99
- "grad_norm": 0.2380131483078003,
100
  "learning_rate": 0.0001076923076923077,
101
- "loss": 0.0778,
102
  "step": 120
103
  },
104
  {
105
  "epoch": 2.0,
106
- "grad_norm": 0.09530265629291534,
107
  "learning_rate": 0.0001,
108
- "loss": 0.1043,
109
  "step": 130
110
  },
111
  {
112
  "epoch": 2.1538461538461537,
113
- "grad_norm": 3.0544557571411133,
114
  "learning_rate": 9.230769230769232e-05,
115
- "loss": 0.0218,
116
  "step": 140
117
  },
118
  {
119
  "epoch": 2.3076923076923075,
120
- "grad_norm": 2.484825372695923,
121
  "learning_rate": 8.461538461538461e-05,
122
- "loss": 0.0574,
123
  "step": 150
124
  },
125
  {
126
  "epoch": 2.4615384615384617,
127
- "grad_norm": 1.0583124160766602,
128
  "learning_rate": 7.692307692307693e-05,
129
- "loss": 0.0819,
130
  "step": 160
131
  },
132
  {
133
  "epoch": 2.6153846153846154,
134
- "grad_norm": 0.7233728766441345,
135
  "learning_rate": 6.923076923076924e-05,
136
- "loss": 0.0254,
137
  "step": 170
138
  },
139
  {
140
  "epoch": 2.769230769230769,
141
- "grad_norm": 0.07144816964864731,
142
  "learning_rate": 6.153846153846155e-05,
143
- "loss": 0.0395,
144
  "step": 180
145
  },
146
  {
147
  "epoch": 2.9230769230769234,
148
- "grad_norm": 0.7451149821281433,
149
  "learning_rate": 5.384615384615385e-05,
150
- "loss": 0.0775,
151
  "step": 190
152
  },
153
  {
154
  "epoch": 3.076923076923077,
155
- "grad_norm": 0.06043630465865135,
156
  "learning_rate": 4.615384615384616e-05,
157
- "loss": 0.0601,
158
  "step": 200
159
  },
160
  {
161
  "epoch": 3.076923076923077,
162
- "eval_accuracy": 1.0,
163
- "eval_loss": 0.012265427969396114,
164
- "eval_runtime": 1.2341,
165
- "eval_samples_per_second": 107.772,
166
- "eval_steps_per_second": 13.775,
167
  "step": 200
168
  },
169
  {
170
  "epoch": 3.230769230769231,
171
- "grad_norm": 0.05750015750527382,
172
  "learning_rate": 3.846153846153846e-05,
173
- "loss": 0.0116,
174
  "step": 210
175
  },
176
  {
177
  "epoch": 3.3846153846153846,
178
- "grad_norm": 0.1272144913673401,
179
  "learning_rate": 3.0769230769230774e-05,
180
- "loss": 0.0136,
181
  "step": 220
182
  },
183
  {
184
  "epoch": 3.5384615384615383,
185
- "grad_norm": 0.05987811088562012,
186
  "learning_rate": 2.307692307692308e-05,
187
- "loss": 0.0108,
188
  "step": 230
189
  },
190
  {
191
  "epoch": 3.6923076923076925,
192
- "grad_norm": 0.056609779596328735,
193
  "learning_rate": 1.5384615384615387e-05,
194
- "loss": 0.0107,
195
  "step": 240
196
  },
197
  {
198
  "epoch": 3.8461538461538463,
199
- "grad_norm": 0.07808347791433334,
200
  "learning_rate": 7.692307692307694e-06,
201
- "loss": 0.0109,
202
  "step": 250
203
  },
204
  {
205
  "epoch": 4.0,
206
- "grad_norm": 0.051622990518808365,
207
  "learning_rate": 0.0,
208
- "loss": 0.0107,
209
  "step": 260
210
  },
211
  {
212
  "epoch": 4.0,
213
  "step": 260,
214
  "total_flos": 3.205097416476426e+17,
215
- "train_loss": 0.11325625943449827,
216
- "train_runtime": 101.5296,
217
- "train_samples_per_second": 40.737,
218
- "train_steps_per_second": 2.561
219
  }
220
  ],
221
  "logging_steps": 10,
 
1
  {
2
+ "best_metric": 0.07106763869524002,
3
+ "best_model_checkpoint": "./vit-base-beans-demo-v5/checkpoint-100",
4
  "epoch": 4.0,
5
  "eval_steps": 100,
6
  "global_step": 260,
 
10
  "log_history": [
11
  {
12
  "epoch": 0.15384615384615385,
13
+ "grad_norm": 1.6026091575622559,
14
  "learning_rate": 0.00019230769230769233,
15
+ "loss": 0.857,
16
  "step": 10
17
  },
18
  {
19
  "epoch": 0.3076923076923077,
20
+ "grad_norm": 1.5386457443237305,
21
  "learning_rate": 0.00018461538461538463,
22
+ "loss": 0.3705,
23
  "step": 20
24
  },
25
  {
26
  "epoch": 0.46153846153846156,
27
+ "grad_norm": 0.38434720039367676,
28
  "learning_rate": 0.00017692307692307693,
29
+ "loss": 0.2474,
30
  "step": 30
31
  },
32
  {
33
  "epoch": 0.6153846153846154,
34
+ "grad_norm": 0.6597588062286377,
35
  "learning_rate": 0.00016923076923076923,
36
+ "loss": 0.2648,
37
  "step": 40
38
  },
39
  {
40
  "epoch": 0.7692307692307693,
41
+ "grad_norm": 6.412318706512451,
42
  "learning_rate": 0.00016153846153846155,
43
+ "loss": 0.2766,
44
  "step": 50
45
  },
46
  {
47
  "epoch": 0.9230769230769231,
48
+ "grad_norm": 4.713058948516846,
49
  "learning_rate": 0.00015384615384615385,
50
+ "loss": 0.2076,
51
  "step": 60
52
  },
53
  {
54
  "epoch": 1.0769230769230769,
55
+ "grad_norm": 0.7322153449058533,
56
  "learning_rate": 0.00014615384615384615,
57
+ "loss": 0.1394,
58
  "step": 70
59
  },
60
  {
61
  "epoch": 1.2307692307692308,
62
+ "grad_norm": 0.17962901294231415,
63
  "learning_rate": 0.00013846153846153847,
64
+ "loss": 0.1321,
65
  "step": 80
66
  },
67
  {
68
  "epoch": 1.3846153846153846,
69
+ "grad_norm": 0.38781630992889404,
70
  "learning_rate": 0.00013076923076923077,
71
+ "loss": 0.0399,
72
  "step": 90
73
  },
74
  {
75
  "epoch": 1.5384615384615383,
76
+ "grad_norm": 0.7888959646224976,
77
  "learning_rate": 0.0001230769230769231,
78
+ "loss": 0.0631,
79
  "step": 100
80
  },
81
  {
82
  "epoch": 1.5384615384615383,
83
+ "eval_accuracy": 0.9849624060150376,
84
+ "eval_loss": 0.07106763869524002,
85
+ "eval_runtime": 1.9552,
86
+ "eval_samples_per_second": 68.024,
87
+ "eval_steps_per_second": 8.695,
88
  "step": 100
89
  },
90
  {
91
  "epoch": 1.6923076923076923,
92
+ "grad_norm": 1.7944247722625732,
93
  "learning_rate": 0.00011538461538461538,
94
+ "loss": 0.1224,
95
  "step": 110
96
  },
97
  {
98
  "epoch": 1.8461538461538463,
99
+ "grad_norm": 1.4098163843154907,
100
  "learning_rate": 0.0001076923076923077,
101
+ "loss": 0.1294,
102
  "step": 120
103
  },
104
  {
105
  "epoch": 2.0,
106
+ "grad_norm": 1.0332523584365845,
107
  "learning_rate": 0.0001,
108
+ "loss": 0.0575,
109
  "step": 130
110
  },
111
  {
112
  "epoch": 2.1538461538461537,
113
+ "grad_norm": 2.570497512817383,
114
  "learning_rate": 9.230769230769232e-05,
115
+ "loss": 0.0472,
116
  "step": 140
117
  },
118
  {
119
  "epoch": 2.3076923076923075,
120
+ "grad_norm": 0.09198305010795593,
121
  "learning_rate": 8.461538461538461e-05,
122
+ "loss": 0.0345,
123
  "step": 150
124
  },
125
  {
126
  "epoch": 2.4615384615384617,
127
+ "grad_norm": 3.40727162361145,
128
  "learning_rate": 7.692307692307693e-05,
129
+ "loss": 0.03,
130
  "step": 160
131
  },
132
  {
133
  "epoch": 2.6153846153846154,
134
+ "grad_norm": 0.07246225327253342,
135
  "learning_rate": 6.923076923076924e-05,
136
+ "loss": 0.0402,
137
  "step": 170
138
  },
139
  {
140
  "epoch": 2.769230769230769,
141
+ "grad_norm": 1.846726894378662,
142
  "learning_rate": 6.153846153846155e-05,
143
+ "loss": 0.0652,
144
  "step": 180
145
  },
146
  {
147
  "epoch": 2.9230769230769234,
148
+ "grad_norm": 3.1595141887664795,
149
  "learning_rate": 5.384615384615385e-05,
150
+ "loss": 0.0358,
151
  "step": 190
152
  },
153
  {
154
  "epoch": 3.076923076923077,
155
+ "grad_norm": 0.06781166791915894,
156
  "learning_rate": 4.615384615384616e-05,
157
+ "loss": 0.0409,
158
  "step": 200
159
  },
160
  {
161
  "epoch": 3.076923076923077,
162
+ "eval_accuracy": 0.9699248120300752,
163
+ "eval_loss": 0.12198615819215775,
164
+ "eval_runtime": 1.6615,
165
+ "eval_samples_per_second": 80.047,
166
+ "eval_steps_per_second": 10.232,
167
  "step": 200
168
  },
169
  {
170
  "epoch": 3.230769230769231,
171
+ "grad_norm": 0.06514012068510056,
172
  "learning_rate": 3.846153846153846e-05,
173
+ "loss": 0.0484,
174
  "step": 210
175
  },
176
  {
177
  "epoch": 3.3846153846153846,
178
+ "grad_norm": 0.06250347942113876,
179
  "learning_rate": 3.0769230769230774e-05,
180
+ "loss": 0.0142,
181
  "step": 220
182
  },
183
  {
184
  "epoch": 3.5384615384615383,
185
+ "grad_norm": 0.06651216000318527,
186
  "learning_rate": 2.307692307692308e-05,
187
+ "loss": 0.0123,
188
  "step": 230
189
  },
190
  {
191
  "epoch": 3.6923076923076925,
192
+ "grad_norm": 0.07879933714866638,
193
  "learning_rate": 1.5384615384615387e-05,
194
+ "loss": 0.0122,
195
  "step": 240
196
  },
197
  {
198
  "epoch": 3.8461538461538463,
199
+ "grad_norm": 0.062080804258584976,
200
  "learning_rate": 7.692307692307694e-06,
201
+ "loss": 0.0144,
202
  "step": 250
203
  },
204
  {
205
  "epoch": 4.0,
206
+ "grad_norm": 0.06278563290834427,
207
  "learning_rate": 0.0,
208
+ "loss": 0.0125,
209
  "step": 260
210
  },
211
  {
212
  "epoch": 4.0,
213
  "step": 260,
214
  "total_flos": 3.205097416476426e+17,
215
+ "train_loss": 0.12752302890786757,
216
+ "train_runtime": 91.8806,
217
+ "train_samples_per_second": 45.015,
218
+ "train_steps_per_second": 2.83
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:08e32e62c2abfc7ae18e7564866f9a5501c4a404e25a76414a383b98d8f81ca4
3
  size 5112
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f8905920dd94a3f430194957dd48d25f99e32d54703268f40f97be390b554da
3
  size 5112