MatteoWood
commited on
Commit
•
d59cb29
1
Parent(s):
b2928d4
Upload folder using huggingface_hub
Browse files- README.md +27 -0
- checkpoint-2125/config.json +36 -0
- checkpoint-2125/model.safetensors +3 -0
- checkpoint-2125/optimizer.pt +3 -0
- checkpoint-2125/rng_state.pth +3 -0
- checkpoint-2125/scheduler.pt +3 -0
- checkpoint-2125/trainer_state.json +160 -0
- checkpoint-2125/training_args.bin +3 -0
- config.json +36 -0
- model.safetensors +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +55 -0
- training_args.bin +3 -0
- training_params.json +30 -0
- vocab.txt +0 -0
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-sexism-classifier-aug1000
|
10 |
+
---
|
11 |
+
|
12 |
+
# Model Trained Using AutoTrain
|
13 |
+
|
14 |
+
- Problem type: Text Classification
|
15 |
+
|
16 |
+
## Validation Metrics
|
17 |
+
loss: 0.40127208828926086
|
18 |
+
|
19 |
+
f1: 0.6585251291686237
|
20 |
+
|
21 |
+
precision: 0.6154521510096576
|
22 |
+
|
23 |
+
recall: 0.7080808080808081
|
24 |
+
|
25 |
+
auc: 0.8725866639820129
|
26 |
+
|
27 |
+
accuracy: 0.81825
|
checkpoint-2125/config.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "bert-base-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": 768,
|
13 |
+
"id2label": {
|
14 |
+
"0": "not sexist",
|
15 |
+
"1": "sexist"
|
16 |
+
},
|
17 |
+
"initializer_range": 0.02,
|
18 |
+
"intermediate_size": 3072,
|
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": 12,
|
27 |
+
"num_hidden_layers": 12,
|
28 |
+
"pad_token_id": 0,
|
29 |
+
"position_embedding_type": "absolute",
|
30 |
+
"problem_type": "single_label_classification",
|
31 |
+
"torch_dtype": "float32",
|
32 |
+
"transformers_version": "4.36.1",
|
33 |
+
"type_vocab_size": 2,
|
34 |
+
"use_cache": true,
|
35 |
+
"vocab_size": 30522
|
36 |
+
}
|
checkpoint-2125/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:57426b4e39038e7c7cd53e0f234d11f3df865d431e798f040dbec54883582c10
|
3 |
+
size 437958648
|
checkpoint-2125/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c47a68a3c6d654512cf2c4782992279bd20006c086635ce0abb7423799639d1f
|
3 |
+
size 876032762
|
checkpoint-2125/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ea80c828fda242274420c31869cb79ef9697d9a196c824561751c1bf181c217f
|
3 |
+
size 13990
|
checkpoint-2125/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a141b17ab5b122bc9546e16075353f781c23e23a8e5a1d6643d35f05d6a7b510
|
3 |
+
size 1064
|
checkpoint-2125/trainer_state.json
ADDED
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.40127208828926086,
|
3 |
+
"best_model_checkpoint": "/tmp/model/checkpoint-2125",
|
4 |
+
"epoch": 1.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 2125,
|
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": 4.703668861712135e-06,
|
14 |
+
"loss": 0.6976,
|
15 |
+
"step": 100
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"epoch": 0.09,
|
19 |
+
"learning_rate": 9.40733772342427e-06,
|
20 |
+
"loss": 0.5756,
|
21 |
+
"step": 200
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"epoch": 0.14,
|
25 |
+
"learning_rate": 1.4111006585136408e-05,
|
26 |
+
"loss": 0.5905,
|
27 |
+
"step": 300
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"epoch": 0.19,
|
31 |
+
"learning_rate": 1.881467544684854e-05,
|
32 |
+
"loss": 0.5445,
|
33 |
+
"step": 400
|
34 |
+
},
|
35 |
+
{
|
36 |
+
"epoch": 0.24,
|
37 |
+
"learning_rate": 2.3518344308560677e-05,
|
38 |
+
"loss": 0.5061,
|
39 |
+
"step": 500
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 0.28,
|
43 |
+
"learning_rate": 2.8222013170272817e-05,
|
44 |
+
"loss": 0.4163,
|
45 |
+
"step": 600
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"epoch": 0.33,
|
49 |
+
"learning_rate": 3.292568203198495e-05,
|
50 |
+
"loss": 0.4063,
|
51 |
+
"step": 700
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.38,
|
55 |
+
"learning_rate": 3.762935089369708e-05,
|
56 |
+
"loss": 0.4095,
|
57 |
+
"step": 800
|
58 |
+
},
|
59 |
+
{
|
60 |
+
"epoch": 0.42,
|
61 |
+
"learning_rate": 4.233301975540922e-05,
|
62 |
+
"loss": 0.4238,
|
63 |
+
"step": 900
|
64 |
+
},
|
65 |
+
{
|
66 |
+
"epoch": 0.47,
|
67 |
+
"learning_rate": 4.7036688617121355e-05,
|
68 |
+
"loss": 0.431,
|
69 |
+
"step": 1000
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 0.52,
|
73 |
+
"learning_rate": 4.9806525831416025e-05,
|
74 |
+
"loss": 0.437,
|
75 |
+
"step": 1100
|
76 |
+
},
|
77 |
+
{
|
78 |
+
"epoch": 0.56,
|
79 |
+
"learning_rate": 4.9283622673080946e-05,
|
80 |
+
"loss": 0.4363,
|
81 |
+
"step": 1200
|
82 |
+
},
|
83 |
+
{
|
84 |
+
"epoch": 0.61,
|
85 |
+
"learning_rate": 4.8760719514745873e-05,
|
86 |
+
"loss": 0.4071,
|
87 |
+
"step": 1300
|
88 |
+
},
|
89 |
+
{
|
90 |
+
"epoch": 0.66,
|
91 |
+
"learning_rate": 4.8237816356410795e-05,
|
92 |
+
"loss": 0.4217,
|
93 |
+
"step": 1400
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 0.71,
|
97 |
+
"learning_rate": 4.7714913198075716e-05,
|
98 |
+
"loss": 0.4258,
|
99 |
+
"step": 1500
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 0.75,
|
103 |
+
"learning_rate": 4.7192010039740643e-05,
|
104 |
+
"loss": 0.3626,
|
105 |
+
"step": 1600
|
106 |
+
},
|
107 |
+
{
|
108 |
+
"epoch": 0.8,
|
109 |
+
"learning_rate": 4.6669106881405564e-05,
|
110 |
+
"loss": 0.402,
|
111 |
+
"step": 1700
|
112 |
+
},
|
113 |
+
{
|
114 |
+
"epoch": 0.85,
|
115 |
+
"learning_rate": 4.614620372307049e-05,
|
116 |
+
"loss": 0.4052,
|
117 |
+
"step": 1800
|
118 |
+
},
|
119 |
+
{
|
120 |
+
"epoch": 0.89,
|
121 |
+
"learning_rate": 4.562330056473541e-05,
|
122 |
+
"loss": 0.4162,
|
123 |
+
"step": 1900
|
124 |
+
},
|
125 |
+
{
|
126 |
+
"epoch": 0.94,
|
127 |
+
"learning_rate": 4.5100397406400334e-05,
|
128 |
+
"loss": 0.4147,
|
129 |
+
"step": 2000
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 0.99,
|
133 |
+
"learning_rate": 4.457749424806526e-05,
|
134 |
+
"loss": 0.4177,
|
135 |
+
"step": 2100
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"epoch": 1.0,
|
139 |
+
"eval_accuracy": 0.81825,
|
140 |
+
"eval_auc": 0.8725866639820129,
|
141 |
+
"eval_f1": 0.6585251291686237,
|
142 |
+
"eval_loss": 0.40127208828926086,
|
143 |
+
"eval_precision": 0.6154521510096576,
|
144 |
+
"eval_recall": 0.7080808080808081,
|
145 |
+
"eval_runtime": 648.355,
|
146 |
+
"eval_samples_per_second": 6.169,
|
147 |
+
"eval_steps_per_second": 0.386,
|
148 |
+
"step": 2125
|
149 |
+
}
|
150 |
+
],
|
151 |
+
"logging_steps": 100,
|
152 |
+
"max_steps": 10625,
|
153 |
+
"num_input_tokens_seen": 0,
|
154 |
+
"num_train_epochs": 5,
|
155 |
+
"save_steps": 500,
|
156 |
+
"total_flos": 1118221985280000.0,
|
157 |
+
"train_batch_size": 8,
|
158 |
+
"trial_name": null,
|
159 |
+
"trial_params": null
|
160 |
+
}
|
checkpoint-2125/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1f258d7d3e60c8146d7b80339d8138fe24bd0e2cb0dd36624df653df34e0f46a
|
3 |
+
size 4728
|
config.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "bert-base-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": 768,
|
13 |
+
"id2label": {
|
14 |
+
"0": "not sexist",
|
15 |
+
"1": "sexist"
|
16 |
+
},
|
17 |
+
"initializer_range": 0.02,
|
18 |
+
"intermediate_size": 3072,
|
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": 12,
|
27 |
+
"num_hidden_layers": 12,
|
28 |
+
"pad_token_id": 0,
|
29 |
+
"position_embedding_type": "absolute",
|
30 |
+
"problem_type": "single_label_classification",
|
31 |
+
"torch_dtype": "float32",
|
32 |
+
"transformers_version": "4.36.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:57426b4e39038e7c7cd53e0f234d11f3df865d431e798f040dbec54883582c10
|
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,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:1f258d7d3e60c8146d7b80339d8138fe24bd0e2cb0dd36624df653df34e0f46a
|
3 |
+
size 4728
|
training_params.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"data_path": "MatteoWood/autotrain-data-bert-sexism-classifier-aug1000",
|
3 |
+
"model": "bert-base-uncased",
|
4 |
+
"lr": 5e-05,
|
5 |
+
"epochs": 5,
|
6 |
+
"max_seq_length": 128,
|
7 |
+
"batch_size": 8,
|
8 |
+
"warmup_ratio": 0.1,
|
9 |
+
"gradient_accumulation": 1,
|
10 |
+
"optimizer": "adamw_torch",
|
11 |
+
"scheduler": "linear",
|
12 |
+
"weight_decay": 0.0,
|
13 |
+
"max_grad_norm": 1.0,
|
14 |
+
"seed": 42,
|
15 |
+
"train_split": "train",
|
16 |
+
"valid_split": "validation",
|
17 |
+
"text_column": "autotrain_text",
|
18 |
+
"target_column": "autotrain_label",
|
19 |
+
"logging_steps": -1,
|
20 |
+
"project_name": "/tmp/model",
|
21 |
+
"auto_find_batch_size": false,
|
22 |
+
"mixed_precision": null,
|
23 |
+
"save_total_limit": 1,
|
24 |
+
"save_strategy": "epoch",
|
25 |
+
"push_to_hub": true,
|
26 |
+
"repo_id": "MatteoWood/bert-sexism-classifier-aug1000-0",
|
27 |
+
"evaluation_strategy": "epoch",
|
28 |
+
"username": "MatteoWood",
|
29 |
+
"log": "none"
|
30 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|