dima806 commited on
Commit
2af5ab4
·
verified ·
1 Parent(s): 7a52c11

Upload folder using huggingface_hub

Browse files
checkpoint-4498/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": "human",
13
+ "1": "AI-generated"
14
+ },
15
+ "image_size": 224,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "AI-generated": 1,
20
+ "human": 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.48.1"
32
+ }
checkpoint-4498/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41a2a128a577dc23dc95d9857899398a9a674e263779438513cb58c1ca84661a
3
+ size 343223968
checkpoint-4498/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:156bee8b0ff8742b66994851b36d566bd101d20ec53b3ca26a4bc25ff0a01cd8
3
+ size 686568890
checkpoint-4498/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-4498/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96b448a9122022ec33c3c9907dbee33637ac209499dc4fedabbed5e55251abb2
3
+ size 14244
checkpoint-4498/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18d08a8073ff5d936615326b8e7f2bec8bf3274dd27e30a8cae1df6862dbc0d1
3
+ size 1064
checkpoint-4498/trainer_state.json ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.06474132835865021,
3
+ "best_model_checkpoint": "ai_vs_human_generated_image_detection/checkpoint-4498",
4
+ "epoch": 2.0,
5
+ "eval_steps": 500,
6
+ "global_step": 4498,
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.2223210315695865,
13
+ "grad_norm": 0.812200129032135,
14
+ "learning_rate": 4.664028669553532e-06,
15
+ "loss": 0.3873,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.444642063139173,
20
+ "grad_norm": 0.2490566074848175,
21
+ "learning_rate": 4.290727191279678e-06,
22
+ "loss": 0.1084,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 0.6669630947087595,
27
+ "grad_norm": 2.643937349319458,
28
+ "learning_rate": 3.917425713005824e-06,
29
+ "loss": 0.0839,
30
+ "step": 1500
31
+ },
32
+ {
33
+ "epoch": 0.889284126278346,
34
+ "grad_norm": 1.797574520111084,
35
+ "learning_rate": 3.54412423473197e-06,
36
+ "loss": 0.0725,
37
+ "step": 2000
38
+ },
39
+ {
40
+ "epoch": 1.0,
41
+ "eval_accuracy": 0.9689806128830519,
42
+ "eval_loss": 0.0970255509018898,
43
+ "eval_model_preparation_time": 0.0034,
44
+ "eval_runtime": 119.9306,
45
+ "eval_samples_per_second": 66.664,
46
+ "eval_steps_per_second": 8.338,
47
+ "step": 2249
48
+ },
49
+ {
50
+ "epoch": 1.1116051578479325,
51
+ "grad_norm": 1.6910322904586792,
52
+ "learning_rate": 3.170822756458116e-06,
53
+ "loss": 0.0647,
54
+ "step": 2500
55
+ },
56
+ {
57
+ "epoch": 1.333926189417519,
58
+ "grad_norm": 5.562722206115723,
59
+ "learning_rate": 2.797521278184262e-06,
60
+ "loss": 0.0594,
61
+ "step": 3000
62
+ },
63
+ {
64
+ "epoch": 1.5562472209871054,
65
+ "grad_norm": 7.1707763671875,
66
+ "learning_rate": 2.424219799910408e-06,
67
+ "loss": 0.0467,
68
+ "step": 3500
69
+ },
70
+ {
71
+ "epoch": 1.778568252556692,
72
+ "grad_norm": 0.07602383196353912,
73
+ "learning_rate": 2.0509183216365537e-06,
74
+ "loss": 0.0498,
75
+ "step": 4000
76
+ },
77
+ {
78
+ "epoch": 2.0,
79
+ "eval_accuracy": 0.9787367104440275,
80
+ "eval_loss": 0.06474132835865021,
81
+ "eval_model_preparation_time": 0.0034,
82
+ "eval_runtime": 115.2384,
83
+ "eval_samples_per_second": 69.378,
84
+ "eval_steps_per_second": 8.678,
85
+ "step": 4498
86
+ }
87
+ ],
88
+ "logging_steps": 500,
89
+ "max_steps": 6747,
90
+ "num_input_tokens_seen": 0,
91
+ "num_train_epochs": 3,
92
+ "save_steps": 500,
93
+ "stateful_callbacks": {
94
+ "TrainerControl": {
95
+ "args": {
96
+ "should_epoch_stop": false,
97
+ "should_evaluate": false,
98
+ "should_log": false,
99
+ "should_save": true,
100
+ "should_training_stop": false
101
+ },
102
+ "attributes": {}
103
+ }
104
+ },
105
+ "total_flos": 1.1151872225435935e+19,
106
+ "train_batch_size": 32,
107
+ "trial_name": null,
108
+ "trial_params": null
109
+ }
checkpoint-4498/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:970dd10a027df0366f542c018edf8ca8c648aa741c01d545322516fc1c58498c
3
+ size 5304
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:871b68ec78bb3255291c2611c94384a915cdfad8aebe36b12c079f5f6102fce5
3
  size 343223968
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41a2a128a577dc23dc95d9857899398a9a674e263779438513cb58c1ca84661a
3
  size 343223968
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:98a58791d1445928df8775da8fea14195f443d87f2ecf20bccfef5db1511bf1a
3
  size 5304
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:970dd10a027df0366f542c018edf8ca8c648aa741c01d545322516fc1c58498c
3
  size 5304