MatteoWood
commited on
Commit
•
ff0a4aa
1
Parent(s):
4053232
Upload folder using huggingface_hub
Browse files- README.md +27 -0
- checkpoint-2025/config.json +36 -0
- checkpoint-2025/model.safetensors +3 -0
- checkpoint-2025/optimizer.pt +3 -0
- checkpoint-2025/rng_state.pth +3 -0
- checkpoint-2025/scheduler.pt +3 -0
- checkpoint-2025/trainer_state.json +154 -0
- checkpoint-2025/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-aug200
|
10 |
+
---
|
11 |
+
|
12 |
+
# Model Trained Using AutoTrain
|
13 |
+
|
14 |
+
- Problem type: Text Classification
|
15 |
+
|
16 |
+
## Validation Metrics
|
17 |
+
loss: 0.35955047607421875
|
18 |
+
|
19 |
+
f1: 0.5477528089887641
|
20 |
+
|
21 |
+
precision: 0.8986175115207373
|
22 |
+
|
23 |
+
recall: 0.3939393939393939
|
24 |
+
|
25 |
+
auc: 0.8849468102956475
|
26 |
+
|
27 |
+
accuracy: 0.839
|
checkpoint-2025/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-2025/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0deda1e447dd37b2cfeb1b51598faf855c7f51af3d44dc0cca2ccd038885e9fa
|
3 |
+
size 437958648
|
checkpoint-2025/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dd9dbe71af26ddfcbfba35d99ca3b28515d50850946d3903a13e1dac0b0c0f5f
|
3 |
+
size 876032762
|
checkpoint-2025/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a3b842d13cc9d220a7a880f8336af28bb480aef0aeaff25bd82e2cad00d6f791
|
3 |
+
size 13990
|
checkpoint-2025/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:724aae5e4cb898cea91e1d8aa056fca105b950d3665a6fe7ced03b700ab32db8
|
3 |
+
size 1064
|
checkpoint-2025/trainer_state.json
ADDED
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.35955047607421875,
|
3 |
+
"best_model_checkpoint": "/tmp/model/checkpoint-2025",
|
4 |
+
"epoch": 1.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 2025,
|
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.93583415597236e-06,
|
14 |
+
"loss": 0.5941,
|
15 |
+
"step": 100
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"epoch": 0.1,
|
19 |
+
"learning_rate": 9.87166831194472e-06,
|
20 |
+
"loss": 0.5625,
|
21 |
+
"step": 200
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"epoch": 0.15,
|
25 |
+
"learning_rate": 1.4807502467917079e-05,
|
26 |
+
"loss": 0.5233,
|
27 |
+
"step": 300
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"epoch": 0.2,
|
31 |
+
"learning_rate": 1.974333662388944e-05,
|
32 |
+
"loss": 0.443,
|
33 |
+
"step": 400
|
34 |
+
},
|
35 |
+
{
|
36 |
+
"epoch": 0.25,
|
37 |
+
"learning_rate": 2.46791707798618e-05,
|
38 |
+
"loss": 0.4222,
|
39 |
+
"step": 500
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 0.3,
|
43 |
+
"learning_rate": 2.9615004935834158e-05,
|
44 |
+
"loss": 0.4242,
|
45 |
+
"step": 600
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"epoch": 0.35,
|
49 |
+
"learning_rate": 3.455083909180652e-05,
|
50 |
+
"loss": 0.4401,
|
51 |
+
"step": 700
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.4,
|
55 |
+
"learning_rate": 3.948667324777888e-05,
|
56 |
+
"loss": 0.3815,
|
57 |
+
"step": 800
|
58 |
+
},
|
59 |
+
{
|
60 |
+
"epoch": 0.44,
|
61 |
+
"learning_rate": 4.4422507403751234e-05,
|
62 |
+
"loss": 0.3833,
|
63 |
+
"step": 900
|
64 |
+
},
|
65 |
+
{
|
66 |
+
"epoch": 0.49,
|
67 |
+
"learning_rate": 4.93583415597236e-05,
|
68 |
+
"loss": 0.3968,
|
69 |
+
"step": 1000
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 0.54,
|
73 |
+
"learning_rate": 4.952260755048288e-05,
|
74 |
+
"loss": 0.4156,
|
75 |
+
"step": 1100
|
76 |
+
},
|
77 |
+
{
|
78 |
+
"epoch": 0.59,
|
79 |
+
"learning_rate": 4.8973880597014924e-05,
|
80 |
+
"loss": 0.4019,
|
81 |
+
"step": 1200
|
82 |
+
},
|
83 |
+
{
|
84 |
+
"epoch": 0.64,
|
85 |
+
"learning_rate": 4.842515364354697e-05,
|
86 |
+
"loss": 0.3999,
|
87 |
+
"step": 1300
|
88 |
+
},
|
89 |
+
{
|
90 |
+
"epoch": 0.69,
|
91 |
+
"learning_rate": 4.7876426690079015e-05,
|
92 |
+
"loss": 0.4215,
|
93 |
+
"step": 1400
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 0.74,
|
97 |
+
"learning_rate": 4.7327699736611064e-05,
|
98 |
+
"loss": 0.3855,
|
99 |
+
"step": 1500
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 0.79,
|
103 |
+
"learning_rate": 4.677897278314311e-05,
|
104 |
+
"loss": 0.3786,
|
105 |
+
"step": 1600
|
106 |
+
},
|
107 |
+
{
|
108 |
+
"epoch": 0.84,
|
109 |
+
"learning_rate": 4.6230245829675155e-05,
|
110 |
+
"loss": 0.415,
|
111 |
+
"step": 1700
|
112 |
+
},
|
113 |
+
{
|
114 |
+
"epoch": 0.89,
|
115 |
+
"learning_rate": 4.5681518876207204e-05,
|
116 |
+
"loss": 0.4079,
|
117 |
+
"step": 1800
|
118 |
+
},
|
119 |
+
{
|
120 |
+
"epoch": 0.94,
|
121 |
+
"learning_rate": 4.5132791922739246e-05,
|
122 |
+
"loss": 0.4044,
|
123 |
+
"step": 1900
|
124 |
+
},
|
125 |
+
{
|
126 |
+
"epoch": 0.99,
|
127 |
+
"learning_rate": 4.4584064969271295e-05,
|
128 |
+
"loss": 0.3671,
|
129 |
+
"step": 2000
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 1.0,
|
133 |
+
"eval_accuracy": 0.839,
|
134 |
+
"eval_auc": 0.8849468102956475,
|
135 |
+
"eval_f1": 0.5477528089887641,
|
136 |
+
"eval_loss": 0.35955047607421875,
|
137 |
+
"eval_precision": 0.8986175115207373,
|
138 |
+
"eval_recall": 0.3939393939393939,
|
139 |
+
"eval_runtime": 897.0094,
|
140 |
+
"eval_samples_per_second": 4.459,
|
141 |
+
"eval_steps_per_second": 0.279,
|
142 |
+
"step": 2025
|
143 |
+
}
|
144 |
+
],
|
145 |
+
"logging_steps": 100,
|
146 |
+
"max_steps": 10125,
|
147 |
+
"num_input_tokens_seen": 0,
|
148 |
+
"num_train_epochs": 5,
|
149 |
+
"save_steps": 500,
|
150 |
+
"total_flos": 1065599774208000.0,
|
151 |
+
"train_batch_size": 8,
|
152 |
+
"trial_name": null,
|
153 |
+
"trial_params": null
|
154 |
+
}
|
checkpoint-2025/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:06c5011c96c6221d3601f14e2029d12a6e12557326ba91f587068a352aac16f6
|
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:0deda1e447dd37b2cfeb1b51598faf855c7f51af3d44dc0cca2ccd038885e9fa
|
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:06c5011c96c6221d3601f14e2029d12a6e12557326ba91f587068a352aac16f6
|
3 |
+
size 4728
|
training_params.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"data_path": "MatteoWood/autotrain-data-bert-sexism-classifier-aug200",
|
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-aug200-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
|
|