Initial model upload
Browse files- checkpoint-8965/config.json +32 -0
- checkpoint-8965/model.safetensors +3 -0
- checkpoint-8965/optimizer.pt +3 -0
- checkpoint-8965/preprocessor_config.json +23 -0
- checkpoint-8965/rng_state.pth +3 -0
- checkpoint-8965/scheduler.pt +3 -0
- checkpoint-8965/trainer_state.json +251 -0
- checkpoint-8965/training_args.bin +3 -0
- config.json +32 -0
- model.safetensors +3 -0
- preprocessor_config.json +23 -0
- training_args.bin +3 -0
checkpoint-8965/config.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
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": "REAL",
|
13 |
+
"1": "FAKE"
|
14 |
+
},
|
15 |
+
"image_size": 224,
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"intermediate_size": 3072,
|
18 |
+
"label2id": {
|
19 |
+
"FAKE": 1,
|
20 |
+
"REAL": 0
|
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.47.0"
|
32 |
+
}
|
checkpoint-8965/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:789fc6b6e0e13db4399e372a02a1b6e9a16daba7c21e097bdea97d82f03b2aeb
|
3 |
+
size 343223968
|
checkpoint-8965/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c75afa5cf7958c18855d3c2e64fcf42204202812796337c2df3d638929de3b14
|
3 |
+
size 686568890
|
checkpoint-8965/preprocessor_config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_convert_rgb": null,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"image_mean": [
|
7 |
+
0.5,
|
8 |
+
0.5,
|
9 |
+
0.5
|
10 |
+
],
|
11 |
+
"image_processor_type": "ViTImageProcessor",
|
12 |
+
"image_std": [
|
13 |
+
0.5,
|
14 |
+
0.5,
|
15 |
+
0.5
|
16 |
+
],
|
17 |
+
"resample": 2,
|
18 |
+
"rescale_factor": 0.00392156862745098,
|
19 |
+
"size": {
|
20 |
+
"height": 224,
|
21 |
+
"width": 224
|
22 |
+
}
|
23 |
+
}
|
checkpoint-8965/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2ec28ea0c416565eeac14a0e9c944f185ac250f4ed4bd15c84ff77ed78ba9301
|
3 |
+
size 14244
|
checkpoint-8965/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.36695095896720886,
|
3 |
+
"best_model_checkpoint": "deepfake_faces_vit/checkpoint-8965",
|
4 |
+
"epoch": 11.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 8965,
|
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.6134969325153374,
|
13 |
+
"grad_norm": 9.73007869720459,
|
14 |
+
"learning_rate": 9.537512846865365e-07,
|
15 |
+
"loss": 0.4289,
|
16 |
+
"step": 500
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 1.0,
|
20 |
+
"eval_accuracy": 0.8100644369438478,
|
21 |
+
"eval_loss": 0.43108952045440674,
|
22 |
+
"eval_runtime": 29.5331,
|
23 |
+
"eval_samples_per_second": 110.351,
|
24 |
+
"eval_steps_per_second": 13.815,
|
25 |
+
"step": 815
|
26 |
+
},
|
27 |
+
{
|
28 |
+
"epoch": 1.2269938650306749,
|
29 |
+
"grad_norm": 5.347096920013428,
|
30 |
+
"learning_rate": 9.023638232271325e-07,
|
31 |
+
"loss": 0.4061,
|
32 |
+
"step": 1000
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"epoch": 1.8404907975460123,
|
36 |
+
"grad_norm": 9.34152889251709,
|
37 |
+
"learning_rate": 8.509763617677287e-07,
|
38 |
+
"loss": 0.3857,
|
39 |
+
"step": 1500
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 2.0,
|
43 |
+
"eval_accuracy": 0.822951825713409,
|
44 |
+
"eval_loss": 0.40853503346443176,
|
45 |
+
"eval_runtime": 27.4579,
|
46 |
+
"eval_samples_per_second": 118.691,
|
47 |
+
"eval_steps_per_second": 14.859,
|
48 |
+
"step": 1630
|
49 |
+
},
|
50 |
+
{
|
51 |
+
"epoch": 2.4539877300613497,
|
52 |
+
"grad_norm": 5.006694316864014,
|
53 |
+
"learning_rate": 7.995889003083247e-07,
|
54 |
+
"loss": 0.3592,
|
55 |
+
"step": 2000
|
56 |
+
},
|
57 |
+
{
|
58 |
+
"epoch": 3.0,
|
59 |
+
"eval_accuracy": 0.8275544645596808,
|
60 |
+
"eval_loss": 0.3940746486186981,
|
61 |
+
"eval_runtime": 29.4468,
|
62 |
+
"eval_samples_per_second": 110.674,
|
63 |
+
"eval_steps_per_second": 13.855,
|
64 |
+
"step": 2445
|
65 |
+
},
|
66 |
+
{
|
67 |
+
"epoch": 3.067484662576687,
|
68 |
+
"grad_norm": 9.202957153320312,
|
69 |
+
"learning_rate": 7.482014388489208e-07,
|
70 |
+
"loss": 0.3519,
|
71 |
+
"step": 2500
|
72 |
+
},
|
73 |
+
{
|
74 |
+
"epoch": 3.6809815950920246,
|
75 |
+
"grad_norm": 7.183080673217773,
|
76 |
+
"learning_rate": 6.968139773895169e-07,
|
77 |
+
"loss": 0.3307,
|
78 |
+
"step": 3000
|
79 |
+
},
|
80 |
+
{
|
81 |
+
"epoch": 4.0,
|
82 |
+
"eval_accuracy": 0.8306228904571955,
|
83 |
+
"eval_loss": 0.38576722145080566,
|
84 |
+
"eval_runtime": 26.6498,
|
85 |
+
"eval_samples_per_second": 122.29,
|
86 |
+
"eval_steps_per_second": 15.31,
|
87 |
+
"step": 3260
|
88 |
+
},
|
89 |
+
{
|
90 |
+
"epoch": 4.294478527607362,
|
91 |
+
"grad_norm": 11.383119583129883,
|
92 |
+
"learning_rate": 6.454265159301129e-07,
|
93 |
+
"loss": 0.3216,
|
94 |
+
"step": 3500
|
95 |
+
},
|
96 |
+
{
|
97 |
+
"epoch": 4.9079754601226995,
|
98 |
+
"grad_norm": 4.364112377166748,
|
99 |
+
"learning_rate": 5.940390544707091e-07,
|
100 |
+
"loss": 0.3079,
|
101 |
+
"step": 4000
|
102 |
+
},
|
103 |
+
{
|
104 |
+
"epoch": 5.0,
|
105 |
+
"eval_accuracy": 0.8373734274317275,
|
106 |
+
"eval_loss": 0.3753877580165863,
|
107 |
+
"eval_runtime": 28.0806,
|
108 |
+
"eval_samples_per_second": 116.059,
|
109 |
+
"eval_steps_per_second": 14.53,
|
110 |
+
"step": 4075
|
111 |
+
},
|
112 |
+
{
|
113 |
+
"epoch": 5.521472392638037,
|
114 |
+
"grad_norm": 5.054851055145264,
|
115 |
+
"learning_rate": 5.426515930113052e-07,
|
116 |
+
"loss": 0.298,
|
117 |
+
"step": 4500
|
118 |
+
},
|
119 |
+
{
|
120 |
+
"epoch": 6.0,
|
121 |
+
"eval_accuracy": 0.8382939552009819,
|
122 |
+
"eval_loss": 0.37101876735687256,
|
123 |
+
"eval_runtime": 29.1733,
|
124 |
+
"eval_samples_per_second": 111.712,
|
125 |
+
"eval_steps_per_second": 13.985,
|
126 |
+
"step": 4890
|
127 |
+
},
|
128 |
+
{
|
129 |
+
"epoch": 6.134969325153374,
|
130 |
+
"grad_norm": 13.362000465393066,
|
131 |
+
"learning_rate": 4.912641315519013e-07,
|
132 |
+
"loss": 0.2844,
|
133 |
+
"step": 5000
|
134 |
+
},
|
135 |
+
{
|
136 |
+
"epoch": 6.748466257668712,
|
137 |
+
"grad_norm": 11.542821884155273,
|
138 |
+
"learning_rate": 4.398766700924974e-07,
|
139 |
+
"loss": 0.2747,
|
140 |
+
"step": 5500
|
141 |
+
},
|
142 |
+
{
|
143 |
+
"epoch": 7.0,
|
144 |
+
"eval_accuracy": 0.8419760662779994,
|
145 |
+
"eval_loss": 0.370534747838974,
|
146 |
+
"eval_runtime": 29.1054,
|
147 |
+
"eval_samples_per_second": 111.972,
|
148 |
+
"eval_steps_per_second": 14.018,
|
149 |
+
"step": 5705
|
150 |
+
},
|
151 |
+
{
|
152 |
+
"epoch": 7.361963190184049,
|
153 |
+
"grad_norm": 11.590359687805176,
|
154 |
+
"learning_rate": 3.8848920863309354e-07,
|
155 |
+
"loss": 0.2667,
|
156 |
+
"step": 6000
|
157 |
+
},
|
158 |
+
{
|
159 |
+
"epoch": 7.975460122699387,
|
160 |
+
"grad_norm": 10.857077598571777,
|
161 |
+
"learning_rate": 3.371017471736896e-07,
|
162 |
+
"loss": 0.266,
|
163 |
+
"step": 6500
|
164 |
+
},
|
165 |
+
{
|
166 |
+
"epoch": 8.0,
|
167 |
+
"eval_accuracy": 0.8425897514575023,
|
168 |
+
"eval_loss": 0.36838075518608093,
|
169 |
+
"eval_runtime": 28.7074,
|
170 |
+
"eval_samples_per_second": 113.525,
|
171 |
+
"eval_steps_per_second": 14.212,
|
172 |
+
"step": 6520
|
173 |
+
},
|
174 |
+
{
|
175 |
+
"epoch": 8.588957055214724,
|
176 |
+
"grad_norm": 6.882222652435303,
|
177 |
+
"learning_rate": 2.857142857142857e-07,
|
178 |
+
"loss": 0.2558,
|
179 |
+
"step": 7000
|
180 |
+
},
|
181 |
+
{
|
182 |
+
"epoch": 9.0,
|
183 |
+
"eval_accuracy": 0.844430806996011,
|
184 |
+
"eval_loss": 0.36847400665283203,
|
185 |
+
"eval_runtime": 26.9443,
|
186 |
+
"eval_samples_per_second": 120.953,
|
187 |
+
"eval_steps_per_second": 15.142,
|
188 |
+
"step": 7335
|
189 |
+
},
|
190 |
+
{
|
191 |
+
"epoch": 9.202453987730062,
|
192 |
+
"grad_norm": 18.27613639831543,
|
193 |
+
"learning_rate": 2.343268242548818e-07,
|
194 |
+
"loss": 0.2518,
|
195 |
+
"step": 7500
|
196 |
+
},
|
197 |
+
{
|
198 |
+
"epoch": 9.815950920245399,
|
199 |
+
"grad_norm": 35.016822814941406,
|
200 |
+
"learning_rate": 1.829393627954779e-07,
|
201 |
+
"loss": 0.2466,
|
202 |
+
"step": 8000
|
203 |
+
},
|
204 |
+
{
|
205 |
+
"epoch": 10.0,
|
206 |
+
"eval_accuracy": 0.8459650199447684,
|
207 |
+
"eval_loss": 0.3689593970775604,
|
208 |
+
"eval_runtime": 29.6071,
|
209 |
+
"eval_samples_per_second": 110.075,
|
210 |
+
"eval_steps_per_second": 13.78,
|
211 |
+
"step": 8150
|
212 |
+
},
|
213 |
+
{
|
214 |
+
"epoch": 10.429447852760736,
|
215 |
+
"grad_norm": 5.033447742462158,
|
216 |
+
"learning_rate": 1.31551901336074e-07,
|
217 |
+
"loss": 0.2403,
|
218 |
+
"step": 8500
|
219 |
+
},
|
220 |
+
{
|
221 |
+
"epoch": 11.0,
|
222 |
+
"eval_accuracy": 0.8459650199447684,
|
223 |
+
"eval_loss": 0.36695095896720886,
|
224 |
+
"eval_runtime": 29.5956,
|
225 |
+
"eval_samples_per_second": 110.118,
|
226 |
+
"eval_steps_per_second": 13.786,
|
227 |
+
"step": 8965
|
228 |
+
}
|
229 |
+
],
|
230 |
+
"logging_steps": 500,
|
231 |
+
"max_steps": 9780,
|
232 |
+
"num_input_tokens_seen": 0,
|
233 |
+
"num_train_epochs": 12,
|
234 |
+
"save_steps": 500,
|
235 |
+
"stateful_callbacks": {
|
236 |
+
"TrainerControl": {
|
237 |
+
"args": {
|
238 |
+
"should_epoch_stop": false,
|
239 |
+
"should_evaluate": false,
|
240 |
+
"should_log": false,
|
241 |
+
"should_save": true,
|
242 |
+
"should_training_stop": false
|
243 |
+
},
|
244 |
+
"attributes": {}
|
245 |
+
}
|
246 |
+
},
|
247 |
+
"total_flos": 2.2220673038005027e+19,
|
248 |
+
"train_batch_size": 32,
|
249 |
+
"trial_name": null,
|
250 |
+
"trial_params": null
|
251 |
+
}
|
checkpoint-8965/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:161bc882c30c7de46868214d00462c336f43f255ae07d98705ad8d24205b13ce
|
3 |
+
size 5240
|
config.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
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": "REAL",
|
13 |
+
"1": "FAKE"
|
14 |
+
},
|
15 |
+
"image_size": 224,
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"intermediate_size": 3072,
|
18 |
+
"label2id": {
|
19 |
+
"FAKE": 1,
|
20 |
+
"REAL": 0
|
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.47.0"
|
32 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:789fc6b6e0e13db4399e372a02a1b6e9a16daba7c21e097bdea97d82f03b2aeb
|
3 |
+
size 343223968
|
preprocessor_config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_convert_rgb": null,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"image_mean": [
|
7 |
+
0.5,
|
8 |
+
0.5,
|
9 |
+
0.5
|
10 |
+
],
|
11 |
+
"image_processor_type": "ViTImageProcessor",
|
12 |
+
"image_std": [
|
13 |
+
0.5,
|
14 |
+
0.5,
|
15 |
+
0.5
|
16 |
+
],
|
17 |
+
"resample": 2,
|
18 |
+
"rescale_factor": 0.00392156862745098,
|
19 |
+
"size": {
|
20 |
+
"height": 224,
|
21 |
+
"width": 224
|
22 |
+
}
|
23 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:161bc882c30c7de46868214d00462c336f43f255ae07d98705ad8d24205b13ce
|
3 |
+
size 5240
|