Ngit commited on
Commit
c1846f4
1 Parent(s): 11346b1

Upload 11 files

Browse files
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "nreimers/MiniLMv2-L6-H384-distilled-from-BERT-Large",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 384,
11
+ "id2label": {
12
+ "0": "toxic",
13
+ "1": "severe_toxic",
14
+ "2": "obscene",
15
+ "3": "threat",
16
+ "4": "insult",
17
+ "5": "identity_hate"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 1536,
21
+ "label2id": {
22
+ "identity_hate": "5",
23
+ "insult": "4",
24
+ "obscene": "2",
25
+ "severe_toxic": "1",
26
+ "threat": "3",
27
+ "toxic": "0"
28
+ },
29
+ "layer_norm_eps": 1e-12,
30
+ "max_position_embeddings": 512,
31
+ "model_type": "bert",
32
+ "num_attention_heads": 12,
33
+ "num_hidden_layers": 6,
34
+ "pad_token_id": 0,
35
+ "position_embedding_type": "absolute",
36
+ "problem_type": "multi_label_classification",
37
+ "torch_dtype": "float32",
38
+ "transformers_version": "4.35.0",
39
+ "type_vocab_size": 2,
40
+ "use_cache": true,
41
+ "vocab_size": 30522
42
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc06adcf78c0a07772197feb59d827e7285b2d8b4daafc3dbbef4e10c69cbac3
3
+ size 90874112
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4023fd2010f265e2d33bf01816c93464ec88f8f45b29e3256297cbb3ae796152
3
+ size 181811781
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4901343f1db59d78bb10278a4c5bf0aa675f3fdaee60b00b12be742e68de004a
3
+ size 14575
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5d073ca29c5b5c00ca86ac7cf2513d21cbd4551c1105f04d1724baadfb572a8
3
+ size 627
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,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "model_max_length": 512,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
56
+ "unk_token": "[UNK]"
57
+ }
trainer_state.json ADDED
@@ -0,0 +1,292 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.9861040423241723,
3
+ "best_model_checkpoint": "nreimers/MiniLMv2-L6-H384-distilled-from-BERT-Large-finetuned-toxic/checkpoint-6000",
4
+ "epoch": 3.909774436090226,
5
+ "eval_steps": 1000,
6
+ "global_step": 13000,
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.15,
13
+ "learning_rate": 7.518796992481203e-06,
14
+ "loss": 0.6315,
15
+ "step": 500
16
+ },
17
+ {
18
+ "epoch": 0.3,
19
+ "learning_rate": 1.5037593984962406e-05,
20
+ "loss": 0.2862,
21
+ "step": 1000
22
+ },
23
+ {
24
+ "epoch": 0.3,
25
+ "eval_loss": 0.2286241501569748,
26
+ "eval_roc_auc_score": 0.8322393690478088,
27
+ "eval_runtime": 1448.3474,
28
+ "eval_samples_per_second": 44.173,
29
+ "eval_steps_per_second": 0.92,
30
+ "step": 1000
31
+ },
32
+ {
33
+ "epoch": 0.45,
34
+ "learning_rate": 2.255639097744361e-05,
35
+ "loss": 0.1326,
36
+ "step": 1500
37
+ },
38
+ {
39
+ "epoch": 0.6,
40
+ "learning_rate": 3.007518796992481e-05,
41
+ "loss": 0.0947,
42
+ "step": 2000
43
+ },
44
+ {
45
+ "epoch": 0.6,
46
+ "eval_loss": 0.1304231733083725,
47
+ "eval_roc_auc_score": 0.875743139169344,
48
+ "eval_runtime": 1447.2229,
49
+ "eval_samples_per_second": 44.207,
50
+ "eval_steps_per_second": 0.921,
51
+ "step": 2000
52
+ },
53
+ {
54
+ "epoch": 0.75,
55
+ "learning_rate": 3.759398496240601e-05,
56
+ "loss": 0.081,
57
+ "step": 2500
58
+ },
59
+ {
60
+ "epoch": 0.9,
61
+ "learning_rate": 4.511278195488722e-05,
62
+ "loss": 0.0646,
63
+ "step": 3000
64
+ },
65
+ {
66
+ "epoch": 0.9,
67
+ "eval_loss": 0.08389352262020111,
68
+ "eval_roc_auc_score": 0.967879018591784,
69
+ "eval_runtime": 1447.7446,
70
+ "eval_samples_per_second": 44.191,
71
+ "eval_steps_per_second": 0.921,
72
+ "step": 3000
73
+ },
74
+ {
75
+ "epoch": 1.05,
76
+ "learning_rate": 4.970760233918128e-05,
77
+ "loss": 0.058,
78
+ "step": 3500
79
+ },
80
+ {
81
+ "epoch": 1.2,
82
+ "learning_rate": 4.887218045112782e-05,
83
+ "loss": 0.0481,
84
+ "step": 4000
85
+ },
86
+ {
87
+ "epoch": 1.2,
88
+ "eval_loss": 0.06747555732727051,
89
+ "eval_roc_auc_score": 0.9834643964057315,
90
+ "eval_runtime": 1447.8097,
91
+ "eval_samples_per_second": 44.19,
92
+ "eval_steps_per_second": 0.921,
93
+ "step": 4000
94
+ },
95
+ {
96
+ "epoch": 1.35,
97
+ "learning_rate": 4.803675856307435e-05,
98
+ "loss": 0.0454,
99
+ "step": 4500
100
+ },
101
+ {
102
+ "epoch": 1.5,
103
+ "learning_rate": 4.720133667502089e-05,
104
+ "loss": 0.0432,
105
+ "step": 5000
106
+ },
107
+ {
108
+ "epoch": 1.5,
109
+ "eval_loss": 0.06311842054128647,
110
+ "eval_roc_auc_score": 0.9851907554305832,
111
+ "eval_runtime": 1447.771,
112
+ "eval_samples_per_second": 44.191,
113
+ "eval_steps_per_second": 0.921,
114
+ "step": 5000
115
+ },
116
+ {
117
+ "epoch": 1.65,
118
+ "learning_rate": 4.6365914786967416e-05,
119
+ "loss": 0.0403,
120
+ "step": 5500
121
+ },
122
+ {
123
+ "epoch": 1.8,
124
+ "learning_rate": 4.553049289891395e-05,
125
+ "loss": 0.0395,
126
+ "step": 6000
127
+ },
128
+ {
129
+ "epoch": 1.8,
130
+ "eval_loss": 0.05904868617653847,
131
+ "eval_roc_auc_score": 0.9861040423241723,
132
+ "eval_runtime": 1447.5158,
133
+ "eval_samples_per_second": 44.198,
134
+ "eval_steps_per_second": 0.921,
135
+ "step": 6000
136
+ },
137
+ {
138
+ "epoch": 1.95,
139
+ "learning_rate": 4.4695071010860486e-05,
140
+ "loss": 0.0391,
141
+ "step": 6500
142
+ },
143
+ {
144
+ "epoch": 2.11,
145
+ "learning_rate": 4.3859649122807014e-05,
146
+ "loss": 0.0355,
147
+ "step": 7000
148
+ },
149
+ {
150
+ "epoch": 2.11,
151
+ "eval_loss": 0.0542282797396183,
152
+ "eval_roc_auc_score": 0.9848519740606182,
153
+ "eval_runtime": 1447.9782,
154
+ "eval_samples_per_second": 44.184,
155
+ "eval_steps_per_second": 0.921,
156
+ "step": 7000
157
+ },
158
+ {
159
+ "epoch": 2.26,
160
+ "learning_rate": 4.302422723475355e-05,
161
+ "loss": 0.0338,
162
+ "step": 7500
163
+ },
164
+ {
165
+ "epoch": 2.41,
166
+ "learning_rate": 4.2188805346700084e-05,
167
+ "loss": 0.0331,
168
+ "step": 8000
169
+ },
170
+ {
171
+ "epoch": 2.41,
172
+ "eval_loss": 0.05404088273644447,
173
+ "eval_roc_auc_score": 0.9859118025622516,
174
+ "eval_runtime": 1448.289,
175
+ "eval_samples_per_second": 44.175,
176
+ "eval_steps_per_second": 0.92,
177
+ "step": 8000
178
+ },
179
+ {
180
+ "epoch": 2.56,
181
+ "learning_rate": 4.135338345864662e-05,
182
+ "loss": 0.0332,
183
+ "step": 8500
184
+ },
185
+ {
186
+ "epoch": 2.71,
187
+ "learning_rate": 4.051796157059315e-05,
188
+ "loss": 0.0321,
189
+ "step": 9000
190
+ },
191
+ {
192
+ "epoch": 2.71,
193
+ "eval_loss": 0.047978416085243225,
194
+ "eval_roc_auc_score": 0.9852137903731366,
195
+ "eval_runtime": 1448.4616,
196
+ "eval_samples_per_second": 44.17,
197
+ "eval_steps_per_second": 0.92,
198
+ "step": 9000
199
+ },
200
+ {
201
+ "epoch": 2.86,
202
+ "learning_rate": 3.968253968253968e-05,
203
+ "loss": 0.0324,
204
+ "step": 9500
205
+ },
206
+ {
207
+ "epoch": 3.01,
208
+ "learning_rate": 3.884711779448622e-05,
209
+ "loss": 0.0319,
210
+ "step": 10000
211
+ },
212
+ {
213
+ "epoch": 3.01,
214
+ "eval_loss": 0.055611222982406616,
215
+ "eval_roc_auc_score": 0.9852909213651101,
216
+ "eval_runtime": 1448.1598,
217
+ "eval_samples_per_second": 44.179,
218
+ "eval_steps_per_second": 0.92,
219
+ "step": 10000
220
+ },
221
+ {
222
+ "epoch": 3.16,
223
+ "learning_rate": 3.8011695906432746e-05,
224
+ "loss": 0.0278,
225
+ "step": 10500
226
+ },
227
+ {
228
+ "epoch": 3.31,
229
+ "learning_rate": 3.717627401837928e-05,
230
+ "loss": 0.028,
231
+ "step": 11000
232
+ },
233
+ {
234
+ "epoch": 3.31,
235
+ "eval_loss": 0.04669087007641792,
236
+ "eval_roc_auc_score": 0.9856710846934756,
237
+ "eval_runtime": 1447.7255,
238
+ "eval_samples_per_second": 44.192,
239
+ "eval_steps_per_second": 0.921,
240
+ "step": 11000
241
+ },
242
+ {
243
+ "epoch": 3.46,
244
+ "learning_rate": 3.6340852130325816e-05,
245
+ "loss": 0.0283,
246
+ "step": 11500
247
+ },
248
+ {
249
+ "epoch": 3.61,
250
+ "learning_rate": 3.5505430242272344e-05,
251
+ "loss": 0.0287,
252
+ "step": 12000
253
+ },
254
+ {
255
+ "epoch": 3.61,
256
+ "eval_loss": 0.05279074236750603,
257
+ "eval_roc_auc_score": 0.9854943814780995,
258
+ "eval_runtime": 1448.314,
259
+ "eval_samples_per_second": 44.174,
260
+ "eval_steps_per_second": 0.92,
261
+ "step": 12000
262
+ },
263
+ {
264
+ "epoch": 3.76,
265
+ "learning_rate": 3.467000835421888e-05,
266
+ "loss": 0.0277,
267
+ "step": 12500
268
+ },
269
+ {
270
+ "epoch": 3.91,
271
+ "learning_rate": 3.3834586466165414e-05,
272
+ "loss": 0.029,
273
+ "step": 13000
274
+ },
275
+ {
276
+ "epoch": 3.91,
277
+ "eval_loss": 0.052444275468587875,
278
+ "eval_roc_auc_score": 0.9860021739433819,
279
+ "eval_runtime": 1449.0313,
280
+ "eval_samples_per_second": 44.152,
281
+ "eval_steps_per_second": 0.92,
282
+ "step": 13000
283
+ }
284
+ ],
285
+ "logging_steps": 500,
286
+ "max_steps": 33250,
287
+ "num_train_epochs": 10,
288
+ "save_steps": 1000,
289
+ "total_flos": 2.069553146242867e+16,
290
+ "trial_name": null,
291
+ "trial_params": null
292
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8aeecd425e761739ae15f420cac1046cfbe65564d028196d8edba00d6797c136
3
+ size 4283
vocab.txt ADDED
The diff for this file is too large to render. See raw diff