pkr7098 commited on
Commit
5f442ad
·
verified ·
1 Parent(s): 32b0b46

End of training

Browse files
Files changed (5) hide show
  1. README.md +5 -3
  2. all_results.json +10 -10
  3. eval_results.json +5 -5
  4. train_results.json +5 -5
  5. trainer_state.json +80 -80
README.md CHANGED
@@ -5,6 +5,8 @@ license: apache-2.0
5
  metrics:
6
  - accuracy
7
  tags:
 
 
8
  - generated_from_trainer
9
  model-index:
10
  - name: only-lora-beans-vit-base-patch16-224-in21k
@@ -16,10 +18,10 @@ should probably proofread and complete it, then remove this comment. -->
16
 
17
  # only-lora-beans-vit-base-patch16-224-in21k
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.5903
22
- - Accuracy: 0.7895
23
 
24
  ## Model description
25
 
 
5
  metrics:
6
  - accuracy
7
  tags:
8
+ - image-classification
9
+ - vision
10
  - generated_from_trainer
11
  model-index:
12
  - name: only-lora-beans-vit-base-patch16-224-in21k
 
18
 
19
  # only-lora-beans-vit-base-patch16-224-in21k
20
 
21
+ 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.
22
  It achieves the following results on the evaluation set:
23
+ - Loss: 0.5416
24
+ - Accuracy: 0.7744
25
 
26
  ## Model description
27
 
all_results.json CHANGED
@@ -1,13 +1,13 @@
1
  {
2
  "epoch": 10.0,
3
- "eval_accuracy": 0.7894736842105263,
4
- "eval_loss": 0.5369813442230225,
5
- "eval_runtime": 1.1887,
6
- "eval_samples_per_second": 111.89,
7
- "eval_steps_per_second": 14.302,
8
- "total_flos": 8.772706474360013e+17,
9
- "train_loss": 0.7462210376446063,
10
- "train_runtime": 205.5107,
11
- "train_samples_per_second": 50.314,
12
- "train_steps_per_second": 6.326
13
  }
 
1
  {
2
  "epoch": 10.0,
3
+ "eval_accuracy": 0.7744360902255639,
4
+ "eval_loss": 0.5416202545166016,
5
+ "eval_runtime": 1.0948,
6
+ "eval_samples_per_second": 121.481,
7
+ "eval_steps_per_second": 15.528,
8
+ "total_flos": 8.400578669044531e+17,
9
+ "train_loss": 0.7472451694195087,
10
+ "train_runtime": 219.7142,
11
+ "train_samples_per_second": 47.061,
12
+ "train_steps_per_second": 5.917
13
  }
eval_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "epoch": 10.0,
3
- "eval_accuracy": 0.7894736842105263,
4
- "eval_loss": 0.5369813442230225,
5
- "eval_runtime": 1.1887,
6
- "eval_samples_per_second": 111.89,
7
- "eval_steps_per_second": 14.302
8
  }
 
1
  {
2
  "epoch": 10.0,
3
+ "eval_accuracy": 0.7744360902255639,
4
+ "eval_loss": 0.5416202545166016,
5
+ "eval_runtime": 1.0948,
6
+ "eval_samples_per_second": 121.481,
7
+ "eval_steps_per_second": 15.528
8
  }
train_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "epoch": 10.0,
3
- "total_flos": 8.772706474360013e+17,
4
- "train_loss": 0.7462210376446063,
5
- "train_runtime": 205.5107,
6
- "train_samples_per_second": 50.314,
7
- "train_steps_per_second": 6.326
8
  }
 
1
  {
2
  "epoch": 10.0,
3
+ "total_flos": 8.400578669044531e+17,
4
+ "train_loss": 0.7472451694195087,
5
+ "train_runtime": 219.7142,
6
+ "train_samples_per_second": 47.061,
7
+ "train_steps_per_second": 5.917
8
  }
trainer_state.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "best_metric": 0.5369813442230225,
3
  "best_model_checkpoint": "./beans_outputs/checkpoint-1170",
4
  "epoch": 10.0,
5
  "eval_steps": 500,
@@ -10,193 +10,193 @@
10
  "log_history": [
11
  {
12
  "epoch": 0.7692307692307693,
13
- "grad_norm": 3.450658082962036,
14
  "learning_rate": 5e-05,
15
- "loss": 1.0967,
16
  "step": 100
17
  },
18
  {
19
  "epoch": 1.0,
20
- "eval_accuracy": 0.5413533834586466,
21
- "eval_loss": 0.9973052740097046,
22
- "eval_runtime": 0.9887,
23
- "eval_samples_per_second": 134.519,
24
- "eval_steps_per_second": 17.194,
25
  "step": 130
26
  },
27
  {
28
  "epoch": 1.5384615384615383,
29
- "grad_norm": 1.2139726877212524,
30
  "learning_rate": 5e-05,
31
- "loss": 1.0161,
32
  "step": 200
33
  },
34
  {
35
  "epoch": 2.0,
36
- "eval_accuracy": 0.5789473684210527,
37
- "eval_loss": 0.9221953749656677,
38
- "eval_runtime": 1.1584,
39
- "eval_samples_per_second": 114.811,
40
- "eval_steps_per_second": 14.675,
41
  "step": 260
42
  },
43
  {
44
  "epoch": 2.3076923076923075,
45
- "grad_norm": 1.6421459913253784,
46
  "learning_rate": 5e-05,
47
- "loss": 0.9472,
48
  "step": 300
49
  },
50
  {
51
  "epoch": 3.0,
52
  "eval_accuracy": 0.6390977443609023,
53
- "eval_loss": 0.8625620007514954,
54
- "eval_runtime": 1.1687,
55
- "eval_samples_per_second": 113.798,
56
- "eval_steps_per_second": 14.546,
57
  "step": 390
58
  },
59
  {
60
  "epoch": 3.076923076923077,
61
- "grad_norm": 2.6952731609344482,
62
  "learning_rate": 5e-05,
63
- "loss": 0.8456,
64
  "step": 400
65
  },
66
  {
67
  "epoch": 3.8461538461538463,
68
- "grad_norm": 1.875662088394165,
69
  "learning_rate": 5e-05,
70
- "loss": 0.7532,
71
  "step": 500
72
  },
73
  {
74
  "epoch": 4.0,
75
- "eval_accuracy": 0.7142857142857143,
76
- "eval_loss": 0.7298586368560791,
77
- "eval_runtime": 1.176,
78
- "eval_samples_per_second": 113.091,
79
- "eval_steps_per_second": 14.455,
80
  "step": 520
81
  },
82
  {
83
  "epoch": 4.615384615384615,
84
- "grad_norm": 2.776125192642212,
85
  "learning_rate": 5e-05,
86
- "loss": 0.6792,
87
  "step": 600
88
  },
89
  {
90
  "epoch": 5.0,
91
  "eval_accuracy": 0.706766917293233,
92
- "eval_loss": 0.6639184951782227,
93
- "eval_runtime": 1.2266,
94
- "eval_samples_per_second": 108.429,
95
- "eval_steps_per_second": 13.859,
96
  "step": 650
97
  },
98
  {
99
  "epoch": 5.384615384615385,
100
- "grad_norm": 2.474877119064331,
101
  "learning_rate": 5e-05,
102
- "loss": 0.6645,
103
  "step": 700
104
  },
105
  {
106
  "epoch": 6.0,
107
  "eval_accuracy": 0.7218045112781954,
108
- "eval_loss": 0.6237967610359192,
109
- "eval_runtime": 1.15,
110
- "eval_samples_per_second": 115.652,
111
- "eval_steps_per_second": 14.783,
112
  "step": 780
113
  },
114
  {
115
  "epoch": 6.153846153846154,
116
- "grad_norm": 2.956679344177246,
117
  "learning_rate": 5e-05,
118
- "loss": 0.6473,
119
  "step": 800
120
  },
121
  {
122
  "epoch": 6.923076923076923,
123
- "grad_norm": 9.533896446228027,
124
  "learning_rate": 5e-05,
125
- "loss": 0.6056,
126
  "step": 900
127
  },
128
  {
129
  "epoch": 7.0,
130
- "eval_accuracy": 0.7443609022556391,
131
- "eval_loss": 0.6903008818626404,
132
- "eval_runtime": 1.1553,
133
- "eval_samples_per_second": 115.117,
134
- "eval_steps_per_second": 14.714,
135
  "step": 910
136
  },
137
  {
138
  "epoch": 7.6923076923076925,
139
- "grad_norm": 4.010281085968018,
140
  "learning_rate": 5e-05,
141
- "loss": 0.614,
142
  "step": 1000
143
  },
144
  {
145
  "epoch": 8.0,
146
- "eval_accuracy": 0.706766917293233,
147
- "eval_loss": 0.6278253793716431,
148
- "eval_runtime": 1.1805,
149
- "eval_samples_per_second": 112.66,
150
- "eval_steps_per_second": 14.4,
151
  "step": 1040
152
  },
153
  {
154
  "epoch": 8.461538461538462,
155
- "grad_norm": 2.6526243686676025,
156
  "learning_rate": 5e-05,
157
- "loss": 0.6298,
158
  "step": 1100
159
  },
160
  {
161
  "epoch": 9.0,
162
- "eval_accuracy": 0.7894736842105263,
163
- "eval_loss": 0.5369813442230225,
164
- "eval_runtime": 0.995,
165
- "eval_samples_per_second": 133.666,
166
- "eval_steps_per_second": 17.085,
167
  "step": 1170
168
  },
169
  {
170
  "epoch": 9.23076923076923,
171
- "grad_norm": 4.809407711029053,
172
  "learning_rate": 5e-05,
173
- "loss": 0.6149,
174
  "step": 1200
175
  },
176
  {
177
  "epoch": 10.0,
178
- "grad_norm": 9.877020835876465,
179
  "learning_rate": 5e-05,
180
- "loss": 0.5867,
181
  "step": 1300
182
  },
183
  {
184
  "epoch": 10.0,
185
- "eval_accuracy": 0.7593984962406015,
186
- "eval_loss": 0.579809308052063,
187
- "eval_runtime": 1.1918,
188
- "eval_samples_per_second": 111.6,
189
- "eval_steps_per_second": 14.265,
190
  "step": 1300
191
  },
192
  {
193
  "epoch": 10.0,
194
  "step": 1300,
195
- "total_flos": 8.772706474360013e+17,
196
- "train_loss": 0.7462210376446063,
197
- "train_runtime": 205.5107,
198
- "train_samples_per_second": 50.314,
199
- "train_steps_per_second": 6.326
200
  }
201
  ],
202
  "logging_steps": 100,
@@ -216,7 +216,7 @@
216
  "attributes": {}
217
  }
218
  },
219
- "total_flos": 8.772706474360013e+17,
220
  "train_batch_size": 8,
221
  "trial_name": null,
222
  "trial_params": null
 
1
  {
2
+ "best_metric": 0.5416202545166016,
3
  "best_model_checkpoint": "./beans_outputs/checkpoint-1170",
4
  "epoch": 10.0,
5
  "eval_steps": 500,
 
10
  "log_history": [
11
  {
12
  "epoch": 0.7692307692307693,
13
+ "grad_norm": 3.9101290702819824,
14
  "learning_rate": 5e-05,
15
+ "loss": 1.1012,
16
  "step": 100
17
  },
18
  {
19
  "epoch": 1.0,
20
+ "eval_accuracy": 0.5112781954887218,
21
+ "eval_loss": 1.0127754211425781,
22
+ "eval_runtime": 1.0349,
23
+ "eval_samples_per_second": 128.515,
24
+ "eval_steps_per_second": 16.427,
25
  "step": 130
26
  },
27
  {
28
  "epoch": 1.5384615384615383,
29
+ "grad_norm": 1.3854057788848877,
30
  "learning_rate": 5e-05,
31
+ "loss": 1.0265,
32
  "step": 200
33
  },
34
  {
35
  "epoch": 2.0,
36
+ "eval_accuracy": 0.6090225563909775,
37
+ "eval_loss": 0.8759572505950928,
38
+ "eval_runtime": 1.0786,
39
+ "eval_samples_per_second": 123.311,
40
+ "eval_steps_per_second": 15.762,
41
  "step": 260
42
  },
43
  {
44
  "epoch": 2.3076923076923075,
45
+ "grad_norm": 2.5720674991607666,
46
  "learning_rate": 5e-05,
47
+ "loss": 0.9263,
48
  "step": 300
49
  },
50
  {
51
  "epoch": 3.0,
52
  "eval_accuracy": 0.6390977443609023,
53
+ "eval_loss": 0.8891911506652832,
54
+ "eval_runtime": 1.1187,
55
+ "eval_samples_per_second": 118.885,
56
+ "eval_steps_per_second": 15.196,
57
  "step": 390
58
  },
59
  {
60
  "epoch": 3.076923076923077,
61
+ "grad_norm": 4.826686382293701,
62
  "learning_rate": 5e-05,
63
+ "loss": 0.8131,
64
  "step": 400
65
  },
66
  {
67
  "epoch": 3.8461538461538463,
68
+ "grad_norm": 2.224466323852539,
69
  "learning_rate": 5e-05,
70
+ "loss": 0.7348,
71
  "step": 500
72
  },
73
  {
74
  "epoch": 4.0,
75
+ "eval_accuracy": 0.706766917293233,
76
+ "eval_loss": 0.7197765111923218,
77
+ "eval_runtime": 1.2623,
78
+ "eval_samples_per_second": 105.362,
79
+ "eval_steps_per_second": 13.467,
80
  "step": 520
81
  },
82
  {
83
  "epoch": 4.615384615384615,
84
+ "grad_norm": 3.2183878421783447,
85
  "learning_rate": 5e-05,
86
+ "loss": 0.6856,
87
  "step": 600
88
  },
89
  {
90
  "epoch": 5.0,
91
  "eval_accuracy": 0.706766917293233,
92
+ "eval_loss": 0.7358166575431824,
93
+ "eval_runtime": 1.192,
94
+ "eval_samples_per_second": 111.582,
95
+ "eval_steps_per_second": 14.262,
96
  "step": 650
97
  },
98
  {
99
  "epoch": 5.384615384615385,
100
+ "grad_norm": 5.501096248626709,
101
  "learning_rate": 5e-05,
102
+ "loss": 0.728,
103
  "step": 700
104
  },
105
  {
106
  "epoch": 6.0,
107
  "eval_accuracy": 0.7218045112781954,
108
+ "eval_loss": 0.6856114268302917,
109
+ "eval_runtime": 1.0117,
110
+ "eval_samples_per_second": 131.468,
111
+ "eval_steps_per_second": 16.804,
112
  "step": 780
113
  },
114
  {
115
  "epoch": 6.153846153846154,
116
+ "grad_norm": 3.860182523727417,
117
  "learning_rate": 5e-05,
118
+ "loss": 0.6488,
119
  "step": 800
120
  },
121
  {
122
  "epoch": 6.923076923076923,
123
+ "grad_norm": 7.866222858428955,
124
  "learning_rate": 5e-05,
125
+ "loss": 0.6221,
126
  "step": 900
127
  },
128
  {
129
  "epoch": 7.0,
130
+ "eval_accuracy": 0.6917293233082706,
131
+ "eval_loss": 0.8288138508796692,
132
+ "eval_runtime": 1.7977,
133
+ "eval_samples_per_second": 73.984,
134
+ "eval_steps_per_second": 9.457,
135
  "step": 910
136
  },
137
  {
138
  "epoch": 7.6923076923076925,
139
+ "grad_norm": 3.9533588886260986,
140
  "learning_rate": 5e-05,
141
+ "loss": 0.6347,
142
  "step": 1000
143
  },
144
  {
145
  "epoch": 8.0,
146
+ "eval_accuracy": 0.7368421052631579,
147
+ "eval_loss": 0.5764672756195068,
148
+ "eval_runtime": 1.0499,
149
+ "eval_samples_per_second": 126.675,
150
+ "eval_steps_per_second": 16.192,
151
  "step": 1040
152
  },
153
  {
154
  "epoch": 8.461538461538462,
155
+ "grad_norm": 9.031426429748535,
156
  "learning_rate": 5e-05,
157
+ "loss": 0.6217,
158
  "step": 1100
159
  },
160
  {
161
  "epoch": 9.0,
162
+ "eval_accuracy": 0.7744360902255639,
163
+ "eval_loss": 0.5416202545166016,
164
+ "eval_runtime": 1.0499,
165
+ "eval_samples_per_second": 126.682,
166
+ "eval_steps_per_second": 16.192,
167
  "step": 1170
168
  },
169
  {
170
  "epoch": 9.23076923076923,
171
+ "grad_norm": 7.125640392303467,
172
  "learning_rate": 5e-05,
173
+ "loss": 0.6099,
174
  "step": 1200
175
  },
176
  {
177
  "epoch": 10.0,
178
+ "grad_norm": 15.404199600219727,
179
  "learning_rate": 5e-05,
180
+ "loss": 0.5615,
181
  "step": 1300
182
  },
183
  {
184
  "epoch": 10.0,
185
+ "eval_accuracy": 0.7894736842105263,
186
+ "eval_loss": 0.5903372764587402,
187
+ "eval_runtime": 1.0014,
188
+ "eval_samples_per_second": 132.812,
189
+ "eval_steps_per_second": 16.976,
190
  "step": 1300
191
  },
192
  {
193
  "epoch": 10.0,
194
  "step": 1300,
195
+ "total_flos": 8.400578669044531e+17,
196
+ "train_loss": 0.7472451694195087,
197
+ "train_runtime": 219.7142,
198
+ "train_samples_per_second": 47.061,
199
+ "train_steps_per_second": 5.917
200
  }
201
  ],
202
  "logging_steps": 100,
 
216
  "attributes": {}
217
  }
218
  },
219
+ "total_flos": 8.400578669044531e+17,
220
  "train_batch_size": 8,
221
  "trial_name": null,
222
  "trial_params": null