Upload folder using huggingface_hub
Browse files- checkpoint-4500/config.json +32 -0
- checkpoint-4500/model.safetensors +3 -0
- checkpoint-4500/optimizer.pt +3 -0
- checkpoint-4500/preprocessor_config.json +22 -0
- checkpoint-4500/rng_state.pth +3 -0
- checkpoint-4500/scheduler.pt +3 -0
- checkpoint-4500/trainer_state.json +126 -0
- checkpoint-4500/training_args.bin +3 -0
- config.json +32 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- training_args.bin +3 -0
checkpoint-4500/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.46.2"
|
32 |
+
}
|
checkpoint-4500/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bd22c527ff40f33420b5810851a805d92d443d73a9ae0a3c3e83d683a3913d05
|
3 |
+
size 343223968
|
checkpoint-4500/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7047f51aa1894633f07a93491d00aee8bb6511096658cc7adbc18b4a7236dbad
|
3 |
+
size 686568453
|
checkpoint-4500/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-4500/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:93a3fcabe0b2ff3b3ec81f1f69c8ef8e49fff07b7cc7afe8359bd022cd30d871
|
3 |
+
size 14575
|
checkpoint-4500/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0271c6ca967bd3d46af55292ab3323701506a728982523e0c956373394eb46df
|
3 |
+
size 627
|
checkpoint-4500/trainer_state.json
ADDED
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.13027848303318024,
|
3 |
+
"best_model_checkpoint": "vit_no_aug_1e5/checkpoint-4500",
|
4 |
+
"epoch": 3.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 4500,
|
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.3333333333333333,
|
13 |
+
"grad_norm": 9.59843921661377,
|
14 |
+
"learning_rate": 8.988764044943822e-06,
|
15 |
+
"loss": 0.2951,
|
16 |
+
"step": 500
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.6666666666666666,
|
20 |
+
"grad_norm": 1.7021756172180176,
|
21 |
+
"learning_rate": 7.865168539325843e-06,
|
22 |
+
"loss": 0.1504,
|
23 |
+
"step": 1000
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 1.0,
|
27 |
+
"grad_norm": 2.5123584270477295,
|
28 |
+
"learning_rate": 6.741573033707865e-06,
|
29 |
+
"loss": 0.1296,
|
30 |
+
"step": 1500
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 1.0,
|
34 |
+
"eval_accuracy": 0.929625,
|
35 |
+
"eval_loss": 0.19084413349628448,
|
36 |
+
"eval_model_preparation_time": 0.0048,
|
37 |
+
"eval_runtime": 193.8847,
|
38 |
+
"eval_samples_per_second": 123.785,
|
39 |
+
"eval_steps_per_second": 3.868,
|
40 |
+
"step": 1500
|
41 |
+
},
|
42 |
+
{
|
43 |
+
"epoch": 1.3333333333333333,
|
44 |
+
"grad_norm": 1.9735125303268433,
|
45 |
+
"learning_rate": 5.617977528089889e-06,
|
46 |
+
"loss": 0.1107,
|
47 |
+
"step": 2000
|
48 |
+
},
|
49 |
+
{
|
50 |
+
"epoch": 1.6666666666666665,
|
51 |
+
"grad_norm": 2.696586847305298,
|
52 |
+
"learning_rate": 4.494382022471911e-06,
|
53 |
+
"loss": 0.0999,
|
54 |
+
"step": 2500
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 2.0,
|
58 |
+
"grad_norm": 1.1763291358947754,
|
59 |
+
"learning_rate": 3.3707865168539327e-06,
|
60 |
+
"loss": 0.095,
|
61 |
+
"step": 3000
|
62 |
+
},
|
63 |
+
{
|
64 |
+
"epoch": 2.0,
|
65 |
+
"eval_accuracy": 0.942375,
|
66 |
+
"eval_loss": 0.15168513357639313,
|
67 |
+
"eval_model_preparation_time": 0.0048,
|
68 |
+
"eval_runtime": 199.5805,
|
69 |
+
"eval_samples_per_second": 120.252,
|
70 |
+
"eval_steps_per_second": 3.758,
|
71 |
+
"step": 3000
|
72 |
+
},
|
73 |
+
{
|
74 |
+
"epoch": 2.3333333333333335,
|
75 |
+
"grad_norm": 1.1426674127578735,
|
76 |
+
"learning_rate": 2.2471910112359554e-06,
|
77 |
+
"loss": 0.0845,
|
78 |
+
"step": 3500
|
79 |
+
},
|
80 |
+
{
|
81 |
+
"epoch": 2.6666666666666665,
|
82 |
+
"grad_norm": 4.490411281585693,
|
83 |
+
"learning_rate": 1.1235955056179777e-06,
|
84 |
+
"loss": 0.0854,
|
85 |
+
"step": 4000
|
86 |
+
},
|
87 |
+
{
|
88 |
+
"epoch": 3.0,
|
89 |
+
"grad_norm": 1.7655569314956665,
|
90 |
+
"learning_rate": 0.0,
|
91 |
+
"loss": 0.0758,
|
92 |
+
"step": 4500
|
93 |
+
},
|
94 |
+
{
|
95 |
+
"epoch": 3.0,
|
96 |
+
"eval_accuracy": 0.95125,
|
97 |
+
"eval_loss": 0.13027848303318024,
|
98 |
+
"eval_model_preparation_time": 0.0048,
|
99 |
+
"eval_runtime": 194.2224,
|
100 |
+
"eval_samples_per_second": 123.57,
|
101 |
+
"eval_steps_per_second": 3.862,
|
102 |
+
"step": 4500
|
103 |
+
}
|
104 |
+
],
|
105 |
+
"logging_steps": 500,
|
106 |
+
"max_steps": 4500,
|
107 |
+
"num_input_tokens_seen": 0,
|
108 |
+
"num_train_epochs": 3,
|
109 |
+
"save_steps": 500,
|
110 |
+
"stateful_callbacks": {
|
111 |
+
"TrainerControl": {
|
112 |
+
"args": {
|
113 |
+
"should_epoch_stop": false,
|
114 |
+
"should_evaluate": false,
|
115 |
+
"should_log": false,
|
116 |
+
"should_save": true,
|
117 |
+
"should_training_stop": true
|
118 |
+
},
|
119 |
+
"attributes": {}
|
120 |
+
}
|
121 |
+
},
|
122 |
+
"total_flos": 2.2317693009002496e+19,
|
123 |
+
"train_batch_size": 64,
|
124 |
+
"trial_name": null,
|
125 |
+
"trial_params": null
|
126 |
+
}
|
checkpoint-4500/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3350580c294f56a53f315e7116456aa8a6b781a2cbddf934cc34d2982050e50f
|
3 |
+
size 4795
|
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.46.2"
|
32 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bd22c527ff40f33420b5810851a805d92d443d73a9ae0a3c3e83d683a3913d05
|
3 |
+
size 343223968
|
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 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3350580c294f56a53f315e7116456aa8a6b781a2cbddf934cc34d2982050e50f
|
3 |
+
size 4795
|