MatteoWood commited on
Commit
1def460
1 Parent(s): 3d6926c

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - autotrain
5
+ - text-classification
6
+ widget:
7
+ - text: "I love AutoTrain"
8
+ datasets:
9
+ - MatteoWood/autotrain-data-bert-large-sexism-classifier
10
+ ---
11
+
12
+ # Model Trained Using AutoTrain
13
+
14
+ - Problem type: Text Classification
15
+
16
+ ## Validation Metrics
17
+ loss: 0.5597109794616699
18
+
19
+ f1: 0.0
20
+
21
+ precision: 0.0
22
+
23
+ recall: 0.0
24
+
25
+ auc: 0.3925796167656633
26
+
27
+ accuracy: 0.7525
checkpoint-2000/config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-large-uncased",
3
+ "_num_labels": 2,
4
+ "architectures": [
5
+ "BertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 1024,
13
+ "id2label": {
14
+ "0": "not sexist",
15
+ "1": "sexist"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 4096,
19
+ "label2id": {
20
+ "not sexist": 0,
21
+ "sexist": 1
22
+ },
23
+ "layer_norm_eps": 1e-12,
24
+ "max_position_embeddings": 512,
25
+ "model_type": "bert",
26
+ "num_attention_heads": 16,
27
+ "num_hidden_layers": 24,
28
+ "pad_token_id": 0,
29
+ "position_embedding_type": "absolute",
30
+ "problem_type": "single_label_classification",
31
+ "torch_dtype": "float32",
32
+ "transformers_version": "4.35.1",
33
+ "type_vocab_size": 2,
34
+ "use_cache": true,
35
+ "vocab_size": 30522
36
+ }
checkpoint-2000/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32a939ba112482a8129e83452a60c42ca929cae94e0b7cb407d2d2acba2a95c8
3
+ size 1340622760
checkpoint-2000/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d804e1d39fee4b58daa08dedf707a1330edad329054a9218fcd3f9fa4a6a8494
3
+ size 2681469421
checkpoint-2000/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da8279f59023299a860dc107777f9ab255386203ea2ea8c6c01da6567232b935
3
+ size 13990
checkpoint-2000/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d119c4c5d23cce317bdeb70b767b03f526edd402ce6be035d0fe238cf760b74a
3
+ size 1064
checkpoint-2000/trainer_state.json ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.5597109794616699,
3
+ "best_model_checkpoint": "/tmp/model/checkpoint-2000",
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 2000,
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.05,
13
+ "learning_rate": 8.333333333333334e-06,
14
+ "loss": 0.6258,
15
+ "step": 100
16
+ },
17
+ {
18
+ "epoch": 0.1,
19
+ "learning_rate": 1.6666666666666667e-05,
20
+ "loss": 0.541,
21
+ "step": 200
22
+ },
23
+ {
24
+ "epoch": 0.15,
25
+ "learning_rate": 2.5e-05,
26
+ "loss": 0.5089,
27
+ "step": 300
28
+ },
29
+ {
30
+ "epoch": 0.2,
31
+ "learning_rate": 3.3333333333333335e-05,
32
+ "loss": 0.5764,
33
+ "step": 400
34
+ },
35
+ {
36
+ "epoch": 0.25,
37
+ "learning_rate": 4.166666666666667e-05,
38
+ "loss": 0.594,
39
+ "step": 500
40
+ },
41
+ {
42
+ "epoch": 0.3,
43
+ "learning_rate": 5e-05,
44
+ "loss": 0.5734,
45
+ "step": 600
46
+ },
47
+ {
48
+ "epoch": 0.35,
49
+ "learning_rate": 4.9074074074074075e-05,
50
+ "loss": 0.5597,
51
+ "step": 700
52
+ },
53
+ {
54
+ "epoch": 0.4,
55
+ "learning_rate": 4.814814814814815e-05,
56
+ "loss": 0.6287,
57
+ "step": 800
58
+ },
59
+ {
60
+ "epoch": 0.45,
61
+ "learning_rate": 4.722222222222222e-05,
62
+ "loss": 0.5691,
63
+ "step": 900
64
+ },
65
+ {
66
+ "epoch": 0.5,
67
+ "learning_rate": 4.62962962962963e-05,
68
+ "loss": 0.5908,
69
+ "step": 1000
70
+ },
71
+ {
72
+ "epoch": 0.55,
73
+ "learning_rate": 4.5370370370370374e-05,
74
+ "loss": 0.5939,
75
+ "step": 1100
76
+ },
77
+ {
78
+ "epoch": 0.6,
79
+ "learning_rate": 4.4444444444444447e-05,
80
+ "loss": 0.5421,
81
+ "step": 1200
82
+ },
83
+ {
84
+ "epoch": 0.65,
85
+ "learning_rate": 4.351851851851852e-05,
86
+ "loss": 0.579,
87
+ "step": 1300
88
+ },
89
+ {
90
+ "epoch": 0.7,
91
+ "learning_rate": 4.259259259259259e-05,
92
+ "loss": 0.5718,
93
+ "step": 1400
94
+ },
95
+ {
96
+ "epoch": 0.75,
97
+ "learning_rate": 4.166666666666667e-05,
98
+ "loss": 0.5933,
99
+ "step": 1500
100
+ },
101
+ {
102
+ "epoch": 0.8,
103
+ "learning_rate": 4.074074074074074e-05,
104
+ "loss": 0.5588,
105
+ "step": 1600
106
+ },
107
+ {
108
+ "epoch": 0.85,
109
+ "learning_rate": 3.981481481481482e-05,
110
+ "loss": 0.5778,
111
+ "step": 1700
112
+ },
113
+ {
114
+ "epoch": 0.9,
115
+ "learning_rate": 3.888888888888889e-05,
116
+ "loss": 0.5536,
117
+ "step": 1800
118
+ },
119
+ {
120
+ "epoch": 0.95,
121
+ "learning_rate": 3.7962962962962964e-05,
122
+ "loss": 0.5748,
123
+ "step": 1900
124
+ },
125
+ {
126
+ "epoch": 1.0,
127
+ "learning_rate": 3.7037037037037037e-05,
128
+ "loss": 0.5504,
129
+ "step": 2000
130
+ },
131
+ {
132
+ "epoch": 1.0,
133
+ "eval_accuracy": 0.7525,
134
+ "eval_auc": 0.3925796167656633,
135
+ "eval_f1": 0.0,
136
+ "eval_loss": 0.5597109794616699,
137
+ "eval_precision": 0.0,
138
+ "eval_recall": 0.0,
139
+ "eval_runtime": 3049.9931,
140
+ "eval_samples_per_second": 1.311,
141
+ "eval_steps_per_second": 0.082,
142
+ "step": 2000
143
+ }
144
+ ],
145
+ "logging_steps": 100,
146
+ "max_steps": 6000,
147
+ "num_train_epochs": 3,
148
+ "save_steps": 500,
149
+ "total_flos": 3727725453312000.0,
150
+ "trial_name": null,
151
+ "trial_params": null
152
+ }
checkpoint-2000/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40f608d1443e276752559b2288c42ab31264db79304459bb8a6a65ae43047283
3
+ size 4600
config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-large-uncased",
3
+ "_num_labels": 2,
4
+ "architectures": [
5
+ "BertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 1024,
13
+ "id2label": {
14
+ "0": "not sexist",
15
+ "1": "sexist"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 4096,
19
+ "label2id": {
20
+ "not sexist": 0,
21
+ "sexist": 1
22
+ },
23
+ "layer_norm_eps": 1e-12,
24
+ "max_position_embeddings": 512,
25
+ "model_type": "bert",
26
+ "num_attention_heads": 16,
27
+ "num_hidden_layers": 24,
28
+ "pad_token_id": 0,
29
+ "position_embedding_type": "absolute",
30
+ "problem_type": "single_label_classification",
31
+ "torch_dtype": "float32",
32
+ "transformers_version": "4.35.1",
33
+ "type_vocab_size": 2,
34
+ "use_cache": true,
35
+ "vocab_size": 30522
36
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32a939ba112482a8129e83452a60c42ca929cae94e0b7cb407d2d2acba2a95c8
3
+ size 1340622760
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": true,
47
+ "mask_token": "[MASK]",
48
+ "model_max_length": 512,
49
+ "pad_token": "[PAD]",
50
+ "sep_token": "[SEP]",
51
+ "strip_accents": null,
52
+ "tokenize_chinese_chars": true,
53
+ "tokenizer_class": "BertTokenizer",
54
+ "unk_token": "[UNK]"
55
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40f608d1443e276752559b2288c42ab31264db79304459bb8a6a65ae43047283
3
+ size 4600
training_params.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"data_path": "MatteoWood/autotrain-data-bert-large-sexism-classifier", "model": "bert-large-uncased", "lr": 5e-05, "epochs": 3, "max_seq_length": 128, "batch_size": 8, "warmup_ratio": 0.1, "gradient_accumulation": 1, "optimizer": "adamw_torch", "scheduler": "linear", "weight_decay": 0.0, "max_grad_norm": 1.0, "seed": 42, "train_split": "train", "valid_split": "validation", "text_column": "autotrain_text", "target_column": "autotrain_label", "logging_steps": -1, "project_name": "/tmp/model", "auto_find_batch_size": false, "fp16": false, "save_total_limit": 1, "save_strategy": "epoch", "push_to_hub": true, "repo_id": "MatteoWood/bert-large-sexism-classifier-0", "evaluation_strategy": "epoch", "username": "MatteoWood", "log": "none"}
vocab.txt ADDED
The diff for this file is too large to render. See raw diff