bgonzalezbustamante commited on
Commit
2ea07e6
·
verified ·
1 Parent(s): 9582498

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - autotrain
5
+ - text-classification
6
+ base_model: dccuchile/bert-base-spanish-wwm-cased
7
+ widget:
8
+ - text: "I love AutoTrain"
9
+ ---
10
+
11
+ # Model Trained Using AutoTrain
12
+
13
+ - Problem type: Text Classification
14
+
15
+ ## Validation Metrics
16
+ loss: 0.41906410455703735
17
+
18
+ f1: 0.8493150684931506
19
+
20
+ precision: 0.8157894736842105
21
+
22
+ recall: 0.8857142857142857
23
+
24
+ auc: 0.9059649122807018
25
+
26
+ accuracy: 0.835
checkpoint-100/config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dccuchile/bert-base-spanish-wwm-cased",
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": "NONTOXIC",
15
+ "1": "TOXIC"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "NONTOXIC": 0,
21
+ "TOXIC": 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
+ "output_past": true,
29
+ "pad_token_id": 1,
30
+ "position_embedding_type": "absolute",
31
+ "problem_type": "single_label_classification",
32
+ "torch_dtype": "float32",
33
+ "transformers_version": "4.45.0",
34
+ "type_vocab_size": 2,
35
+ "use_cache": true,
36
+ "vocab_size": 31002
37
+ }
checkpoint-100/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:911bd376efd40f4cff5484f0dc85ec7f956f1c9699751a7a36e11b9c3286b293
3
+ size 439433208
checkpoint-100/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1327a5885c81d90287c85a9f2ee98b15f567b904190d554781baaf5069852afc
3
+ size 878981882
checkpoint-100/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18960c194b39c1c762e07eaeaf2c6bd3d4e437ef57953721af826bd8bfce0b40
3
+ size 13990
checkpoint-100/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d035e61f1c66cd4befda09e39359b5d11abe5b64d7c41726de679803569f208e
3
+ size 1064
checkpoint-100/trainer_state.json ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.41906410455703735,
3
+ "best_model_checkpoint": "autotrain-f7fct-dx9rn/checkpoint-100",
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 100,
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
+ "grad_norm": 3.968233823776245,
14
+ "learning_rate": 8.333333333333334e-06,
15
+ "loss": 0.7162,
16
+ "step": 5
17
+ },
18
+ {
19
+ "epoch": 0.1,
20
+ "grad_norm": 5.004212856292725,
21
+ "learning_rate": 1.6666666666666667e-05,
22
+ "loss": 0.702,
23
+ "step": 10
24
+ },
25
+ {
26
+ "epoch": 0.15,
27
+ "grad_norm": 5.395503520965576,
28
+ "learning_rate": 2.5e-05,
29
+ "loss": 0.7072,
30
+ "step": 15
31
+ },
32
+ {
33
+ "epoch": 0.2,
34
+ "grad_norm": 4.344860076904297,
35
+ "learning_rate": 3.3333333333333335e-05,
36
+ "loss": 0.722,
37
+ "step": 20
38
+ },
39
+ {
40
+ "epoch": 0.25,
41
+ "grad_norm": 3.5571045875549316,
42
+ "learning_rate": 4.166666666666667e-05,
43
+ "loss": 0.6178,
44
+ "step": 25
45
+ },
46
+ {
47
+ "epoch": 0.3,
48
+ "grad_norm": 7.521437644958496,
49
+ "learning_rate": 5e-05,
50
+ "loss": 0.6845,
51
+ "step": 30
52
+ },
53
+ {
54
+ "epoch": 0.35,
55
+ "grad_norm": 5.477353096008301,
56
+ "learning_rate": 4.9074074074074075e-05,
57
+ "loss": 0.6131,
58
+ "step": 35
59
+ },
60
+ {
61
+ "epoch": 0.4,
62
+ "grad_norm": 11.997583389282227,
63
+ "learning_rate": 4.814814814814815e-05,
64
+ "loss": 0.7953,
65
+ "step": 40
66
+ },
67
+ {
68
+ "epoch": 0.45,
69
+ "grad_norm": 6.525259017944336,
70
+ "learning_rate": 4.722222222222222e-05,
71
+ "loss": 0.7484,
72
+ "step": 45
73
+ },
74
+ {
75
+ "epoch": 0.5,
76
+ "grad_norm": 7.6074748039245605,
77
+ "learning_rate": 4.62962962962963e-05,
78
+ "loss": 0.7293,
79
+ "step": 50
80
+ },
81
+ {
82
+ "epoch": 0.55,
83
+ "grad_norm": 6.682773590087891,
84
+ "learning_rate": 4.5370370370370374e-05,
85
+ "loss": 0.6188,
86
+ "step": 55
87
+ },
88
+ {
89
+ "epoch": 0.6,
90
+ "grad_norm": 4.664694786071777,
91
+ "learning_rate": 4.4444444444444447e-05,
92
+ "loss": 0.5287,
93
+ "step": 60
94
+ },
95
+ {
96
+ "epoch": 0.65,
97
+ "grad_norm": 5.581724643707275,
98
+ "learning_rate": 4.351851851851852e-05,
99
+ "loss": 0.5358,
100
+ "step": 65
101
+ },
102
+ {
103
+ "epoch": 0.7,
104
+ "grad_norm": 14.359504699707031,
105
+ "learning_rate": 4.259259259259259e-05,
106
+ "loss": 0.4202,
107
+ "step": 70
108
+ },
109
+ {
110
+ "epoch": 0.75,
111
+ "grad_norm": 7.6025919914245605,
112
+ "learning_rate": 4.166666666666667e-05,
113
+ "loss": 0.5042,
114
+ "step": 75
115
+ },
116
+ {
117
+ "epoch": 0.8,
118
+ "grad_norm": 16.40511703491211,
119
+ "learning_rate": 4.074074074074074e-05,
120
+ "loss": 0.4972,
121
+ "step": 80
122
+ },
123
+ {
124
+ "epoch": 0.85,
125
+ "grad_norm": 7.792325973510742,
126
+ "learning_rate": 3.981481481481482e-05,
127
+ "loss": 0.8613,
128
+ "step": 85
129
+ },
130
+ {
131
+ "epoch": 0.9,
132
+ "grad_norm": 4.322792053222656,
133
+ "learning_rate": 3.888888888888889e-05,
134
+ "loss": 0.4195,
135
+ "step": 90
136
+ },
137
+ {
138
+ "epoch": 0.95,
139
+ "grad_norm": 3.8841655254364014,
140
+ "learning_rate": 3.7962962962962964e-05,
141
+ "loss": 0.3093,
142
+ "step": 95
143
+ },
144
+ {
145
+ "epoch": 1.0,
146
+ "grad_norm": 17.78056526184082,
147
+ "learning_rate": 3.7037037037037037e-05,
148
+ "loss": 0.426,
149
+ "step": 100
150
+ },
151
+ {
152
+ "epoch": 1.0,
153
+ "eval_accuracy": 0.835,
154
+ "eval_auc": 0.9059649122807018,
155
+ "eval_f1": 0.8493150684931506,
156
+ "eval_loss": 0.41906410455703735,
157
+ "eval_precision": 0.8157894736842105,
158
+ "eval_recall": 0.8857142857142857,
159
+ "eval_runtime": 32.1015,
160
+ "eval_samples_per_second": 6.23,
161
+ "eval_steps_per_second": 0.405,
162
+ "step": 100
163
+ }
164
+ ],
165
+ "logging_steps": 5,
166
+ "max_steps": 300,
167
+ "num_input_tokens_seen": 0,
168
+ "num_train_epochs": 3,
169
+ "save_steps": 500,
170
+ "stateful_callbacks": {
171
+ "EarlyStoppingCallback": {
172
+ "args": {
173
+ "early_stopping_patience": 5,
174
+ "early_stopping_threshold": 0.01
175
+ },
176
+ "attributes": {
177
+ "early_stopping_patience_counter": 0
178
+ }
179
+ },
180
+ "TrainerControl": {
181
+ "args": {
182
+ "should_epoch_stop": false,
183
+ "should_evaluate": false,
184
+ "should_log": false,
185
+ "should_save": true,
186
+ "should_training_stop": false
187
+ },
188
+ "attributes": {}
189
+ }
190
+ },
191
+ "total_flos": 52622211072000.0,
192
+ "train_batch_size": 8,
193
+ "trial_name": null,
194
+ "trial_params": null
195
+ }
checkpoint-100/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8081ca9a5609f7f25104da7581a3c3ae42b8f112159708d15fb47ba1f45a130a
3
+ size 5240
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dccuchile/bert-base-spanish-wwm-cased",
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": "NONTOXIC",
15
+ "1": "TOXIC"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "NONTOXIC": 0,
21
+ "TOXIC": 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
+ "output_past": true,
29
+ "pad_token_id": 1,
30
+ "position_embedding_type": "absolute",
31
+ "problem_type": "single_label_classification",
32
+ "torch_dtype": "float32",
33
+ "transformers_version": "4.45.0",
34
+ "type_vocab_size": 2,
35
+ "use_cache": true,
36
+ "vocab_size": 31002
37
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:911bd376efd40f4cff5484f0dc85ec7f956f1c9699751a7a36e11b9c3286b293
3
+ size 439433208
runs/Nov04_17-05-46_r-bgonzalezbustamante-autotrain-cpu-basic-5k2apkzj-6b3ec-0ktiq/events.out.tfevents.1730739948.r-bgonzalezbustamante-autotrain-cpu-basic-5k2apkzj-6b3ec-0ktiq.106.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:177aa53810e05ed4c85c870370242d0385c430728dd9b4815cccd720d56ae745
3
- size 15373
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b88fc2ad44ee0786528cf03a3c51b58cd1a44793e489e0f53d0a8e26053d9f4
3
+ size 19622
runs/Nov04_17-05-46_r-bgonzalezbustamante-autotrain-cpu-basic-5k2apkzj-6b3ec-0ktiq/events.out.tfevents.1730741637.r-bgonzalezbustamante-autotrain-cpu-basic-5k2apkzj-6b3ec-0ktiq.106.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75c885efe88003175df1ed86da717ae71186cc435f1d7d9a28f84a9a0a165f0d
3
+ size 607
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[MASK]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "[PAD]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "3": {
20
+ "content": "[UNK]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "4": {
28
+ "content": "[CLS]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "5": {
36
+ "content": "[SEP]",
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": false,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": false,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
56
+ "unk_token": "[UNK]"
57
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8081ca9a5609f7f25104da7581a3c3ae42b8f112159708d15fb47ba1f45a130a
3
+ size 5240
training_params.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "autotrain-f7fct-dx9rn/autotrain-data",
3
+ "model": "dccuchile/bert-base-spanish-wwm-cased",
4
+ "lr": 5e-05,
5
+ "epochs": 3,
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": "autotrain-f7fct-dx9rn",
21
+ "auto_find_batch_size": false,
22
+ "mixed_precision": "fp16",
23
+ "save_total_limit": 1,
24
+ "push_to_hub": true,
25
+ "eval_strategy": "epoch",
26
+ "username": "bgonzalezbustamante",
27
+ "log": "tensorboard",
28
+ "early_stopping_patience": 5,
29
+ "early_stopping_threshold": 0.01
30
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff