wonnie0413
Browse files- README.md +4 -4
- all_results.json +4 -4
- model.safetensors +1 -1
- runs/Jul04_07-40-55_ac97485dd4af/events.out.tfevents.1720078860.ac97485dd4af.1451.0 +3 -0
- train_results.json +4 -4
- trainer_state.json +68 -68
- training_args.bin +1 -1
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.
|
23 |
-
- Accuracy:
|
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.
|
56 |
-
| 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.
|
5 |
-
"train_runtime":
|
6 |
-
"train_samples_per_second":
|
7 |
-
"train_steps_per_second": 2.
|
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:
|
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.
|
5 |
-
"train_runtime":
|
6 |
-
"train_samples_per_second":
|
7 |
-
"train_steps_per_second": 2.
|
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.
|
3 |
-
"best_model_checkpoint": "./vit-base-beans-demo-v5/checkpoint-
|
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.
|
14 |
"learning_rate": 0.00019230769230769233,
|
15 |
-
"loss": 0.
|
16 |
"step": 10
|
17 |
},
|
18 |
{
|
19 |
"epoch": 0.3076923076923077,
|
20 |
-
"grad_norm":
|
21 |
"learning_rate": 0.00018461538461538463,
|
22 |
-
"loss": 0.
|
23 |
"step": 20
|
24 |
},
|
25 |
{
|
26 |
"epoch": 0.46153846153846156,
|
27 |
-
"grad_norm":
|
28 |
"learning_rate": 0.00017692307692307693,
|
29 |
-
"loss": 0.
|
30 |
"step": 30
|
31 |
},
|
32 |
{
|
33 |
"epoch": 0.6153846153846154,
|
34 |
-
"grad_norm":
|
35 |
"learning_rate": 0.00016923076923076923,
|
36 |
-
"loss": 0.
|
37 |
"step": 40
|
38 |
},
|
39 |
{
|
40 |
"epoch": 0.7692307692307693,
|
41 |
-
"grad_norm":
|
42 |
"learning_rate": 0.00016153846153846155,
|
43 |
-
"loss": 0.
|
44 |
"step": 50
|
45 |
},
|
46 |
{
|
47 |
"epoch": 0.9230769230769231,
|
48 |
-
"grad_norm": 4.
|
49 |
"learning_rate": 0.00015384615384615385,
|
50 |
-
"loss": 0.
|
51 |
"step": 60
|
52 |
},
|
53 |
{
|
54 |
"epoch": 1.0769230769230769,
|
55 |
-
"grad_norm": 0.
|
56 |
"learning_rate": 0.00014615384615384615,
|
57 |
-
"loss": 0.
|
58 |
"step": 70
|
59 |
},
|
60 |
{
|
61 |
"epoch": 1.2307692307692308,
|
62 |
-
"grad_norm": 0.
|
63 |
"learning_rate": 0.00013846153846153847,
|
64 |
-
"loss": 0.
|
65 |
"step": 80
|
66 |
},
|
67 |
{
|
68 |
"epoch": 1.3846153846153846,
|
69 |
-
"grad_norm": 0.
|
70 |
"learning_rate": 0.00013076923076923077,
|
71 |
-
"loss": 0.
|
72 |
"step": 90
|
73 |
},
|
74 |
{
|
75 |
"epoch": 1.5384615384615383,
|
76 |
-
"grad_norm": 0.
|
77 |
"learning_rate": 0.0001230769230769231,
|
78 |
-
"loss": 0.
|
79 |
"step": 100
|
80 |
},
|
81 |
{
|
82 |
"epoch": 1.5384615384615383,
|
83 |
-
"eval_accuracy": 0.
|
84 |
-
"eval_loss": 0.
|
85 |
-
"eval_runtime": 1.
|
86 |
-
"eval_samples_per_second":
|
87 |
-
"eval_steps_per_second":
|
88 |
"step": 100
|
89 |
},
|
90 |
{
|
91 |
"epoch": 1.6923076923076923,
|
92 |
-
"grad_norm":
|
93 |
"learning_rate": 0.00011538461538461538,
|
94 |
-
"loss": 0.
|
95 |
"step": 110
|
96 |
},
|
97 |
{
|
98 |
"epoch": 1.8461538461538463,
|
99 |
-
"grad_norm":
|
100 |
"learning_rate": 0.0001076923076923077,
|
101 |
-
"loss": 0.
|
102 |
"step": 120
|
103 |
},
|
104 |
{
|
105 |
"epoch": 2.0,
|
106 |
-
"grad_norm":
|
107 |
"learning_rate": 0.0001,
|
108 |
-
"loss": 0.
|
109 |
"step": 130
|
110 |
},
|
111 |
{
|
112 |
"epoch": 2.1538461538461537,
|
113 |
-
"grad_norm":
|
114 |
"learning_rate": 9.230769230769232e-05,
|
115 |
-
"loss": 0.
|
116 |
"step": 140
|
117 |
},
|
118 |
{
|
119 |
"epoch": 2.3076923076923075,
|
120 |
-
"grad_norm":
|
121 |
"learning_rate": 8.461538461538461e-05,
|
122 |
-
"loss": 0.
|
123 |
"step": 150
|
124 |
},
|
125 |
{
|
126 |
"epoch": 2.4615384615384617,
|
127 |
-
"grad_norm":
|
128 |
"learning_rate": 7.692307692307693e-05,
|
129 |
-
"loss": 0.
|
130 |
"step": 160
|
131 |
},
|
132 |
{
|
133 |
"epoch": 2.6153846153846154,
|
134 |
-
"grad_norm": 0.
|
135 |
"learning_rate": 6.923076923076924e-05,
|
136 |
-
"loss": 0.
|
137 |
"step": 170
|
138 |
},
|
139 |
{
|
140 |
"epoch": 2.769230769230769,
|
141 |
-
"grad_norm":
|
142 |
"learning_rate": 6.153846153846155e-05,
|
143 |
-
"loss": 0.
|
144 |
"step": 180
|
145 |
},
|
146 |
{
|
147 |
"epoch": 2.9230769230769234,
|
148 |
-
"grad_norm":
|
149 |
"learning_rate": 5.384615384615385e-05,
|
150 |
-
"loss": 0.
|
151 |
"step": 190
|
152 |
},
|
153 |
{
|
154 |
"epoch": 3.076923076923077,
|
155 |
-
"grad_norm": 0.
|
156 |
"learning_rate": 4.615384615384616e-05,
|
157 |
-
"loss": 0.
|
158 |
"step": 200
|
159 |
},
|
160 |
{
|
161 |
"epoch": 3.076923076923077,
|
162 |
-
"eval_accuracy":
|
163 |
-
"eval_loss": 0.
|
164 |
-
"eval_runtime": 1.
|
165 |
-
"eval_samples_per_second":
|
166 |
-
"eval_steps_per_second":
|
167 |
"step": 200
|
168 |
},
|
169 |
{
|
170 |
"epoch": 3.230769230769231,
|
171 |
-
"grad_norm": 0.
|
172 |
"learning_rate": 3.846153846153846e-05,
|
173 |
-
"loss": 0.
|
174 |
"step": 210
|
175 |
},
|
176 |
{
|
177 |
"epoch": 3.3846153846153846,
|
178 |
-
"grad_norm": 0.
|
179 |
"learning_rate": 3.0769230769230774e-05,
|
180 |
-
"loss": 0.
|
181 |
"step": 220
|
182 |
},
|
183 |
{
|
184 |
"epoch": 3.5384615384615383,
|
185 |
-
"grad_norm": 0.
|
186 |
"learning_rate": 2.307692307692308e-05,
|
187 |
-
"loss": 0.
|
188 |
"step": 230
|
189 |
},
|
190 |
{
|
191 |
"epoch": 3.6923076923076925,
|
192 |
-
"grad_norm": 0.
|
193 |
"learning_rate": 1.5384615384615387e-05,
|
194 |
-
"loss": 0.
|
195 |
"step": 240
|
196 |
},
|
197 |
{
|
198 |
"epoch": 3.8461538461538463,
|
199 |
-
"grad_norm": 0.
|
200 |
"learning_rate": 7.692307692307694e-06,
|
201 |
-
"loss": 0.
|
202 |
"step": 250
|
203 |
},
|
204 |
{
|
205 |
"epoch": 4.0,
|
206 |
-
"grad_norm": 0.
|
207 |
"learning_rate": 0.0,
|
208 |
-
"loss": 0.
|
209 |
"step": 260
|
210 |
},
|
211 |
{
|
212 |
"epoch": 4.0,
|
213 |
"step": 260,
|
214 |
"total_flos": 3.205097416476426e+17,
|
215 |
-
"train_loss": 0.
|
216 |
-
"train_runtime":
|
217 |
-
"train_samples_per_second":
|
218 |
-
"train_steps_per_second": 2.
|
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:
|
3 |
size 5112
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5f8905920dd94a3f430194957dd48d25f99e32d54703268f40f97be390b554da
|
3 |
size 5112
|