sharren commited on
Commit
8f35c79
1 Parent(s): 8bf8789

🍻 cheers

Browse files
README.md CHANGED
@@ -2,6 +2,7 @@
2
  license: apache-2.0
3
  base_model: google/vit-base-patch16-224
4
  tags:
 
5
  - generated_from_trainer
6
  metrics:
7
  - accuracy
@@ -18,13 +19,13 @@ should probably proofread and complete it, then remove this comment. -->
18
 
19
  # vit-lr-cosine-restarts
20
 
21
- This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on an unknown dataset.
22
  It achieves the following results on the evaluation set:
23
- - Loss: 0.7236
24
- - Accuracy: 0.8696
25
- - Precision: 0.8655
26
- - Recall: 0.8696
27
- - F1: 0.8661
28
 
29
  ## Model description
30
 
 
2
  license: apache-2.0
3
  base_model: google/vit-base-patch16-224
4
  tags:
5
+ - image-classification
6
  - generated_from_trainer
7
  metrics:
8
  - accuracy
 
19
 
20
  # vit-lr-cosine-restarts
21
 
22
+ This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the skin-cancer dataset.
23
  It achieves the following results on the evaluation set:
24
+ - Loss: 0.5117
25
+ - Accuracy: 0.8221
26
+ - Precision: 0.8347
27
+ - Recall: 0.8221
28
+ - F1: 0.8100
29
 
30
  ## Model description
31
 
all_results.json CHANGED
@@ -1,16 +1,16 @@
1
  {
2
  "epoch": 12.0,
3
- "eval_accuracy": 0.8262829403606102,
4
- "eval_f1": 0.8158028786365703,
5
- "eval_loss": 0.49287769198417664,
6
- "eval_precision": 0.8255125137698959,
7
- "eval_recall": 0.8262829403606102,
8
- "eval_runtime": 38.4698,
9
- "eval_samples_per_second": 74.968,
10
- "eval_steps_per_second": 9.384,
11
  "total_flos": 4.768760767819088e+18,
12
- "train_loss": 0.17886438471413105,
13
- "train_runtime": 1744.4117,
14
- "train_samples_per_second": 35.276,
15
- "train_steps_per_second": 2.208
16
  }
 
1
  {
2
  "epoch": 12.0,
3
+ "eval_accuracy": 0.8221220527045769,
4
+ "eval_f1": 0.8099830282273331,
5
+ "eval_loss": 0.5117006897926331,
6
+ "eval_precision": 0.8347375649374938,
7
+ "eval_recall": 0.8221220527045769,
8
+ "eval_runtime": 38.1667,
9
+ "eval_samples_per_second": 75.563,
10
+ "eval_steps_per_second": 9.459,
11
  "total_flos": 4.768760767819088e+18,
12
+ "train_loss": 0.17854708074838666,
13
+ "train_runtime": 1730.8935,
14
+ "train_samples_per_second": 35.552,
15
+ "train_steps_per_second": 2.225
16
  }
eval_results.json CHANGED
@@ -1,11 +1,11 @@
1
  {
2
  "epoch": 12.0,
3
- "eval_accuracy": 0.8262829403606102,
4
- "eval_f1": 0.8158028786365703,
5
- "eval_loss": 0.49287769198417664,
6
- "eval_precision": 0.8255125137698959,
7
- "eval_recall": 0.8262829403606102,
8
- "eval_runtime": 38.4698,
9
- "eval_samples_per_second": 74.968,
10
- "eval_steps_per_second": 9.384
11
  }
 
1
  {
2
  "epoch": 12.0,
3
+ "eval_accuracy": 0.8221220527045769,
4
+ "eval_f1": 0.8099830282273331,
5
+ "eval_loss": 0.5117006897926331,
6
+ "eval_precision": 0.8347375649374938,
7
+ "eval_recall": 0.8221220527045769,
8
+ "eval_runtime": 38.1667,
9
+ "eval_samples_per_second": 75.563,
10
+ "eval_steps_per_second": 9.459
11
  }
runs/Mar20_17-24-10_f2e1fee5f9b2/events.out.tfevents.1710957259.f2e1fee5f9b2.2315.9 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c2516b6e3d47288b7b87f5e4159d8e96f87ac82a85f00f034e372df42ea69bb
3
+ size 560
train_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "epoch": 12.0,
3
  "total_flos": 4.768760767819088e+18,
4
- "train_loss": 0.17886438471413105,
5
- "train_runtime": 1744.4117,
6
- "train_samples_per_second": 35.276,
7
- "train_steps_per_second": 2.208
8
  }
 
1
  {
2
  "epoch": 12.0,
3
  "total_flos": 4.768760767819088e+18,
4
+ "train_loss": 0.17854708074838666,
5
+ "train_runtime": 1730.8935,
6
+ "train_samples_per_second": 35.552,
7
+ "train_steps_per_second": 2.225
8
  }
trainer_state.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "best_metric": 0.49287769198417664,
3
  "best_model_checkpoint": "./vit-lr-cosine-restarts/checkpoint-642",
4
  "epoch": 12.0,
5
  "eval_steps": 500,
@@ -10,240 +10,240 @@
10
  "log_history": [
11
  {
12
  "epoch": 1.0,
13
- "grad_norm": 6.734107971191406,
14
  "learning_rate": 4.1428571428571437e-05,
15
- "loss": 0.8832,
16
  "step": 321
17
  },
18
  {
19
  "epoch": 1.0,
20
- "eval_accuracy": 0.7999306518723994,
21
- "eval_f1": 0.7874950822007427,
22
- "eval_loss": 0.5542528629302979,
23
- "eval_precision": 0.8092011027858591,
24
- "eval_recall": 0.7999306518723994,
25
- "eval_runtime": 37.6681,
26
- "eval_samples_per_second": 76.563,
27
- "eval_steps_per_second": 9.584,
28
  "step": 321
29
  },
30
  {
31
  "epoch": 2.0,
32
- "grad_norm": 6.56775426864624,
33
  "learning_rate": 8.311688311688312e-05,
34
- "loss": 0.4647,
35
  "step": 642
36
  },
37
  {
38
  "epoch": 2.0,
39
- "eval_accuracy": 0.8262829403606102,
40
- "eval_f1": 0.8158028786365703,
41
- "eval_loss": 0.49287769198417664,
42
- "eval_precision": 0.8255125137698959,
43
- "eval_recall": 0.8262829403606102,
44
- "eval_runtime": 37.8104,
45
- "eval_samples_per_second": 76.275,
46
- "eval_steps_per_second": 9.548,
47
  "step": 642
48
  },
49
  {
50
  "epoch": 3.0,
51
- "grad_norm": 2.852621078491211,
52
- "learning_rate": 9.171100544010777e-05,
53
- "loss": 0.3465,
54
  "step": 963
55
  },
56
  {
57
  "epoch": 3.0,
58
- "eval_accuracy": 0.8214285714285714,
59
- "eval_f1": 0.8025208154787117,
60
- "eval_loss": 0.6518540978431702,
61
- "eval_precision": 0.8133669627117774,
62
- "eval_recall": 0.8214285714285714,
63
- "eval_runtime": 37.046,
64
- "eval_samples_per_second": 77.849,
65
- "eval_steps_per_second": 9.745,
66
  "step": 963
67
  },
68
  {
69
  "epoch": 4.0,
70
- "grad_norm": 9.967479705810547,
71
- "learning_rate": 5.025483282385923e-05,
72
- "loss": 0.1493,
73
  "step": 1284
74
  },
75
  {
76
  "epoch": 4.0,
77
- "eval_accuracy": 0.8401525658807212,
78
- "eval_f1": 0.8265360989719667,
79
- "eval_loss": 0.6805647611618042,
80
- "eval_precision": 0.8385311261178104,
81
- "eval_recall": 0.8401525658807212,
82
- "eval_runtime": 37.4024,
83
- "eval_samples_per_second": 77.107,
84
- "eval_steps_per_second": 9.652,
85
  "step": 1284
86
  },
87
  {
88
  "epoch": 5.0,
89
- "grad_norm": 0.2563266158103943,
90
- "learning_rate": 8.572203615936175e-06,
91
- "loss": 0.0211,
92
  "step": 1605
93
  },
94
  {
95
  "epoch": 5.0,
96
- "eval_accuracy": 0.8762135922330098,
97
- "eval_f1": 0.8742202382058613,
98
- "eval_loss": 0.5605077743530273,
99
- "eval_precision": 0.8749370661972383,
100
- "eval_recall": 0.8762135922330098,
101
- "eval_runtime": 37.3835,
102
- "eval_samples_per_second": 77.146,
103
- "eval_steps_per_second": 9.657,
104
  "step": 1605
105
  },
106
  {
107
  "epoch": 6.0,
108
- "grad_norm": 0.11774127185344696,
109
- "learning_rate": 9.629571142901386e-05,
110
- "loss": 0.0084,
111
  "step": 1926
112
  },
113
  {
114
  "epoch": 6.0,
115
- "eval_accuracy": 0.8283633841886269,
116
- "eval_f1": 0.8089134462154245,
117
- "eval_loss": 0.9771777391433716,
118
- "eval_precision": 0.8382740264211974,
119
- "eval_recall": 0.8283633841886269,
120
- "eval_runtime": 36.767,
121
- "eval_samples_per_second": 78.44,
122
- "eval_steps_per_second": 9.819,
123
  "step": 1926
124
  },
125
  {
126
  "epoch": 7.0,
127
- "grad_norm": 8.762543678283691,
128
- "learning_rate": 6.002305101515785e-05,
129
- "loss": 0.1058,
130
  "step": 2247
131
  },
132
  {
133
  "epoch": 7.0,
134
- "eval_accuracy": 0.8581830790568654,
135
- "eval_f1": 0.8533407001043691,
136
- "eval_loss": 0.6204692721366882,
137
- "eval_precision": 0.8542132893520025,
138
- "eval_recall": 0.8581830790568654,
139
- "eval_runtime": 37.6784,
140
- "eval_samples_per_second": 76.543,
141
- "eval_steps_per_second": 9.581,
142
  "step": 2247
143
  },
144
  {
145
  "epoch": 8.0,
146
- "grad_norm": 0.16941487789154053,
147
- "learning_rate": 1.484342980756105e-05,
148
- "loss": 0.0171,
149
  "step": 2568
150
  },
151
  {
152
  "epoch": 8.0,
153
- "eval_accuracy": 0.8671983356449375,
154
- "eval_f1": 0.8617834655772643,
155
- "eval_loss": 0.7407661080360413,
156
- "eval_precision": 0.8622466117266067,
157
- "eval_recall": 0.8671983356449375,
158
- "eval_runtime": 37.6949,
159
- "eval_samples_per_second": 76.509,
160
- "eval_steps_per_second": 9.577,
161
  "step": 2568
162
  },
163
  {
164
  "epoch": 9.0,
165
- "grad_norm": 1.5445165634155273,
166
- "learning_rate": 9.909438769446831e-05,
167
- "loss": 0.0029,
168
  "step": 2889
169
  },
170
  {
171
  "epoch": 9.0,
172
- "eval_accuracy": 0.8564493758668515,
173
- "eval_f1": 0.8473856298855159,
174
- "eval_loss": 0.9039825797080994,
175
- "eval_precision": 0.8486485221307185,
176
- "eval_recall": 0.8564493758668515,
177
- "eval_runtime": 37.879,
178
- "eval_samples_per_second": 76.137,
179
- "eval_steps_per_second": 9.53,
180
  "step": 2889
181
  },
182
  {
183
  "epoch": 10.0,
184
- "grad_norm": 0.17326785624027252,
185
- "learning_rate": 6.94045926336125e-05,
186
- "loss": 0.1232,
187
  "step": 3210
188
  },
189
  {
190
  "epoch": 10.0,
191
- "eval_accuracy": 0.829750346740638,
192
- "eval_f1": 0.8157566455477707,
193
- "eval_loss": 0.9558870792388916,
194
- "eval_precision": 0.84362582840677,
195
- "eval_recall": 0.829750346740638,
196
- "eval_runtime": 37.6559,
197
- "eval_samples_per_second": 76.588,
198
- "eval_steps_per_second": 9.587,
199
  "step": 3210
200
  },
201
  {
202
  "epoch": 11.0,
203
- "grad_norm": 0.0039984057657420635,
204
- "learning_rate": 2.2470951807159123e-05,
205
- "loss": 0.0233,
206
  "step": 3531
207
  },
208
  {
209
  "epoch": 11.0,
210
- "eval_accuracy": 0.8564493758668515,
211
- "eval_f1": 0.857178695277239,
212
- "eval_loss": 0.7810959219932556,
213
- "eval_precision": 0.8607102524458344,
214
- "eval_recall": 0.8564493758668515,
215
- "eval_runtime": 37.2622,
216
- "eval_samples_per_second": 77.397,
217
- "eval_steps_per_second": 9.688,
218
  "step": 3531
219
  },
220
  {
221
  "epoch": 12.0,
222
- "grad_norm": 0.003946017008274794,
223
- "learning_rate": 9.351378430000336e-10,
224
- "loss": 0.0009,
225
  "step": 3852
226
  },
227
  {
228
  "epoch": 12.0,
229
- "eval_accuracy": 0.8626907073509015,
230
- "eval_f1": 0.859450727771903,
231
- "eval_loss": 0.799753725528717,
232
- "eval_precision": 0.8599141248108649,
233
- "eval_recall": 0.8626907073509015,
234
- "eval_runtime": 37.2156,
235
- "eval_samples_per_second": 77.494,
236
- "eval_steps_per_second": 9.7,
237
  "step": 3852
238
  },
239
  {
240
  "epoch": 12.0,
241
  "step": 3852,
242
  "total_flos": 4.768760767819088e+18,
243
- "train_loss": 0.17886438471413105,
244
- "train_runtime": 1744.4117,
245
- "train_samples_per_second": 35.276,
246
- "train_steps_per_second": 2.208
247
  }
248
  ],
249
  "logging_steps": 500,
 
1
  {
2
+ "best_metric": 0.5117006897926331,
3
  "best_model_checkpoint": "./vit-lr-cosine-restarts/checkpoint-642",
4
  "epoch": 12.0,
5
  "eval_steps": 500,
 
10
  "log_history": [
11
  {
12
  "epoch": 1.0,
13
+ "grad_norm": 7.814958572387695,
14
  "learning_rate": 4.1428571428571437e-05,
15
+ "loss": 0.86,
16
  "step": 321
17
  },
18
  {
19
  "epoch": 1.0,
20
+ "eval_accuracy": 0.8141470180305131,
21
+ "eval_f1": 0.8010598763076213,
22
+ "eval_loss": 0.5250416994094849,
23
+ "eval_precision": 0.8100096575743447,
24
+ "eval_recall": 0.8141470180305131,
25
+ "eval_runtime": 36.2746,
26
+ "eval_samples_per_second": 79.505,
27
+ "eval_steps_per_second": 9.952,
28
  "step": 321
29
  },
30
  {
31
  "epoch": 2.0,
32
+ "grad_norm": 6.845722198486328,
33
  "learning_rate": 8.311688311688312e-05,
34
+ "loss": 0.4517,
35
  "step": 642
36
  },
37
  {
38
  "epoch": 2.0,
39
+ "eval_accuracy": 0.8221220527045769,
40
+ "eval_f1": 0.8099830282273331,
41
+ "eval_loss": 0.5117006897926331,
42
+ "eval_precision": 0.8347375649374938,
43
+ "eval_recall": 0.8221220527045769,
44
+ "eval_runtime": 36.0052,
45
+ "eval_samples_per_second": 80.099,
46
+ "eval_steps_per_second": 10.026,
47
  "step": 642
48
  },
49
  {
50
  "epoch": 3.0,
51
+ "grad_norm": 1.1383476257324219,
52
+ "learning_rate": 9.625711149159094e-05,
53
+ "loss": 0.3462,
54
  "step": 963
55
  },
56
  {
57
  "epoch": 3.0,
58
+ "eval_accuracy": 0.8318307905686546,
59
+ "eval_f1": 0.8145801957068103,
60
+ "eval_loss": 0.5491535663604736,
61
+ "eval_precision": 0.8237881382705559,
62
+ "eval_recall": 0.8318307905686546,
63
+ "eval_runtime": 37.0153,
64
+ "eval_samples_per_second": 77.914,
65
+ "eval_steps_per_second": 9.753,
66
  "step": 963
67
  },
68
  {
69
  "epoch": 4.0,
70
+ "grad_norm": 8.22785472869873,
71
+ "learning_rate": 7.514698384161923e-05,
72
+ "loss": 0.1884,
73
  "step": 1284
74
  },
75
  {
76
  "epoch": 4.0,
77
+ "eval_accuracy": 0.8477808599167822,
78
+ "eval_f1": 0.8424611946030242,
79
+ "eval_loss": 0.5316428542137146,
80
+ "eval_precision": 0.8452078508575436,
81
+ "eval_recall": 0.8477808599167822,
82
+ "eval_runtime": 37.0521,
83
+ "eval_samples_per_second": 77.836,
84
+ "eval_steps_per_second": 9.743,
85
  "step": 1284
86
  },
87
  {
88
  "epoch": 5.0,
89
+ "grad_norm": 0.08933322876691818,
90
+ "learning_rate": 4.3646376374911565e-05,
91
+ "loss": 0.0661,
92
  "step": 1605
93
  },
94
  {
95
  "epoch": 5.0,
96
+ "eval_accuracy": 0.8661581137309292,
97
+ "eval_f1": 0.8631893027855349,
98
+ "eval_loss": 0.5807815790176392,
99
+ "eval_precision": 0.8631976574679416,
100
+ "eval_recall": 0.8661581137309292,
101
+ "eval_runtime": 36.8683,
102
+ "eval_samples_per_second": 78.224,
103
+ "eval_steps_per_second": 9.792,
104
  "step": 1605
105
  },
106
  {
107
  "epoch": 6.0,
108
+ "grad_norm": 0.004284233320504427,
109
+ "learning_rate": 1.4771022038177957e-05,
110
+ "loss": 0.0072,
111
  "step": 1926
112
  },
113
  {
114
  "epoch": 6.0,
115
+ "eval_accuracy": 0.8713592233009708,
116
+ "eval_f1": 0.8685210731779419,
117
+ "eval_loss": 0.6703277230262756,
118
+ "eval_precision": 0.8676177648822543,
119
+ "eval_recall": 0.8713592233009708,
120
+ "eval_runtime": 37.1065,
121
+ "eval_samples_per_second": 77.722,
122
+ "eval_steps_per_second": 9.729,
123
  "step": 1926
124
  },
125
  {
126
  "epoch": 7.0,
127
+ "grad_norm": 0.02234409935772419,
128
+ "learning_rate": 4.5192569174565823e-07,
129
+ "loss": 0.0005,
130
  "step": 2247
131
  },
132
  {
133
  "epoch": 7.0,
134
+ "eval_accuracy": 0.8723994452149791,
135
+ "eval_f1": 0.8691996055190594,
136
+ "eval_loss": 0.66409832239151,
137
+ "eval_precision": 0.8680805567269357,
138
+ "eval_recall": 0.8723994452149791,
139
+ "eval_runtime": 37.5216,
140
+ "eval_samples_per_second": 76.862,
141
+ "eval_steps_per_second": 9.621,
142
  "step": 2247
143
  },
144
  {
145
  "epoch": 8.0,
146
+ "grad_norm": 16.355737686157227,
147
+ "learning_rate": 9.339440663254618e-05,
148
+ "loss": 0.0253,
149
  "step": 2568
150
  },
151
  {
152
  "epoch": 8.0,
153
+ "eval_accuracy": 0.763869625520111,
154
+ "eval_f1": 0.7811647054797142,
155
+ "eval_loss": 1.1242671012878418,
156
+ "eval_precision": 0.8425391875202219,
157
+ "eval_recall": 0.763869625520111,
158
+ "eval_runtime": 37.4111,
159
+ "eval_samples_per_second": 77.089,
160
+ "eval_steps_per_second": 9.65,
161
  "step": 2568
162
  },
163
  {
164
  "epoch": 9.0,
165
+ "grad_norm": 0.16647577285766602,
166
+ "learning_rate": 6.93106082853232e-05,
167
+ "loss": 0.163,
168
  "step": 2889
169
  },
170
  {
171
  "epoch": 9.0,
172
+ "eval_accuracy": 0.8446601941747572,
173
+ "eval_f1": 0.8442509694752051,
174
+ "eval_loss": 0.7353706955909729,
175
+ "eval_precision": 0.8560368714680845,
176
+ "eval_recall": 0.8446601941747572,
177
+ "eval_runtime": 37.5281,
178
+ "eval_samples_per_second": 76.849,
179
+ "eval_steps_per_second": 9.619,
180
  "step": 2889
181
  },
182
  {
183
  "epoch": 10.0,
184
+ "grad_norm": 0.006103373598307371,
185
+ "learning_rate": 3.724786157191619e-05,
186
+ "loss": 0.0324,
187
  "step": 3210
188
  },
189
  {
190
  "epoch": 10.0,
191
+ "eval_accuracy": 0.8640776699029126,
192
+ "eval_f1": 0.860900542767183,
193
+ "eval_loss": 0.7327257990837097,
194
+ "eval_precision": 0.8630486238544385,
195
+ "eval_recall": 0.8640776699029126,
196
+ "eval_runtime": 35.8668,
197
+ "eval_samples_per_second": 80.409,
198
+ "eval_steps_per_second": 10.065,
199
  "step": 3210
200
  },
201
  {
202
  "epoch": 11.0,
203
+ "grad_norm": 0.0016283913282677531,
204
+ "learning_rate": 1.0454169699906635e-05,
205
+ "loss": 0.0014,
206
  "step": 3531
207
  },
208
  {
209
  "epoch": 11.0,
210
+ "eval_accuracy": 0.8678918169209431,
211
+ "eval_f1": 0.8642538050561708,
212
+ "eval_loss": 0.7242896556854248,
213
+ "eval_precision": 0.8636644990951133,
214
+ "eval_recall": 0.8678918169209431,
215
+ "eval_runtime": 36.277,
216
+ "eval_samples_per_second": 79.499,
217
+ "eval_steps_per_second": 9.951,
218
  "step": 3531
219
  },
220
  {
221
  "epoch": 12.0,
222
+ "grad_norm": 0.0033853575587272644,
223
+ "learning_rate": 4.156175388514427e-10,
224
+ "loss": 0.0002,
225
  "step": 3852
226
  },
227
  {
228
  "epoch": 12.0,
229
+ "eval_accuracy": 0.869625520110957,
230
+ "eval_f1": 0.8660960395798193,
231
+ "eval_loss": 0.7235937714576721,
232
+ "eval_precision": 0.8654974771709472,
233
+ "eval_recall": 0.869625520110957,
234
+ "eval_runtime": 36.6203,
235
+ "eval_samples_per_second": 78.754,
236
+ "eval_steps_per_second": 9.858,
237
  "step": 3852
238
  },
239
  {
240
  "epoch": 12.0,
241
  "step": 3852,
242
  "total_flos": 4.768760767819088e+18,
243
+ "train_loss": 0.17854708074838666,
244
+ "train_runtime": 1730.8935,
245
+ "train_samples_per_second": 35.552,
246
+ "train_steps_per_second": 2.225
247
  }
248
  ],
249
  "logging_steps": 500,