Tirath5504
commited on
Commit
•
fae1d7d
1
Parent(s):
54a9a32
Upload 12 files
Browse files- config.json +38 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- optimizer.pt +3 -0
- rng_state.pth +3 -0
- scheduler.pt +3 -0
- special_tokens_map.json +15 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- trainer_state.json +202 -0
- training_args.bin +3 -0
- vocab.json +0 -0
config.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "distilroberta-base",
|
3 |
+
"architectures": [
|
4 |
+
"RobertaForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 768,
|
13 |
+
"id2label": {
|
14 |
+
"0": "HATE-SPEECH",
|
15 |
+
"1": "OFFENSIVE-LANGUAGE",
|
16 |
+
"2": "NEITHER"
|
17 |
+
},
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"intermediate_size": 3072,
|
20 |
+
"label2id": {
|
21 |
+
"HATE-SPEECH": 0,
|
22 |
+
"NEITHER": 2,
|
23 |
+
"OFFENSIVE-LANGUAGE": 1
|
24 |
+
},
|
25 |
+
"layer_norm_eps": 1e-05,
|
26 |
+
"max_position_embeddings": 514,
|
27 |
+
"model_type": "roberta",
|
28 |
+
"num_attention_heads": 12,
|
29 |
+
"num_hidden_layers": 6,
|
30 |
+
"pad_token_id": 1,
|
31 |
+
"position_embedding_type": "absolute",
|
32 |
+
"problem_type": "single_label_classification",
|
33 |
+
"torch_dtype": "float32",
|
34 |
+
"transformers_version": "4.42.4",
|
35 |
+
"type_vocab_size": 1,
|
36 |
+
"use_cache": true,
|
37 |
+
"vocab_size": 50265
|
38 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:509f045b26ee8087bb34349b3e373a232f4298a4465b66907b8b620a8466f5d7
|
3 |
+
size 328495356
|
optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:75ae993fd5a059d271cdc20f698b4b2b3d1cc58d6914acbb9356e86a198a10c6
|
3 |
+
size 657053754
|
rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b2db70640e7fac4dc44868f491f52c8cc3bfe58b1626cec2e01bf9f3621e708e
|
3 |
+
size 14244
|
scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:daa162e1ff57101acb77a3125d873271b540af405e3cb396e60e7357b87dc14e
|
3 |
+
size 1064
|
special_tokens_map.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "<s>",
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"mask_token": {
|
6 |
+
"content": "<mask>",
|
7 |
+
"lstrip": true,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"pad_token": "<pad>",
|
13 |
+
"sep_token": "</s>",
|
14 |
+
"unk_token": "<unk>"
|
15 |
+
}
|
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 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "<s>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"1": {
|
13 |
+
"content": "<pad>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": true,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"2": {
|
21 |
+
"content": "</s>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": true,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"3": {
|
29 |
+
"content": "<unk>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": true,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
},
|
36 |
+
"50264": {
|
37 |
+
"content": "<mask>",
|
38 |
+
"lstrip": true,
|
39 |
+
"normalized": false,
|
40 |
+
"rstrip": false,
|
41 |
+
"single_word": false,
|
42 |
+
"special": true
|
43 |
+
}
|
44 |
+
},
|
45 |
+
"bos_token": "<s>",
|
46 |
+
"clean_up_tokenization_spaces": true,
|
47 |
+
"cls_token": "<s>",
|
48 |
+
"eos_token": "</s>",
|
49 |
+
"errors": "replace",
|
50 |
+
"mask_token": "<mask>",
|
51 |
+
"model_max_length": 512,
|
52 |
+
"pad_token": "<pad>",
|
53 |
+
"sep_token": "</s>",
|
54 |
+
"tokenizer_class": "RobertaTokenizer",
|
55 |
+
"trim_offsets": true,
|
56 |
+
"unk_token": "<unk>"
|
57 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.1553138643503189,
|
3 |
+
"best_model_checkpoint": "speech-multiclassifier-run-2/checkpoint-6384",
|
4 |
+
"epoch": 3.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 9576,
|
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.15664160401002505,
|
13 |
+
"grad_norm": 11.20281982421875,
|
14 |
+
"learning_rate": 1.8955722639933167e-05,
|
15 |
+
"loss": 0.1599,
|
16 |
+
"step": 500
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.3132832080200501,
|
20 |
+
"grad_norm": 16.948055267333984,
|
21 |
+
"learning_rate": 1.7911445279866332e-05,
|
22 |
+
"loss": 0.2132,
|
23 |
+
"step": 1000
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.4699248120300752,
|
27 |
+
"grad_norm": 15.359735488891602,
|
28 |
+
"learning_rate": 1.68671679197995e-05,
|
29 |
+
"loss": 0.2101,
|
30 |
+
"step": 1500
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.6265664160401002,
|
34 |
+
"grad_norm": 0.13909225165843964,
|
35 |
+
"learning_rate": 1.5822890559732666e-05,
|
36 |
+
"loss": 0.1868,
|
37 |
+
"step": 2000
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.7832080200501254,
|
41 |
+
"grad_norm": 1.7620573043823242,
|
42 |
+
"learning_rate": 1.4778613199665832e-05,
|
43 |
+
"loss": 0.1824,
|
44 |
+
"step": 2500
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.9398496240601504,
|
48 |
+
"grad_norm": 2.3290231227874756,
|
49 |
+
"learning_rate": 1.3734335839598997e-05,
|
50 |
+
"loss": 0.1678,
|
51 |
+
"step": 3000
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 1.0,
|
55 |
+
"eval_loss": 0.15620405972003937,
|
56 |
+
"eval_overall-accuracy": 0.9531360112755461,
|
57 |
+
"eval_overall-f1": 0.9531360112755461,
|
58 |
+
"eval_overall-precision": 0.9531360112755461,
|
59 |
+
"eval_overall-recall": 0.9531360112755461,
|
60 |
+
"eval_runtime": 5.7139,
|
61 |
+
"eval_samples_per_second": 496.687,
|
62 |
+
"eval_steps_per_second": 31.152,
|
63 |
+
"step": 3192
|
64 |
+
},
|
65 |
+
{
|
66 |
+
"epoch": 1.0964912280701755,
|
67 |
+
"grad_norm": 0.4430443048477173,
|
68 |
+
"learning_rate": 1.2690058479532166e-05,
|
69 |
+
"loss": 0.1655,
|
70 |
+
"step": 3500
|
71 |
+
},
|
72 |
+
{
|
73 |
+
"epoch": 1.2531328320802004,
|
74 |
+
"grad_norm": 5.565830707550049,
|
75 |
+
"learning_rate": 1.1645781119465331e-05,
|
76 |
+
"loss": 0.1499,
|
77 |
+
"step": 4000
|
78 |
+
},
|
79 |
+
{
|
80 |
+
"epoch": 1.4097744360902256,
|
81 |
+
"grad_norm": 0.9018378257751465,
|
82 |
+
"learning_rate": 1.0601503759398497e-05,
|
83 |
+
"loss": 0.1443,
|
84 |
+
"step": 4500
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"epoch": 1.5664160401002505,
|
88 |
+
"grad_norm": 0.3591144382953644,
|
89 |
+
"learning_rate": 9.557226399331662e-06,
|
90 |
+
"loss": 0.1399,
|
91 |
+
"step": 5000
|
92 |
+
},
|
93 |
+
{
|
94 |
+
"epoch": 1.7230576441102756,
|
95 |
+
"grad_norm": 0.4499484598636627,
|
96 |
+
"learning_rate": 8.512949039264829e-06,
|
97 |
+
"loss": 0.1559,
|
98 |
+
"step": 5500
|
99 |
+
},
|
100 |
+
{
|
101 |
+
"epoch": 1.8796992481203008,
|
102 |
+
"grad_norm": 8.649208068847656,
|
103 |
+
"learning_rate": 7.468671679197995e-06,
|
104 |
+
"loss": 0.1522,
|
105 |
+
"step": 6000
|
106 |
+
},
|
107 |
+
{
|
108 |
+
"epoch": 2.0,
|
109 |
+
"eval_loss": 0.1553138643503189,
|
110 |
+
"eval_overall-accuracy": 0.9531360112755461,
|
111 |
+
"eval_overall-f1": 0.9531360112755461,
|
112 |
+
"eval_overall-precision": 0.9531360112755461,
|
113 |
+
"eval_overall-recall": 0.9531360112755461,
|
114 |
+
"eval_runtime": 5.7234,
|
115 |
+
"eval_samples_per_second": 495.858,
|
116 |
+
"eval_steps_per_second": 31.1,
|
117 |
+
"step": 6384
|
118 |
+
},
|
119 |
+
{
|
120 |
+
"epoch": 2.036340852130326,
|
121 |
+
"grad_norm": 1.2995306253433228,
|
122 |
+
"learning_rate": 6.424394319131162e-06,
|
123 |
+
"loss": 0.1398,
|
124 |
+
"step": 6500
|
125 |
+
},
|
126 |
+
{
|
127 |
+
"epoch": 2.192982456140351,
|
128 |
+
"grad_norm": 0.18944260478019714,
|
129 |
+
"learning_rate": 5.380116959064328e-06,
|
130 |
+
"loss": 0.1164,
|
131 |
+
"step": 7000
|
132 |
+
},
|
133 |
+
{
|
134 |
+
"epoch": 2.3496240601503757,
|
135 |
+
"grad_norm": 4.408690929412842,
|
136 |
+
"learning_rate": 4.335839598997494e-06,
|
137 |
+
"loss": 0.1154,
|
138 |
+
"step": 7500
|
139 |
+
},
|
140 |
+
{
|
141 |
+
"epoch": 2.506265664160401,
|
142 |
+
"grad_norm": 0.7239732146263123,
|
143 |
+
"learning_rate": 3.29156223893066e-06,
|
144 |
+
"loss": 0.1208,
|
145 |
+
"step": 8000
|
146 |
+
},
|
147 |
+
{
|
148 |
+
"epoch": 2.662907268170426,
|
149 |
+
"grad_norm": 6.512196063995361,
|
150 |
+
"learning_rate": 2.2472848788638263e-06,
|
151 |
+
"loss": 0.1115,
|
152 |
+
"step": 8500
|
153 |
+
},
|
154 |
+
{
|
155 |
+
"epoch": 2.819548872180451,
|
156 |
+
"grad_norm": 1.97010338306427,
|
157 |
+
"learning_rate": 1.2030075187969925e-06,
|
158 |
+
"loss": 0.1169,
|
159 |
+
"step": 9000
|
160 |
+
},
|
161 |
+
{
|
162 |
+
"epoch": 2.9761904761904763,
|
163 |
+
"grad_norm": 1.1876590251922607,
|
164 |
+
"learning_rate": 1.5873015873015874e-07,
|
165 |
+
"loss": 0.1157,
|
166 |
+
"step": 9500
|
167 |
+
},
|
168 |
+
{
|
169 |
+
"epoch": 3.0,
|
170 |
+
"eval_loss": 0.16947361826896667,
|
171 |
+
"eval_overall-accuracy": 0.9534883720930233,
|
172 |
+
"eval_overall-f1": 0.9534883720930233,
|
173 |
+
"eval_overall-precision": 0.9534883720930233,
|
174 |
+
"eval_overall-recall": 0.9534883720930233,
|
175 |
+
"eval_runtime": 5.6944,
|
176 |
+
"eval_samples_per_second": 498.388,
|
177 |
+
"eval_steps_per_second": 31.259,
|
178 |
+
"step": 9576
|
179 |
+
}
|
180 |
+
],
|
181 |
+
"logging_steps": 500,
|
182 |
+
"max_steps": 9576,
|
183 |
+
"num_input_tokens_seen": 0,
|
184 |
+
"num_train_epochs": 3,
|
185 |
+
"save_steps": 500,
|
186 |
+
"stateful_callbacks": {
|
187 |
+
"TrainerControl": {
|
188 |
+
"args": {
|
189 |
+
"should_epoch_stop": false,
|
190 |
+
"should_evaluate": false,
|
191 |
+
"should_log": false,
|
192 |
+
"should_save": true,
|
193 |
+
"should_training_stop": true
|
194 |
+
},
|
195 |
+
"attributes": {}
|
196 |
+
}
|
197 |
+
},
|
198 |
+
"total_flos": 2641161396896352.0,
|
199 |
+
"train_batch_size": 16,
|
200 |
+
"trial_name": null,
|
201 |
+
"trial_params": null
|
202 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:029185f2c3245c64fde08e06271c6a94b5152fe65da466f7bbb1bff6da69310b
|
3 |
+
size 5176
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|