dima806 commited on
Commit
2bd6021
1 Parent(s): 52c45b8

Upload folder using huggingface_hub

Browse files
checkpoint-9945/config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dima806/man_woman_face_image_detection",
3
+ "architectures": [
4
+ "ViTForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "encoder_stride": 16,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.0,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "man",
13
+ "1": "woman"
14
+ },
15
+ "image_size": 224,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "man": 0,
20
+ "woman": 1
21
+ },
22
+ "layer_norm_eps": 1e-12,
23
+ "model_type": "vit",
24
+ "num_attention_heads": 12,
25
+ "num_channels": 3,
26
+ "num_hidden_layers": 12,
27
+ "patch_size": 16,
28
+ "problem_type": "single_label_classification",
29
+ "qkv_bias": true,
30
+ "torch_dtype": "float32",
31
+ "transformers_version": "4.45.1"
32
+ }
checkpoint-9945/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23d7b8ff54a67befb6dd40498638d79ac1d0ec297fc42284aa1a1921758e024e
3
+ size 343223968
checkpoint-9945/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a5bbb70677db0f4e61aa1c49a3258263b636a73cf822a5e2b16049579781f1a
3
+ size 686568453
checkpoint-9945/preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_processor_type": "ViTImageProcessor",
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "resample": 2,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 224,
20
+ "width": 224
21
+ }
22
+ }
checkpoint-9945/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8138034f60a0f013139794a02cb5fd522c7735c3df09a6c76fd3f8c91073f06
3
+ size 14575
checkpoint-9945/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e82a02ed2c22439dd0607f3185ba5b51898f2145ae694eb4c1e331b5f47e345
3
+ size 627
checkpoint-9945/trainer_state.json ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.0358840748667717,
3
+ "best_model_checkpoint": "man_woman_face_image_detection/checkpoint-9945",
4
+ "epoch": 15.0,
5
+ "eval_steps": 500,
6
+ "global_step": 9945,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.7541478129713424,
13
+ "grad_norm": 0.12809374928474426,
14
+ "learning_rate": 9.54522486104093e-07,
15
+ "loss": 0.0535,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 1.0,
20
+ "eval_accuracy": 0.9918687690023333,
21
+ "eval_loss": 0.03707238286733627,
22
+ "eval_model_preparation_time": 0.0055,
23
+ "eval_runtime": 139.741,
24
+ "eval_samples_per_second": 101.209,
25
+ "eval_steps_per_second": 12.652,
26
+ "step": 663
27
+ },
28
+ {
29
+ "epoch": 1.5082956259426847,
30
+ "grad_norm": 0.07325731962919235,
31
+ "learning_rate": 9.039919151086407e-07,
32
+ "loss": 0.0514,
33
+ "step": 1000
34
+ },
35
+ {
36
+ "epoch": 2.0,
37
+ "eval_accuracy": 0.9917273562893304,
38
+ "eval_loss": 0.037097617983818054,
39
+ "eval_model_preparation_time": 0.0055,
40
+ "eval_runtime": 145.1641,
41
+ "eval_samples_per_second": 97.428,
42
+ "eval_steps_per_second": 12.179,
43
+ "step": 1326
44
+ },
45
+ {
46
+ "epoch": 2.262443438914027,
47
+ "grad_norm": 0.12023092061281204,
48
+ "learning_rate": 8.534613441131885e-07,
49
+ "loss": 0.0536,
50
+ "step": 1500
51
+ },
52
+ {
53
+ "epoch": 3.0,
54
+ "eval_accuracy": 0.9915859435763276,
55
+ "eval_loss": 0.03732353821396828,
56
+ "eval_model_preparation_time": 0.0055,
57
+ "eval_runtime": 142.5995,
58
+ "eval_samples_per_second": 99.18,
59
+ "eval_steps_per_second": 12.398,
60
+ "step": 1989
61
+ },
62
+ {
63
+ "epoch": 3.0165912518853695,
64
+ "grad_norm": 0.08819910883903503,
65
+ "learning_rate": 8.029307731177362e-07,
66
+ "loss": 0.0458,
67
+ "step": 2000
68
+ },
69
+ {
70
+ "epoch": 3.770739064856712,
71
+ "grad_norm": 1.7117729187011719,
72
+ "learning_rate": 7.524002021222839e-07,
73
+ "loss": 0.0434,
74
+ "step": 2500
75
+ },
76
+ {
77
+ "epoch": 4.0,
78
+ "eval_accuracy": 0.9917980626458318,
79
+ "eval_loss": 0.03692413866519928,
80
+ "eval_model_preparation_time": 0.0055,
81
+ "eval_runtime": 137.5145,
82
+ "eval_samples_per_second": 102.847,
83
+ "eval_steps_per_second": 12.857,
84
+ "step": 2652
85
+ },
86
+ {
87
+ "epoch": 4.524886877828054,
88
+ "grad_norm": 0.07585655897855759,
89
+ "learning_rate": 7.018696311268317e-07,
90
+ "loss": 0.0441,
91
+ "step": 3000
92
+ },
93
+ {
94
+ "epoch": 5.0,
95
+ "eval_accuracy": 0.9917980626458318,
96
+ "eval_loss": 0.03679042309522629,
97
+ "eval_model_preparation_time": 0.0055,
98
+ "eval_runtime": 136.8062,
99
+ "eval_samples_per_second": 103.38,
100
+ "eval_steps_per_second": 12.923,
101
+ "step": 3315
102
+ },
103
+ {
104
+ "epoch": 5.279034690799397,
105
+ "grad_norm": 0.27443283796310425,
106
+ "learning_rate": 6.513390601313794e-07,
107
+ "loss": 0.0438,
108
+ "step": 3500
109
+ },
110
+ {
111
+ "epoch": 6.0,
112
+ "eval_accuracy": 0.9915859435763276,
113
+ "eval_loss": 0.03690684959292412,
114
+ "eval_model_preparation_time": 0.0055,
115
+ "eval_runtime": 136.7631,
116
+ "eval_samples_per_second": 103.412,
117
+ "eval_steps_per_second": 12.927,
118
+ "step": 3978
119
+ },
120
+ {
121
+ "epoch": 6.033182503770739,
122
+ "grad_norm": 0.3576681315898895,
123
+ "learning_rate": 6.008084891359272e-07,
124
+ "loss": 0.0451,
125
+ "step": 4000
126
+ },
127
+ {
128
+ "epoch": 6.787330316742081,
129
+ "grad_norm": 0.7324354648590088,
130
+ "learning_rate": 5.50277918140475e-07,
131
+ "loss": 0.0428,
132
+ "step": 4500
133
+ },
134
+ {
135
+ "epoch": 7.0,
136
+ "eval_accuracy": 0.9915859435763276,
137
+ "eval_loss": 0.036498043686151505,
138
+ "eval_model_preparation_time": 0.0055,
139
+ "eval_runtime": 136.3477,
140
+ "eval_samples_per_second": 103.727,
141
+ "eval_steps_per_second": 12.967,
142
+ "step": 4641
143
+ },
144
+ {
145
+ "epoch": 7.541478129713424,
146
+ "grad_norm": 10.407703399658203,
147
+ "learning_rate": 4.997473471450227e-07,
148
+ "loss": 0.0377,
149
+ "step": 5000
150
+ },
151
+ {
152
+ "epoch": 8.0,
153
+ "eval_accuracy": 0.9915859435763276,
154
+ "eval_loss": 0.03636253997683525,
155
+ "eval_model_preparation_time": 0.0055,
156
+ "eval_runtime": 136.8932,
157
+ "eval_samples_per_second": 103.314,
158
+ "eval_steps_per_second": 12.915,
159
+ "step": 5304
160
+ },
161
+ {
162
+ "epoch": 8.295625942684767,
163
+ "grad_norm": 0.776454508304596,
164
+ "learning_rate": 4.492167761495705e-07,
165
+ "loss": 0.0415,
166
+ "step": 5500
167
+ },
168
+ {
169
+ "epoch": 9.0,
170
+ "eval_accuracy": 0.9917273562893304,
171
+ "eval_loss": 0.036238111555576324,
172
+ "eval_model_preparation_time": 0.0055,
173
+ "eval_runtime": 140.2201,
174
+ "eval_samples_per_second": 100.863,
175
+ "eval_steps_per_second": 12.609,
176
+ "step": 5967
177
+ },
178
+ {
179
+ "epoch": 9.049773755656108,
180
+ "grad_norm": 0.08934183418750763,
181
+ "learning_rate": 3.986862051541182e-07,
182
+ "loss": 0.0377,
183
+ "step": 6000
184
+ },
185
+ {
186
+ "epoch": 9.803921568627452,
187
+ "grad_norm": 0.10604743659496307,
188
+ "learning_rate": 3.48155634158666e-07,
189
+ "loss": 0.0397,
190
+ "step": 6500
191
+ },
192
+ {
193
+ "epoch": 10.0,
194
+ "eval_accuracy": 0.9920101817153362,
195
+ "eval_loss": 0.036092888563871384,
196
+ "eval_model_preparation_time": 0.0055,
197
+ "eval_runtime": 138.0603,
198
+ "eval_samples_per_second": 102.441,
199
+ "eval_steps_per_second": 12.806,
200
+ "step": 6630
201
+ },
202
+ {
203
+ "epoch": 10.558069381598793,
204
+ "grad_norm": 0.11123999208211899,
205
+ "learning_rate": 2.976250631632137e-07,
206
+ "loss": 0.0389,
207
+ "step": 7000
208
+ },
209
+ {
210
+ "epoch": 11.0,
211
+ "eval_accuracy": 0.9918687690023333,
212
+ "eval_loss": 0.035989925265312195,
213
+ "eval_model_preparation_time": 0.0055,
214
+ "eval_runtime": 137.8038,
215
+ "eval_samples_per_second": 102.631,
216
+ "eval_steps_per_second": 12.83,
217
+ "step": 7293
218
+ },
219
+ {
220
+ "epoch": 11.312217194570136,
221
+ "grad_norm": 2.75396990776062,
222
+ "learning_rate": 2.470944921677615e-07,
223
+ "loss": 0.0397,
224
+ "step": 7500
225
+ },
226
+ {
227
+ "epoch": 12.0,
228
+ "eval_accuracy": 0.9919394753588348,
229
+ "eval_loss": 0.03610728308558464,
230
+ "eval_model_preparation_time": 0.0055,
231
+ "eval_runtime": 135.6518,
232
+ "eval_samples_per_second": 104.26,
233
+ "eval_steps_per_second": 13.033,
234
+ "step": 7956
235
+ },
236
+ {
237
+ "epoch": 12.066365007541478,
238
+ "grad_norm": 0.13482791185379028,
239
+ "learning_rate": 1.9656392117230926e-07,
240
+ "loss": 0.0338,
241
+ "step": 8000
242
+ },
243
+ {
244
+ "epoch": 12.820512820512821,
245
+ "grad_norm": 0.09956225007772446,
246
+ "learning_rate": 1.46033350176857e-07,
247
+ "loss": 0.0387,
248
+ "step": 8500
249
+ },
250
+ {
251
+ "epoch": 13.0,
252
+ "eval_accuracy": 0.9917980626458318,
253
+ "eval_loss": 0.036081310361623764,
254
+ "eval_model_preparation_time": 0.0055,
255
+ "eval_runtime": 135.9098,
256
+ "eval_samples_per_second": 104.062,
257
+ "eval_steps_per_second": 13.009,
258
+ "step": 8619
259
+ },
260
+ {
261
+ "epoch": 13.574660633484163,
262
+ "grad_norm": 2.5569167137145996,
263
+ "learning_rate": 9.550277918140474e-08,
264
+ "loss": 0.0308,
265
+ "step": 9000
266
+ },
267
+ {
268
+ "epoch": 14.0,
269
+ "eval_accuracy": 0.9920101817153362,
270
+ "eval_loss": 0.03591620549559593,
271
+ "eval_model_preparation_time": 0.0055,
272
+ "eval_runtime": 138.98,
273
+ "eval_samples_per_second": 101.763,
274
+ "eval_steps_per_second": 12.721,
275
+ "step": 9282
276
+ },
277
+ {
278
+ "epoch": 14.328808446455506,
279
+ "grad_norm": 0.17602261900901794,
280
+ "learning_rate": 4.49722081859525e-08,
281
+ "loss": 0.0355,
282
+ "step": 9500
283
+ },
284
+ {
285
+ "epoch": 15.0,
286
+ "eval_accuracy": 0.9920101817153362,
287
+ "eval_loss": 0.0358840748667717,
288
+ "eval_model_preparation_time": 0.0055,
289
+ "eval_runtime": 140.3453,
290
+ "eval_samples_per_second": 100.773,
291
+ "eval_steps_per_second": 12.597,
292
+ "step": 9945
293
+ }
294
+ ],
295
+ "logging_steps": 500,
296
+ "max_steps": 9945,
297
+ "num_input_tokens_seen": 0,
298
+ "num_train_epochs": 15,
299
+ "save_steps": 500,
300
+ "stateful_callbacks": {
301
+ "TrainerControl": {
302
+ "args": {
303
+ "should_epoch_stop": false,
304
+ "should_evaluate": false,
305
+ "should_log": false,
306
+ "should_save": true,
307
+ "should_training_stop": true
308
+ },
309
+ "attributes": {}
310
+ }
311
+ },
312
+ "total_flos": 2.46575636354151e+19,
313
+ "train_batch_size": 32,
314
+ "trial_name": null,
315
+ "trial_params": null
316
+ }
checkpoint-9945/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ed4dd9e9f6305630e554c62d8534b93a08fcf33acdf436360d8f2eb40c2c3a3
3
+ size 4731
config.json CHANGED
@@ -28,5 +28,5 @@
28
  "problem_type": "single_label_classification",
29
  "qkv_bias": true,
30
  "torch_dtype": "float32",
31
- "transformers_version": "4.38.2"
32
  }
 
28
  "problem_type": "single_label_classification",
29
  "qkv_bias": true,
30
  "torch_dtype": "float32",
31
+ "transformers_version": "4.45.1"
32
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:63bcd76adc590090a1d7e5c4e81b7e49f3e953692389a49ea537d2c508f8f105
3
  size 343223968
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23d7b8ff54a67befb6dd40498638d79ac1d0ec297fc42284aa1a1921758e024e
3
  size 343223968
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:118c97e7443b21e873d6069ca4bbc6c5bbc79db7f7af62599d8492fe3d66ba4f
3
- size 4411
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ed4dd9e9f6305630e554c62d8534b93a08fcf33acdf436360d8f2eb40c2c3a3
3
+ size 4731