prithivMLmods commited on
Commit
6c98bc8
·
verified ·
1 Parent(s): acb28d8

Upload folder using huggingface_hub

Browse files
checkpoint-1656/config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ViTForImageClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.0,
6
+ "encoder_stride": 16,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.0,
9
+ "hidden_size": 768,
10
+ "id2label": {
11
+ "0": "Anime Picture",
12
+ "1": "Hentai",
13
+ "2": "Neutral",
14
+ "3": "Pornography",
15
+ "4": "Enticing or Sensual"
16
+ },
17
+ "image_size": 224,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "Anime Picture": 0,
22
+ "Enticing or Sensual": 4,
23
+ "Hentai": 1,
24
+ "Neutral": 2,
25
+ "Pornography": 3
26
+ },
27
+ "layer_norm_eps": 1e-12,
28
+ "model_type": "vit",
29
+ "num_attention_heads": 12,
30
+ "num_channels": 3,
31
+ "num_hidden_layers": 12,
32
+ "patch_size": 16,
33
+ "pooler_act": "tanh",
34
+ "pooler_output_size": 768,
35
+ "problem_type": "single_label_classification",
36
+ "qkv_bias": true,
37
+ "torch_dtype": "float32",
38
+ "transformers_version": "4.50.3"
39
+ }
checkpoint-1656/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:471d15d6317b6aa63c0a189b1a109ceb28c591769c714c081ebe28f3b863c4e5
3
+ size 343233204
checkpoint-1656/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:78d38df56e2c544d534c6ac19db233b6c03f970485e0e2281dfd1184ded5ab77
3
+ size 686587322
checkpoint-1656/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-1656/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66b395f57c7ddce57e9ef1719606f78ac267efd46ac9e0cacd7f473229ff44b2
3
+ size 14244
checkpoint-1656/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9acce8212080e26ffb0ee9167f4bb838cc79b58ce0b9d9e43557b4f2f85c2bf
3
+ size 1064
checkpoint-1656/trainer_state.json ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": 1656,
3
+ "best_metric": 0.11725633591413498,
4
+ "best_model_checkpoint": "vit-finetune-full/checkpoint-1656",
5
+ "epoch": 2.0,
6
+ "eval_steps": 500,
7
+ "global_step": 1656,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.6038647342995169,
14
+ "grad_norm": 2.18871808052063,
15
+ "learning_rate": 0.0001439601494396015,
16
+ "loss": 0.509,
17
+ "step": 500
18
+ },
19
+ {
20
+ "epoch": 1.0,
21
+ "eval_accuracy": 0.9316542687761961,
22
+ "eval_loss": 0.19453661143779755,
23
+ "eval_model_preparation_time": 0.0026,
24
+ "eval_runtime": 487.9701,
25
+ "eval_samples_per_second": 54.272,
26
+ "eval_steps_per_second": 6.785,
27
+ "step": 828
28
+ },
29
+ {
30
+ "epoch": 1.2077294685990339,
31
+ "grad_norm": 1.5228098630905151,
32
+ "learning_rate": 8.16936488169365e-05,
33
+ "loss": 0.2947,
34
+ "step": 1000
35
+ },
36
+ {
37
+ "epoch": 1.8115942028985508,
38
+ "grad_norm": 2.581810712814331,
39
+ "learning_rate": 1.9427148194271483e-05,
40
+ "loss": 0.1994,
41
+ "step": 1500
42
+ },
43
+ {
44
+ "epoch": 2.0,
45
+ "eval_accuracy": 0.9604652040931918,
46
+ "eval_loss": 0.11725633591413498,
47
+ "eval_model_preparation_time": 0.0026,
48
+ "eval_runtime": 490.7935,
49
+ "eval_samples_per_second": 53.96,
50
+ "eval_steps_per_second": 6.746,
51
+ "step": 1656
52
+ }
53
+ ],
54
+ "logging_steps": 500,
55
+ "max_steps": 1656,
56
+ "num_input_tokens_seen": 0,
57
+ "num_train_epochs": 2,
58
+ "save_steps": 500,
59
+ "stateful_callbacks": {
60
+ "TrainerControl": {
61
+ "args": {
62
+ "should_epoch_stop": false,
63
+ "should_evaluate": false,
64
+ "should_log": false,
65
+ "should_save": true,
66
+ "should_training_stop": true
67
+ },
68
+ "attributes": {}
69
+ }
70
+ },
71
+ "total_flos": 4.1045510823383163e+18,
72
+ "train_batch_size": 32,
73
+ "trial_name": null,
74
+ "trial_params": null
75
+ }
checkpoint-1656/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf8429bc5de8f4c686920feaf4c77bce4a9144ff1dd41e0909a840de15b433b4
3
+ size 5304
checkpoint-828/config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ViTForImageClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.0,
6
+ "encoder_stride": 16,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.0,
9
+ "hidden_size": 768,
10
+ "id2label": {
11
+ "0": "Anime Picture",
12
+ "1": "Hentai",
13
+ "2": "Neutral",
14
+ "3": "Pornography",
15
+ "4": "Enticing or Sensual"
16
+ },
17
+ "image_size": 224,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "Anime Picture": 0,
22
+ "Enticing or Sensual": 4,
23
+ "Hentai": 1,
24
+ "Neutral": 2,
25
+ "Pornography": 3
26
+ },
27
+ "layer_norm_eps": 1e-12,
28
+ "model_type": "vit",
29
+ "num_attention_heads": 12,
30
+ "num_channels": 3,
31
+ "num_hidden_layers": 12,
32
+ "patch_size": 16,
33
+ "pooler_act": "tanh",
34
+ "pooler_output_size": 768,
35
+ "problem_type": "single_label_classification",
36
+ "qkv_bias": true,
37
+ "torch_dtype": "float32",
38
+ "transformers_version": "4.50.3"
39
+ }
checkpoint-828/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e0465332ddeadf0300956dd59d0e960bd954e559c23221811b591a840a1cea3
3
+ size 343233204
checkpoint-828/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a3807a0b58faef90888ba8ee845d5c7abbb1faf49a28c9aa8ca01651a3b671b
3
+ size 686587322
checkpoint-828/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-828/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ef17702a0725d2ce6b58c8dbb73765893aabc8ef91b4de533167fc5ea45b4b6
3
+ size 14244
checkpoint-828/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de8ada734783135c2f6fbef37cddc4d2512b4117a6fa4a3a5fa66c6283fe009f
3
+ size 1064
checkpoint-828/trainer_state.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": 828,
3
+ "best_metric": 0.19453661143779755,
4
+ "best_model_checkpoint": "vit-finetune-full/checkpoint-828",
5
+ "epoch": 1.0,
6
+ "eval_steps": 500,
7
+ "global_step": 828,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.6038647342995169,
14
+ "grad_norm": 2.18871808052063,
15
+ "learning_rate": 0.0001439601494396015,
16
+ "loss": 0.509,
17
+ "step": 500
18
+ },
19
+ {
20
+ "epoch": 1.0,
21
+ "eval_accuracy": 0.9316542687761961,
22
+ "eval_loss": 0.19453661143779755,
23
+ "eval_model_preparation_time": 0.0026,
24
+ "eval_runtime": 487.9701,
25
+ "eval_samples_per_second": 54.272,
26
+ "eval_steps_per_second": 6.785,
27
+ "step": 828
28
+ }
29
+ ],
30
+ "logging_steps": 500,
31
+ "max_steps": 1656,
32
+ "num_input_tokens_seen": 0,
33
+ "num_train_epochs": 2,
34
+ "save_steps": 500,
35
+ "stateful_callbacks": {
36
+ "TrainerControl": {
37
+ "args": {
38
+ "should_epoch_stop": false,
39
+ "should_evaluate": false,
40
+ "should_log": false,
41
+ "should_save": true,
42
+ "should_training_stop": false
43
+ },
44
+ "attributes": {}
45
+ }
46
+ },
47
+ "total_flos": 2.0522755411691581e+18,
48
+ "train_batch_size": 32,
49
+ "trial_name": null,
50
+ "trial_params": null
51
+ }
checkpoint-828/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf8429bc5de8f4c686920feaf4c77bce4a9144ff1dd41e0909a840de15b433b4
3
+ size 5304
config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ViTForImageClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.0,
6
+ "encoder_stride": 16,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.0,
9
+ "hidden_size": 768,
10
+ "id2label": {
11
+ "0": "Anime Picture",
12
+ "1": "Hentai",
13
+ "2": "Neutral",
14
+ "3": "Pornography",
15
+ "4": "Enticing or Sensual"
16
+ },
17
+ "image_size": 224,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "Anime Picture": 0,
22
+ "Enticing or Sensual": 4,
23
+ "Hentai": 1,
24
+ "Neutral": 2,
25
+ "Pornography": 3
26
+ },
27
+ "layer_norm_eps": 1e-12,
28
+ "model_type": "vit",
29
+ "num_attention_heads": 12,
30
+ "num_channels": 3,
31
+ "num_hidden_layers": 12,
32
+ "patch_size": 16,
33
+ "pooler_act": "tanh",
34
+ "pooler_output_size": 768,
35
+ "problem_type": "single_label_classification",
36
+ "qkv_bias": true,
37
+ "torch_dtype": "float32",
38
+ "transformers_version": "4.50.3"
39
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:471d15d6317b6aa63c0a189b1a109ceb28c591769c714c081ebe28f3b863c4e5
3
+ size 343233204
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:bf8429bc5de8f4c686920feaf4c77bce4a9144ff1dd41e0909a840de15b433b4
3
+ size 5304