🍻 cheers
Browse files- README.md +4 -4
- all_results.json +9 -9
- eval_results.json +5 -5
- model.safetensors +1 -1
- runs/Jun28_08-52-04_98d0e026ed58/events.out.tfevents.1719564731.98d0e026ed58.442.0 +3 -0
- runs/Jun28_08-52-04_98d0e026ed58/events.out.tfevents.1719564869.98d0e026ed58.442.1 +3 -0
- train_results.json +4 -4
- trainer_state.json +67 -67
- training_args.bin +1 -1
README.md
CHANGED
@@ -18,8 +18,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
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 beans dataset.
|
20 |
It achieves the following results on the evaluation set:
|
21 |
-
- Loss: 0.
|
22 |
-
- Accuracy: 0.
|
23 |
|
24 |
## Model description
|
25 |
|
@@ -51,8 +51,8 @@ The following hyperparameters were used during training:
|
|
51 |
|
52 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
53 |
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
54 |
-
| 0.
|
55 |
-
| 0.
|
56 |
|
57 |
|
58 |
### Framework versions
|
|
|
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 beans dataset.
|
20 |
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 0.0442
|
22 |
+
- Accuracy: 0.9925
|
23 |
|
24 |
## Model description
|
25 |
|
|
|
51 |
|
52 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
53 |
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
54 |
+
| 0.059 | 1.5385 | 100 | 0.0442 | 0.9925 |
|
55 |
+
| 0.0359 | 3.0769 | 200 | 0.0564 | 0.9850 |
|
56 |
|
57 |
|
58 |
### Framework versions
|
all_results.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
{
|
2 |
"epoch": 4.0,
|
3 |
-
"eval_accuracy": 0.
|
4 |
-
"eval_loss": 0.
|
5 |
-
"eval_runtime": 1.
|
6 |
-
"eval_samples_per_second":
|
7 |
-
"eval_steps_per_second":
|
8 |
"total_flos": 3.205097416476426e+17,
|
9 |
-
"train_loss": 0.
|
10 |
-
"train_runtime":
|
11 |
-
"train_samples_per_second":
|
12 |
-
"train_steps_per_second": 2.
|
13 |
}
|
|
|
1 |
{
|
2 |
"epoch": 4.0,
|
3 |
+
"eval_accuracy": 0.9924812030075187,
|
4 |
+
"eval_loss": 0.04420160874724388,
|
5 |
+
"eval_runtime": 1.4571,
|
6 |
+
"eval_samples_per_second": 91.278,
|
7 |
+
"eval_steps_per_second": 11.667,
|
8 |
"total_flos": 3.205097416476426e+17,
|
9 |
+
"train_loss": 0.10883640790214906,
|
10 |
+
"train_runtime": 98.1266,
|
11 |
+
"train_samples_per_second": 42.15,
|
12 |
+
"train_steps_per_second": 2.65
|
13 |
}
|
eval_results.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
{
|
2 |
"epoch": 4.0,
|
3 |
-
"eval_accuracy": 0.
|
4 |
-
"eval_loss": 0.
|
5 |
-
"eval_runtime": 1.
|
6 |
-
"eval_samples_per_second":
|
7 |
-
"eval_steps_per_second":
|
8 |
}
|
|
|
1 |
{
|
2 |
"epoch": 4.0,
|
3 |
+
"eval_accuracy": 0.9924812030075187,
|
4 |
+
"eval_loss": 0.04420160874724388,
|
5 |
+
"eval_runtime": 1.4571,
|
6 |
+
"eval_samples_per_second": 91.278,
|
7 |
+
"eval_steps_per_second": 11.667
|
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:7ae565612793076afedc56601e30174a8547c043284cacc77c3a5a48a76492b8
|
3 |
size 343227052
|
runs/Jun28_08-52-04_98d0e026ed58/events.out.tfevents.1719564731.98d0e026ed58.442.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5fe243b730cce285a21db431e637e91c5ad670f6cc2fdbba763a41ae725d42b1
|
3 |
+
size 11323
|
runs/Jun28_08-52-04_98d0e026ed58/events.out.tfevents.1719564869.98d0e026ed58.442.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:68c8e585624332599748c0f2dbba7ce38570c9f66161a07bb411404d0538c3a9
|
3 |
+
size 411
|
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.10883640790214906,
|
5 |
+
"train_runtime": 98.1266,
|
6 |
+
"train_samples_per_second": 42.15,
|
7 |
+
"train_steps_per_second": 2.65
|
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": 2.
|
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":
|
49 |
"learning_rate": 0.00015384615384615385,
|
50 |
-
"loss": 0.
|
51 |
"step": 60
|
52 |
},
|
53 |
{
|
54 |
"epoch": 1.0769230769230769,
|
55 |
-
"grad_norm":
|
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":
|
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": 0.
|
100 |
"learning_rate": 0.0001076923076923077,
|
101 |
-
"loss": 0.
|
102 |
"step": 120
|
103 |
},
|
104 |
{
|
105 |
"epoch": 2.0,
|
106 |
-
"grad_norm": 0.
|
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": 0.
|
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": 0.
|
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": 0.9849624060150376,
|
163 |
-
"eval_loss": 0.
|
164 |
-
"eval_runtime": 1.
|
165 |
-
"eval_samples_per_second":
|
166 |
-
"eval_steps_per_second": 14.
|
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.04420160874724388,
|
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.251067042350769,
|
14 |
"learning_rate": 0.00019230769230769233,
|
15 |
+
"loss": 0.7455,
|
16 |
"step": 10
|
17 |
},
|
18 |
{
|
19 |
"epoch": 0.3076923076923077,
|
20 |
+
"grad_norm": 2.8409852981567383,
|
21 |
"learning_rate": 0.00018461538461538463,
|
22 |
+
"loss": 0.2967,
|
23 |
"step": 20
|
24 |
},
|
25 |
{
|
26 |
"epoch": 0.46153846153846156,
|
27 |
+
"grad_norm": 2.9720468521118164,
|
28 |
"learning_rate": 0.00017692307692307693,
|
29 |
+
"loss": 0.1919,
|
30 |
"step": 30
|
31 |
},
|
32 |
{
|
33 |
"epoch": 0.6153846153846154,
|
34 |
+
"grad_norm": 0.5581620335578918,
|
35 |
"learning_rate": 0.00016923076923076923,
|
36 |
+
"loss": 0.2157,
|
37 |
"step": 40
|
38 |
},
|
39 |
{
|
40 |
"epoch": 0.7692307692307693,
|
41 |
+
"grad_norm": 1.9146449565887451,
|
42 |
"learning_rate": 0.00016153846153846155,
|
43 |
+
"loss": 0.206,
|
44 |
"step": 50
|
45 |
},
|
46 |
{
|
47 |
"epoch": 0.9230769230769231,
|
48 |
+
"grad_norm": 0.5213171243667603,
|
49 |
"learning_rate": 0.00015384615384615385,
|
50 |
+
"loss": 0.2305,
|
51 |
"step": 60
|
52 |
},
|
53 |
{
|
54 |
"epoch": 1.0769230769230769,
|
55 |
+
"grad_norm": 0.17810313403606415,
|
56 |
"learning_rate": 0.00014615384615384615,
|
57 |
+
"loss": 0.1452,
|
58 |
"step": 70
|
59 |
},
|
60 |
{
|
61 |
"epoch": 1.2307692307692308,
|
62 |
+
"grad_norm": 0.20280644297599792,
|
63 |
"learning_rate": 0.00013846153846153847,
|
64 |
+
"loss": 0.0821,
|
65 |
"step": 80
|
66 |
},
|
67 |
{
|
68 |
"epoch": 1.3846153846153846,
|
69 |
+
"grad_norm": 0.3441774845123291,
|
70 |
"learning_rate": 0.00013076923076923077,
|
71 |
+
"loss": 0.0305,
|
72 |
"step": 90
|
73 |
},
|
74 |
{
|
75 |
"epoch": 1.5384615384615383,
|
76 |
+
"grad_norm": 4.757013320922852,
|
77 |
"learning_rate": 0.0001230769230769231,
|
78 |
+
"loss": 0.059,
|
79 |
"step": 100
|
80 |
},
|
81 |
{
|
82 |
"epoch": 1.5384615384615383,
|
83 |
+
"eval_accuracy": 0.9924812030075187,
|
84 |
+
"eval_loss": 0.04420160874724388,
|
85 |
+
"eval_runtime": 1.2347,
|
86 |
+
"eval_samples_per_second": 107.718,
|
87 |
+
"eval_steps_per_second": 13.768,
|
88 |
"step": 100
|
89 |
},
|
90 |
{
|
91 |
"epoch": 1.6923076923076923,
|
92 |
+
"grad_norm": 0.09952733665704727,
|
93 |
"learning_rate": 0.00011538461538461538,
|
94 |
+
"loss": 0.0634,
|
95 |
"step": 110
|
96 |
},
|
97 |
{
|
98 |
"epoch": 1.8461538461538463,
|
99 |
+
"grad_norm": 0.8956493735313416,
|
100 |
"learning_rate": 0.0001076923076923077,
|
101 |
+
"loss": 0.1432,
|
102 |
"step": 120
|
103 |
},
|
104 |
{
|
105 |
"epoch": 2.0,
|
106 |
+
"grad_norm": 0.09242899715900421,
|
107 |
"learning_rate": 0.0001,
|
108 |
+
"loss": 0.0325,
|
109 |
"step": 130
|
110 |
},
|
111 |
{
|
112 |
"epoch": 2.1538461538461537,
|
113 |
+
"grad_norm": 6.364304542541504,
|
114 |
"learning_rate": 9.230769230769232e-05,
|
115 |
+
"loss": 0.1169,
|
116 |
"step": 140
|
117 |
},
|
118 |
{
|
119 |
"epoch": 2.3076923076923075,
|
120 |
+
"grad_norm": 4.19351863861084,
|
121 |
"learning_rate": 8.461538461538461e-05,
|
122 |
+
"loss": 0.0268,
|
123 |
"step": 150
|
124 |
},
|
125 |
{
|
126 |
"epoch": 2.4615384615384617,
|
127 |
+
"grad_norm": 0.12382465600967407,
|
128 |
"learning_rate": 7.692307692307693e-05,
|
129 |
+
"loss": 0.0341,
|
130 |
"step": 160
|
131 |
},
|
132 |
{
|
133 |
"epoch": 2.6153846153846154,
|
134 |
+
"grad_norm": 0.09067798405885696,
|
135 |
"learning_rate": 6.923076923076924e-05,
|
136 |
+
"loss": 0.019,
|
137 |
"step": 170
|
138 |
},
|
139 |
{
|
140 |
"epoch": 2.769230769230769,
|
141 |
+
"grad_norm": 3.0015292167663574,
|
142 |
"learning_rate": 6.153846153846155e-05,
|
143 |
+
"loss": 0.0641,
|
144 |
"step": 180
|
145 |
},
|
146 |
{
|
147 |
"epoch": 2.9230769230769234,
|
148 |
+
"grad_norm": 0.06810443103313446,
|
149 |
"learning_rate": 5.384615384615385e-05,
|
150 |
+
"loss": 0.0138,
|
151 |
"step": 190
|
152 |
},
|
153 |
{
|
154 |
"epoch": 3.076923076923077,
|
155 |
+
"grad_norm": 0.07230933755636215,
|
156 |
"learning_rate": 4.615384615384616e-05,
|
157 |
+
"loss": 0.0359,
|
158 |
"step": 200
|
159 |
},
|
160 |
{
|
161 |
"epoch": 3.076923076923077,
|
162 |
"eval_accuracy": 0.9849624060150376,
|
163 |
+
"eval_loss": 0.05636923760175705,
|
164 |
+
"eval_runtime": 1.2039,
|
165 |
+
"eval_samples_per_second": 110.472,
|
166 |
+
"eval_steps_per_second": 14.12,
|
167 |
"step": 200
|
168 |
},
|
169 |
{
|
170 |
"epoch": 3.230769230769231,
|
171 |
+
"grad_norm": 0.07314398884773254,
|
172 |
"learning_rate": 3.846153846153846e-05,
|
173 |
+
"loss": 0.0143,
|
174 |
"step": 210
|
175 |
},
|
176 |
{
|
177 |
"epoch": 3.3846153846153846,
|
178 |
+
"grad_norm": 0.0658462792634964,
|
179 |
"learning_rate": 3.0769230769230774e-05,
|
180 |
+
"loss": 0.0122,
|
181 |
"step": 220
|
182 |
},
|
183 |
{
|
184 |
"epoch": 3.5384615384615383,
|
185 |
+
"grad_norm": 0.08664824813604355,
|
186 |
"learning_rate": 2.307692307692308e-05,
|
187 |
+
"loss": 0.0152,
|
188 |
"step": 230
|
189 |
},
|
190 |
{
|
191 |
"epoch": 3.6923076923076925,
|
192 |
+
"grad_norm": 0.06487639248371124,
|
193 |
"learning_rate": 1.5384615384615387e-05,
|
194 |
+
"loss": 0.0117,
|
195 |
"step": 240
|
196 |
},
|
197 |
{
|
198 |
"epoch": 3.8461538461538463,
|
199 |
+
"grad_norm": 0.06605548411607742,
|
200 |
"learning_rate": 7.692307692307694e-06,
|
201 |
+
"loss": 0.0114,
|
202 |
"step": 250
|
203 |
},
|
204 |
{
|
205 |
"epoch": 4.0,
|
206 |
+
"grad_norm": 0.05876839533448219,
|
207 |
"learning_rate": 0.0,
|
208 |
+
"loss": 0.0122,
|
209 |
"step": 260
|
210 |
},
|
211 |
{
|
212 |
"epoch": 4.0,
|
213 |
"step": 260,
|
214 |
"total_flos": 3.205097416476426e+17,
|
215 |
+
"train_loss": 0.10883640790214906,
|
216 |
+
"train_runtime": 98.1266,
|
217 |
+
"train_samples_per_second": 42.15,
|
218 |
+
"train_steps_per_second": 2.65
|
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:ca3afcee552df97ba46efe95b3759aa31467154c2d8d1354970d418da0d0e997
|
3 |
size 5112
|