MatteoWood commited on
Commit
f025949
·
1 Parent(s): 1bd7b35

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-hatebert-sexism-classifier
10
+ ---
11
+
12
+ # Model Trained Using AutoTrain
13
+
14
+ - Problem type: Text Classification
15
+
16
+ ## Validation Metrics
17
+ loss: 0.3898809254169464
18
+
19
+ f1: 0.7137662337662338
20
+
21
+ precision: 0.73475935828877
22
+
23
+ recall: 0.693939393939394
24
+
25
+ auc: 0.8955589113728649
26
+
27
+ accuracy: 0.86225
checkpoint-2000/config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "GroNLP/hateBERT",
3
+ "_num_labels": 2,
4
+ "architectures": [
5
+ "BertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "not sexist",
14
+ "1": "sexist"
15
+ },
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "not sexist": 0,
20
+ "sexist": 1
21
+ },
22
+ "layer_norm_eps": 1e-12,
23
+ "max_position_embeddings": 512,
24
+ "model_type": "bert",
25
+ "num_attention_heads": 12,
26
+ "num_hidden_layers": 12,
27
+ "output_past": true,
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:1bfc68ade2a57582899e85852a82e32218e50c18e852c5d945b50a32147e3d74
3
+ size 437958648
checkpoint-2000/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb798d8df7e8cd12ffa1d129e698c3b78db99c37ce40390d45a315dba2552cc6
3
+ size 876032762
checkpoint-2000/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3455de9519cb2af9764292422f4bdb76186276849e12e0620a1920380b40bfd0
3
+ size 13990
checkpoint-2000/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e03df1c7dbec372c494fe8e69c69d1b862d9c4cfe90f66f78b5e436c89b27e5
3
+ size 1064
checkpoint-2000/trainer_state.json ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.3898809254169464,
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": 5e-06,
14
+ "loss": 0.7412,
15
+ "step": 100
16
+ },
17
+ {
18
+ "epoch": 0.1,
19
+ "learning_rate": 1e-05,
20
+ "loss": 0.5394,
21
+ "step": 200
22
+ },
23
+ {
24
+ "epoch": 0.15,
25
+ "learning_rate": 1.5e-05,
26
+ "loss": 0.4858,
27
+ "step": 300
28
+ },
29
+ {
30
+ "epoch": 0.2,
31
+ "learning_rate": 2e-05,
32
+ "loss": 0.4178,
33
+ "step": 400
34
+ },
35
+ {
36
+ "epoch": 0.25,
37
+ "learning_rate": 2.5e-05,
38
+ "loss": 0.3928,
39
+ "step": 500
40
+ },
41
+ {
42
+ "epoch": 0.3,
43
+ "learning_rate": 3e-05,
44
+ "loss": 0.4125,
45
+ "step": 600
46
+ },
47
+ {
48
+ "epoch": 0.35,
49
+ "learning_rate": 3.5e-05,
50
+ "loss": 0.3896,
51
+ "step": 700
52
+ },
53
+ {
54
+ "epoch": 0.4,
55
+ "learning_rate": 4e-05,
56
+ "loss": 0.3878,
57
+ "step": 800
58
+ },
59
+ {
60
+ "epoch": 0.45,
61
+ "learning_rate": 4.5e-05,
62
+ "loss": 0.3794,
63
+ "step": 900
64
+ },
65
+ {
66
+ "epoch": 0.5,
67
+ "learning_rate": 5e-05,
68
+ "loss": 0.4038,
69
+ "step": 1000
70
+ },
71
+ {
72
+ "epoch": 0.55,
73
+ "learning_rate": 4.9444444444444446e-05,
74
+ "loss": 0.399,
75
+ "step": 1100
76
+ },
77
+ {
78
+ "epoch": 0.6,
79
+ "learning_rate": 4.888888888888889e-05,
80
+ "loss": 0.393,
81
+ "step": 1200
82
+ },
83
+ {
84
+ "epoch": 0.65,
85
+ "learning_rate": 4.8333333333333334e-05,
86
+ "loss": 0.4145,
87
+ "step": 1300
88
+ },
89
+ {
90
+ "epoch": 0.7,
91
+ "learning_rate": 4.7777777777777784e-05,
92
+ "loss": 0.3391,
93
+ "step": 1400
94
+ },
95
+ {
96
+ "epoch": 0.75,
97
+ "learning_rate": 4.722222222222222e-05,
98
+ "loss": 0.4212,
99
+ "step": 1500
100
+ },
101
+ {
102
+ "epoch": 0.8,
103
+ "learning_rate": 4.666666666666667e-05,
104
+ "loss": 0.3693,
105
+ "step": 1600
106
+ },
107
+ {
108
+ "epoch": 0.85,
109
+ "learning_rate": 4.6111111111111115e-05,
110
+ "loss": 0.3795,
111
+ "step": 1700
112
+ },
113
+ {
114
+ "epoch": 0.9,
115
+ "learning_rate": 4.555555555555556e-05,
116
+ "loss": 0.368,
117
+ "step": 1800
118
+ },
119
+ {
120
+ "epoch": 0.95,
121
+ "learning_rate": 4.5e-05,
122
+ "loss": 0.3376,
123
+ "step": 1900
124
+ },
125
+ {
126
+ "epoch": 1.0,
127
+ "learning_rate": 4.4444444444444447e-05,
128
+ "loss": 0.3751,
129
+ "step": 2000
130
+ },
131
+ {
132
+ "epoch": 1.0,
133
+ "eval_accuracy": 0.86225,
134
+ "eval_auc": 0.8955589113728649,
135
+ "eval_f1": 0.7137662337662338,
136
+ "eval_loss": 0.3898809254169464,
137
+ "eval_precision": 0.73475935828877,
138
+ "eval_recall": 0.693939393939394,
139
+ "eval_runtime": 640.7343,
140
+ "eval_samples_per_second": 6.243,
141
+ "eval_steps_per_second": 0.39,
142
+ "step": 2000
143
+ }
144
+ ],
145
+ "logging_steps": 100,
146
+ "max_steps": 10000,
147
+ "num_train_epochs": 5,
148
+ "save_steps": 500,
149
+ "total_flos": 1052444221440000.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:f6f8942a5e206856a430ea8cefa9ac99f9fd1491cf95d0fb7f4ee500f420c50e
3
+ size 4600
config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "GroNLP/hateBERT",
3
+ "_num_labels": 2,
4
+ "architectures": [
5
+ "BertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "not sexist",
14
+ "1": "sexist"
15
+ },
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "not sexist": 0,
20
+ "sexist": 1
21
+ },
22
+ "layer_norm_eps": 1e-12,
23
+ "max_position_embeddings": 512,
24
+ "model_type": "bert",
25
+ "num_attention_heads": 12,
26
+ "num_hidden_layers": 12,
27
+ "output_past": true,
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:1bfc68ade2a57582899e85852a82e32218e50c18e852c5d945b50a32147e3d74
3
+ size 437958648
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,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "mask_token": "[MASK]",
49
+ "max_len": 512,
50
+ "model_max_length": 512,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6f8942a5e206856a430ea8cefa9ac99f9fd1491cf95d0fb7f4ee500f420c50e
3
+ size 4600
training_params.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"data_path": "MatteoWood/autotrain-data-hatebert-sexism-classifier", "model": "GroNLP/hateBERT", "lr": 5e-05, "epochs": 5, "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/hatebert-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