pkr7098 commited on
Commit
1a98e5d
1 Parent(s): 9d84f64

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 +84 -84
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.7640
22
- - Accuracy: 0.6917
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.5106
24
+ - Accuracy: 0.7970
25
 
26
  ## Model description
27
 
all_results.json CHANGED
@@ -1,13 +1,13 @@
1
  {
2
  "epoch": 10.0,
3
- "eval_accuracy": 0.8045112781954887,
4
- "eval_loss": 0.518923282623291,
5
- "eval_runtime": 1.1582,
6
- "eval_samples_per_second": 114.83,
7
- "eval_steps_per_second": 14.677,
8
- "total_flos": 8.400578669044531e+17,
9
- "train_loss": 0.7230858435997596,
10
- "train_runtime": 200.7702,
11
- "train_samples_per_second": 51.502,
12
- "train_steps_per_second": 6.475
13
  }
 
1
  {
2
  "epoch": 10.0,
3
+ "eval_accuracy": 0.7969924812030075,
4
+ "eval_loss": 0.5105542540550232,
5
+ "eval_runtime": 1.1639,
6
+ "eval_samples_per_second": 114.269,
7
+ "eval_steps_per_second": 14.606,
8
+ "total_flos": 8.772706474360013e+17,
9
+ "train_loss": 0.7277990575937124,
10
+ "train_runtime": 205.3588,
11
+ "train_samples_per_second": 50.351,
12
+ "train_steps_per_second": 6.33
13
  }
eval_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "epoch": 10.0,
3
- "eval_accuracy": 0.8045112781954887,
4
- "eval_loss": 0.518923282623291,
5
- "eval_runtime": 1.1582,
6
- "eval_samples_per_second": 114.83,
7
- "eval_steps_per_second": 14.677
8
  }
 
1
  {
2
  "epoch": 10.0,
3
+ "eval_accuracy": 0.7969924812030075,
4
+ "eval_loss": 0.5105542540550232,
5
+ "eval_runtime": 1.1639,
6
+ "eval_samples_per_second": 114.269,
7
+ "eval_steps_per_second": 14.606
8
  }
train_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "epoch": 10.0,
3
- "total_flos": 8.400578669044531e+17,
4
- "train_loss": 0.7230858435997596,
5
- "train_runtime": 200.7702,
6
- "train_samples_per_second": 51.502,
7
- "train_steps_per_second": 6.475
8
  }
 
1
  {
2
  "epoch": 10.0,
3
+ "total_flos": 8.772706474360013e+17,
4
+ "train_loss": 0.7277990575937124,
5
+ "train_runtime": 205.3588,
6
+ "train_samples_per_second": 50.351,
7
+ "train_steps_per_second": 6.33
8
  }
trainer_state.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
- "best_metric": 0.518923282623291,
3
- "best_model_checkpoint": "./beans_outputs/checkpoint-1300",
4
  "epoch": 10.0,
5
  "eval_steps": 500,
6
  "global_step": 1300,
@@ -10,193 +10,193 @@
10
  "log_history": [
11
  {
12
  "epoch": 0.7692307692307693,
13
- "grad_norm": 5.921261310577393,
14
  "learning_rate": 5e-05,
15
- "loss": 1.1031,
16
  "step": 100
17
  },
18
  {
19
  "epoch": 1.0,
20
- "eval_accuracy": 0.5037593984962406,
21
- "eval_loss": 1.031303882598877,
22
- "eval_runtime": 1.1329,
23
- "eval_samples_per_second": 117.399,
24
- "eval_steps_per_second": 15.006,
25
  "step": 130
26
  },
27
  {
28
  "epoch": 1.5384615384615383,
29
- "grad_norm": 2.5376038551330566,
30
  "learning_rate": 5e-05,
31
- "loss": 1.0087,
32
  "step": 200
33
  },
34
  {
35
  "epoch": 2.0,
36
- "eval_accuracy": 0.5789473684210527,
37
- "eval_loss": 0.9253108501434326,
38
- "eval_runtime": 0.9794,
39
- "eval_samples_per_second": 135.804,
40
- "eval_steps_per_second": 17.358,
41
  "step": 260
42
  },
43
  {
44
  "epoch": 2.3076923076923075,
45
- "grad_norm": 4.594298839569092,
46
  "learning_rate": 5e-05,
47
- "loss": 0.8781,
48
  "step": 300
49
  },
50
  {
51
  "epoch": 3.0,
52
- "eval_accuracy": 0.6616541353383458,
53
- "eval_loss": 0.8822579979896545,
54
- "eval_runtime": 0.9528,
55
- "eval_samples_per_second": 139.584,
56
- "eval_steps_per_second": 17.842,
57
  "step": 390
58
  },
59
  {
60
  "epoch": 3.076923076923077,
61
- "grad_norm": 9.547410011291504,
62
  "learning_rate": 5e-05,
63
- "loss": 0.7773,
64
  "step": 400
65
  },
66
  {
67
  "epoch": 3.8461538461538463,
68
- "grad_norm": 2.8391215801239014,
69
  "learning_rate": 5e-05,
70
- "loss": 0.7127,
71
  "step": 500
72
  },
73
  {
74
  "epoch": 4.0,
75
- "eval_accuracy": 0.706766917293233,
76
- "eval_loss": 0.6853336691856384,
77
- "eval_runtime": 1.1565,
78
- "eval_samples_per_second": 114.999,
79
- "eval_steps_per_second": 14.699,
80
  "step": 520
81
  },
82
  {
83
  "epoch": 4.615384615384615,
84
- "grad_norm": 4.75039005279541,
85
  "learning_rate": 5e-05,
86
- "loss": 0.6784,
87
  "step": 600
88
  },
89
  {
90
  "epoch": 5.0,
91
- "eval_accuracy": 0.7142857142857143,
92
- "eval_loss": 0.7131139039993286,
93
- "eval_runtime": 1.1416,
94
- "eval_samples_per_second": 116.5,
95
- "eval_steps_per_second": 14.891,
96
  "step": 650
97
  },
98
  {
99
  "epoch": 5.384615384615385,
100
- "grad_norm": 6.33519983291626,
101
  "learning_rate": 5e-05,
102
- "loss": 0.6864,
103
  "step": 700
104
  },
105
  {
106
  "epoch": 6.0,
107
- "eval_accuracy": 0.6992481203007519,
108
- "eval_loss": 0.7313814759254456,
109
- "eval_runtime": 1.0995,
110
- "eval_samples_per_second": 120.962,
111
- "eval_steps_per_second": 15.461,
112
  "step": 780
113
  },
114
  {
115
  "epoch": 6.153846153846154,
116
- "grad_norm": 5.234774589538574,
117
  "learning_rate": 5e-05,
118
- "loss": 0.6133,
119
  "step": 800
120
  },
121
  {
122
  "epoch": 6.923076923076923,
123
- "grad_norm": 17.76725196838379,
124
  "learning_rate": 5e-05,
125
- "loss": 0.5986,
126
  "step": 900
127
  },
128
  {
129
  "epoch": 7.0,
130
- "eval_accuracy": 0.7218045112781954,
131
- "eval_loss": 0.6223586201667786,
132
- "eval_runtime": 0.9687,
133
- "eval_samples_per_second": 137.298,
134
- "eval_steps_per_second": 17.549,
135
  "step": 910
136
  },
137
  {
138
  "epoch": 7.6923076923076925,
139
- "grad_norm": 4.8591203689575195,
140
  "learning_rate": 5e-05,
141
- "loss": 0.5956,
142
  "step": 1000
143
  },
144
  {
145
  "epoch": 8.0,
146
- "eval_accuracy": 0.7744360902255639,
147
- "eval_loss": 0.526090145111084,
148
- "eval_runtime": 1.1771,
149
- "eval_samples_per_second": 112.993,
150
- "eval_steps_per_second": 14.443,
151
  "step": 1040
152
  },
153
  {
154
  "epoch": 8.461538461538462,
155
- "grad_norm": 8.905884742736816,
156
  "learning_rate": 5e-05,
157
- "loss": 0.6009,
158
  "step": 1100
159
  },
160
  {
161
  "epoch": 9.0,
162
- "eval_accuracy": 0.8120300751879699,
163
- "eval_loss": 0.5274345874786377,
164
- "eval_runtime": 1.0432,
165
- "eval_samples_per_second": 127.497,
166
- "eval_steps_per_second": 16.297,
167
  "step": 1170
168
  },
169
  {
170
  "epoch": 9.23076923076923,
171
- "grad_norm": 7.226690292358398,
172
  "learning_rate": 5e-05,
173
- "loss": 0.6035,
174
  "step": 1200
175
  },
176
  {
177
  "epoch": 10.0,
178
- "grad_norm": 51.65995407104492,
179
  "learning_rate": 5e-05,
180
- "loss": 0.5433,
181
  "step": 1300
182
  },
183
  {
184
  "epoch": 10.0,
185
- "eval_accuracy": 0.8045112781954887,
186
- "eval_loss": 0.518923282623291,
187
- "eval_runtime": 1.0446,
188
- "eval_samples_per_second": 127.324,
189
- "eval_steps_per_second": 16.275,
190
  "step": 1300
191
  },
192
  {
193
  "epoch": 10.0,
194
  "step": 1300,
195
- "total_flos": 8.400578669044531e+17,
196
- "train_loss": 0.7230858435997596,
197
- "train_runtime": 200.7702,
198
- "train_samples_per_second": 51.502,
199
- "train_steps_per_second": 6.475
200
  }
201
  ],
202
  "logging_steps": 100,
@@ -216,7 +216,7 @@
216
  "attributes": {}
217
  }
218
  },
219
- "total_flos": 8.400578669044531e+17,
220
  "train_batch_size": 8,
221
  "trial_name": null,
222
  "trial_params": null
 
1
  {
2
+ "best_metric": 0.5105542540550232,
3
+ "best_model_checkpoint": "./beans_outputs/checkpoint-1170",
4
  "epoch": 10.0,
5
  "eval_steps": 500,
6
  "global_step": 1300,
 
10
  "log_history": [
11
  {
12
  "epoch": 0.7692307692307693,
13
+ "grad_norm": 7.213888168334961,
14
  "learning_rate": 5e-05,
15
+ "loss": 1.094,
16
  "step": 100
17
  },
18
  {
19
  "epoch": 1.0,
20
+ "eval_accuracy": 0.518796992481203,
21
+ "eval_loss": 1.0090891122817993,
22
+ "eval_runtime": 1.1391,
23
+ "eval_samples_per_second": 116.756,
24
+ "eval_steps_per_second": 14.924,
25
  "step": 130
26
  },
27
  {
28
  "epoch": 1.5384615384615383,
29
+ "grad_norm": 2.6927850246429443,
30
  "learning_rate": 5e-05,
31
+ "loss": 1.0,
32
  "step": 200
33
  },
34
  {
35
  "epoch": 2.0,
36
+ "eval_accuracy": 0.6090225563909775,
37
+ "eval_loss": 0.880857527256012,
38
+ "eval_runtime": 1.158,
39
+ "eval_samples_per_second": 114.856,
40
+ "eval_steps_per_second": 14.681,
41
  "step": 260
42
  },
43
  {
44
  "epoch": 2.3076923076923075,
45
+ "grad_norm": 6.594575881958008,
46
  "learning_rate": 5e-05,
47
+ "loss": 0.8928,
48
  "step": 300
49
  },
50
  {
51
  "epoch": 3.0,
52
+ "eval_accuracy": 0.6390977443609023,
53
+ "eval_loss": 0.8694148063659668,
54
+ "eval_runtime": 1.1236,
55
+ "eval_samples_per_second": 118.367,
56
+ "eval_steps_per_second": 15.13,
57
  "step": 390
58
  },
59
  {
60
  "epoch": 3.076923076923077,
61
+ "grad_norm": 7.34794807434082,
62
  "learning_rate": 5e-05,
63
+ "loss": 0.7855,
64
  "step": 400
65
  },
66
  {
67
  "epoch": 3.8461538461538463,
68
+ "grad_norm": 4.2354817390441895,
69
  "learning_rate": 5e-05,
70
+ "loss": 0.7179,
71
  "step": 500
72
  },
73
  {
74
  "epoch": 4.0,
75
+ "eval_accuracy": 0.7142857142857143,
76
+ "eval_loss": 0.6974284052848816,
77
+ "eval_runtime": 1.1571,
78
+ "eval_samples_per_second": 114.947,
79
+ "eval_steps_per_second": 14.692,
80
  "step": 520
81
  },
82
  {
83
  "epoch": 4.615384615384615,
84
+ "grad_norm": 5.142866611480713,
85
  "learning_rate": 5e-05,
86
+ "loss": 0.6783,
87
  "step": 600
88
  },
89
  {
90
  "epoch": 5.0,
91
+ "eval_accuracy": 0.7518796992481203,
92
+ "eval_loss": 0.669804573059082,
93
+ "eval_runtime": 1.0102,
94
+ "eval_samples_per_second": 131.662,
95
+ "eval_steps_per_second": 16.829,
96
  "step": 650
97
  },
98
  {
99
  "epoch": 5.384615384615385,
100
+ "grad_norm": 6.277930736541748,
101
  "learning_rate": 5e-05,
102
+ "loss": 0.7052,
103
  "step": 700
104
  },
105
  {
106
  "epoch": 6.0,
107
+ "eval_accuracy": 0.7518796992481203,
108
+ "eval_loss": 0.6211526989936829,
109
+ "eval_runtime": 1.1627,
110
+ "eval_samples_per_second": 114.39,
111
+ "eval_steps_per_second": 14.621,
112
  "step": 780
113
  },
114
  {
115
  "epoch": 6.153846153846154,
116
+ "grad_norm": 7.9038262367248535,
117
  "learning_rate": 5e-05,
118
+ "loss": 0.636,
119
  "step": 800
120
  },
121
  {
122
  "epoch": 6.923076923076923,
123
+ "grad_norm": 15.989542007446289,
124
  "learning_rate": 5e-05,
125
+ "loss": 0.608,
126
  "step": 900
127
  },
128
  {
129
  "epoch": 7.0,
130
+ "eval_accuracy": 0.706766917293233,
131
+ "eval_loss": 0.7636638283729553,
132
+ "eval_runtime": 1.1935,
133
+ "eval_samples_per_second": 111.438,
134
+ "eval_steps_per_second": 14.244,
135
  "step": 910
136
  },
137
  {
138
  "epoch": 7.6923076923076925,
139
+ "grad_norm": 5.844383716583252,
140
  "learning_rate": 5e-05,
141
+ "loss": 0.6457,
142
  "step": 1000
143
  },
144
  {
145
  "epoch": 8.0,
146
+ "eval_accuracy": 0.8195488721804511,
147
+ "eval_loss": 0.5296058654785156,
148
+ "eval_runtime": 1.1689,
149
+ "eval_samples_per_second": 113.785,
150
+ "eval_steps_per_second": 14.544,
151
  "step": 1040
152
  },
153
  {
154
  "epoch": 8.461538461538462,
155
+ "grad_norm": 21.204557418823242,
156
  "learning_rate": 5e-05,
157
+ "loss": 0.5747,
158
  "step": 1100
159
  },
160
  {
161
  "epoch": 9.0,
162
+ "eval_accuracy": 0.7969924812030075,
163
+ "eval_loss": 0.5105542540550232,
164
+ "eval_runtime": 1.037,
165
+ "eval_samples_per_second": 128.258,
166
+ "eval_steps_per_second": 16.394,
167
  "step": 1170
168
  },
169
  {
170
  "epoch": 9.23076923076923,
171
+ "grad_norm": 15.454485893249512,
172
  "learning_rate": 5e-05,
173
+ "loss": 0.5939,
174
  "step": 1200
175
  },
176
  {
177
  "epoch": 10.0,
178
+ "grad_norm": 12.411216735839844,
179
  "learning_rate": 5e-05,
180
+ "loss": 0.5294,
181
  "step": 1300
182
  },
183
  {
184
  "epoch": 10.0,
185
+ "eval_accuracy": 0.6917293233082706,
186
+ "eval_loss": 0.7639761567115784,
187
+ "eval_runtime": 1.0303,
188
+ "eval_samples_per_second": 129.085,
189
+ "eval_steps_per_second": 16.5,
190
  "step": 1300
191
  },
192
  {
193
  "epoch": 10.0,
194
  "step": 1300,
195
+ "total_flos": 8.772706474360013e+17,
196
+ "train_loss": 0.7277990575937124,
197
+ "train_runtime": 205.3588,
198
+ "train_samples_per_second": 50.351,
199
+ "train_steps_per_second": 6.33
200
  }
201
  ],
202
  "logging_steps": 100,
 
216
  "attributes": {}
217
  }
218
  },
219
+ "total_flos": 8.772706474360013e+17,
220
  "train_batch_size": 8,
221
  "trial_name": null,
222
  "trial_params": null