g8a9 commited on
Commit
12ad2b4
1 Parent(s): 34336b3

Upload folder using huggingface_hub

Browse files
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ checkpoint-*/
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - generated_from_trainer
5
+ model-index:
6
+ - name: deberta-v3-large-harmfulness
7
+ results: []
8
+ ---
9
+
10
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
11
+ should probably proofread and complete it, then remove this comment. -->
12
+
13
+ # deberta-v3-large-harmfulness
14
+
15
+ This model is a fine-tuned version of [microsoft/deberta-v3-large](https://huggingface.co/microsoft/deberta-v3-large) on an unknown dataset.
16
+ It achieves the following results on the evaluation set:
17
+ - Loss: 1.1439
18
+ - Mse: 1.1439
19
+
20
+ ## Model description
21
+
22
+ More information needed
23
+
24
+ ## Intended uses & limitations
25
+
26
+ More information needed
27
+
28
+ ## Training and evaluation data
29
+
30
+ More information needed
31
+
32
+ ## Training procedure
33
+
34
+ ### Training hyperparameters
35
+
36
+ The following hyperparameters were used during training:
37
+ - learning_rate: 2e-05
38
+ - train_batch_size: 8
39
+ - eval_batch_size: 4
40
+ - seed: 42
41
+ - gradient_accumulation_steps: 4
42
+ - total_train_batch_size: 32
43
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
44
+ - lr_scheduler_type: constant
45
+ - num_epochs: 1.0
46
+
47
+ ### Training results
48
+
49
+ | Training Loss | Epoch | Step | Validation Loss | Mse |
50
+ |:-------------:|:-----:|:----:|:---------------:|:------:|
51
+ | 2.1055 | 0.06 | 50 | 1.7626 | 1.7626 |
52
+ | 1.6818 | 0.12 | 100 | 1.4659 | 1.4659 |
53
+ | 1.4062 | 0.18 | 150 | 1.6323 | 1.6323 |
54
+ | 1.4777 | 0.24 | 200 | 1.3776 | 1.3776 |
55
+ | 1.4106 | 0.3 | 250 | 1.3044 | 1.3044 |
56
+ | 1.2702 | 0.37 | 300 | 1.3792 | 1.3792 |
57
+ | 1.4448 | 0.43 | 350 | 1.3048 | 1.3048 |
58
+ | 1.3582 | 0.49 | 400 | 1.2485 | 1.2485 |
59
+ | 1.2357 | 0.55 | 450 | 1.3709 | 1.3709 |
60
+ | 1.1075 | 0.61 | 500 | 1.2538 | 1.2538 |
61
+ | 1.2406 | 0.67 | 550 | 1.1996 | 1.1996 |
62
+ | 1.2309 | 0.73 | 600 | 1.2671 | 1.2671 |
63
+ | 1.194 | 0.79 | 650 | 1.4326 | 1.4326 |
64
+ | 1.2135 | 0.85 | 700 | 1.1763 | 1.1763 |
65
+ | 1.2196 | 0.91 | 750 | 1.1439 | 1.1439 |
66
+ | 1.1983 | 0.97 | 800 | 1.1711 | 1.1711 |
67
+
68
+
69
+ ### Framework versions
70
+
71
+ - Transformers 4.30.1
72
+ - Pytorch 2.0.1+cu117
73
+ - Datasets 2.12.0
74
+ - Tokenizers 0.13.3
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "[MASK]": 128000
3
+ }
all_results.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "eval_loss": 1.1438716650009155,
4
+ "eval_mse": 1.1438715909390142,
5
+ "eval_runtime": 188.9837,
6
+ "eval_samples": 2920,
7
+ "eval_samples_per_second": 15.451,
8
+ "eval_steps_per_second": 3.863,
9
+ "train_loss": 1.4025647422428107,
10
+ "train_runtime": 6674.4502,
11
+ "train_samples": 26279,
12
+ "train_samples_per_second": 3.937,
13
+ "train_steps_per_second": 0.123
14
+ }
config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/deberta-v3-large",
3
+ "architectures": [
4
+ "DebertaV2ForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "finetuning_task": "text-classification",
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 1024,
11
+ "id2label": {
12
+ "0": "LABEL_0"
13
+ },
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 4096,
16
+ "label2id": {
17
+ "LABEL_0": 0
18
+ },
19
+ "layer_norm_eps": 1e-07,
20
+ "max_position_embeddings": 512,
21
+ "max_relative_positions": -1,
22
+ "model_type": "deberta-v2",
23
+ "norm_rel_ebd": "layer_norm",
24
+ "num_attention_heads": 16,
25
+ "num_hidden_layers": 24,
26
+ "pad_token_id": 0,
27
+ "pooler_dropout": 0,
28
+ "pooler_hidden_act": "gelu",
29
+ "pooler_hidden_size": 1024,
30
+ "pos_att_type": [
31
+ "p2c",
32
+ "c2p"
33
+ ],
34
+ "position_biased_input": false,
35
+ "position_buckets": 256,
36
+ "problem_type": "regression",
37
+ "relative_attention": true,
38
+ "share_att_key": true,
39
+ "torch_dtype": "float32",
40
+ "transformers_version": "4.30.1",
41
+ "type_vocab_size": 0,
42
+ "vocab_size": 128100
43
+ }
eval_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "eval_loss": 1.1438716650009155,
4
+ "eval_mse": 1.1438715909390142,
5
+ "eval_runtime": 188.9837,
6
+ "eval_samples": 2920,
7
+ "eval_samples_per_second": 15.451,
8
+ "eval_steps_per_second": 3.863
9
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69a55995538b508d371b6a0d36f0c011a9eeec83bb4cf1b9ebd967d58f65b921
3
+ size 1740392185
special_tokens_map.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "[CLS]",
3
+ "cls_token": "[CLS]",
4
+ "eos_token": "[SEP]",
5
+ "mask_token": "[MASK]",
6
+ "pad_token": "[PAD]",
7
+ "sep_token": "[SEP]",
8
+ "unk_token": "[UNK]"
9
+ }
spm.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c679fbf93643d19aab7ee10c0b99e460bdbc02fedf34b92b05af343b4af586fd
3
+ size 2464616
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "[CLS]",
3
+ "clean_up_tokenization_spaces": true,
4
+ "cls_token": "[CLS]",
5
+ "do_lower_case": false,
6
+ "eos_token": "[SEP]",
7
+ "mask_token": "[MASK]",
8
+ "model_max_length": 1000000000000000019884624838656,
9
+ "pad_token": "[PAD]",
10
+ "sep_token": "[SEP]",
11
+ "sp_model_kwargs": {},
12
+ "split_by_punct": false,
13
+ "tokenizer_class": "DebertaV2Tokenizer",
14
+ "unk_token": "[UNK]",
15
+ "vocab_type": "spm"
16
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "train_loss": 1.4025647422428107,
4
+ "train_runtime": 6674.4502,
5
+ "train_samples": 26279,
6
+ "train_samples_per_second": 3.937,
7
+ "train_steps_per_second": 0.123
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,361 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 1.1438716650009155,
3
+ "best_model_checkpoint": "/data1/attanasiog/safetune/models/checkpoint-750",
4
+ "epoch": 0.9996955859969558,
5
+ "global_step": 821,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 0.03,
12
+ "learning_rate": 2e-05,
13
+ "loss": 3.1406,
14
+ "step": 25
15
+ },
16
+ {
17
+ "epoch": 0.06,
18
+ "learning_rate": 2e-05,
19
+ "loss": 2.1055,
20
+ "step": 50
21
+ },
22
+ {
23
+ "epoch": 0.06,
24
+ "eval_loss": 1.762616515159607,
25
+ "eval_mse": 1.7626165039521147,
26
+ "eval_runtime": 183.7464,
27
+ "eval_samples_per_second": 15.891,
28
+ "eval_steps_per_second": 3.973,
29
+ "step": 50
30
+ },
31
+ {
32
+ "epoch": 0.09,
33
+ "learning_rate": 2e-05,
34
+ "loss": 1.7607,
35
+ "step": 75
36
+ },
37
+ {
38
+ "epoch": 0.12,
39
+ "learning_rate": 2e-05,
40
+ "loss": 1.6818,
41
+ "step": 100
42
+ },
43
+ {
44
+ "epoch": 0.12,
45
+ "eval_loss": 1.4659080505371094,
46
+ "eval_mse": 1.4659080196895005,
47
+ "eval_runtime": 183.1621,
48
+ "eval_samples_per_second": 15.942,
49
+ "eval_steps_per_second": 3.986,
50
+ "step": 100
51
+ },
52
+ {
53
+ "epoch": 0.15,
54
+ "learning_rate": 2e-05,
55
+ "loss": 1.5873,
56
+ "step": 125
57
+ },
58
+ {
59
+ "epoch": 0.18,
60
+ "learning_rate": 2e-05,
61
+ "loss": 1.4062,
62
+ "step": 150
63
+ },
64
+ {
65
+ "epoch": 0.18,
66
+ "eval_loss": 1.6322834491729736,
67
+ "eval_mse": 1.632283383560956,
68
+ "eval_runtime": 183.308,
69
+ "eval_samples_per_second": 15.929,
70
+ "eval_steps_per_second": 3.982,
71
+ "step": 150
72
+ },
73
+ {
74
+ "epoch": 0.21,
75
+ "learning_rate": 2e-05,
76
+ "loss": 1.5638,
77
+ "step": 175
78
+ },
79
+ {
80
+ "epoch": 0.24,
81
+ "learning_rate": 2e-05,
82
+ "loss": 1.4777,
83
+ "step": 200
84
+ },
85
+ {
86
+ "epoch": 0.24,
87
+ "eval_loss": 1.3775594234466553,
88
+ "eval_mse": 1.3775594118336603,
89
+ "eval_runtime": 183.7408,
90
+ "eval_samples_per_second": 15.892,
91
+ "eval_steps_per_second": 3.973,
92
+ "step": 200
93
+ },
94
+ {
95
+ "epoch": 0.27,
96
+ "learning_rate": 2e-05,
97
+ "loss": 1.4016,
98
+ "step": 225
99
+ },
100
+ {
101
+ "epoch": 0.3,
102
+ "learning_rate": 2e-05,
103
+ "loss": 1.4106,
104
+ "step": 250
105
+ },
106
+ {
107
+ "epoch": 0.3,
108
+ "eval_loss": 1.304379940032959,
109
+ "eval_mse": 1.3043799442360644,
110
+ "eval_runtime": 183.2767,
111
+ "eval_samples_per_second": 15.932,
112
+ "eval_steps_per_second": 3.983,
113
+ "step": 250
114
+ },
115
+ {
116
+ "epoch": 0.33,
117
+ "learning_rate": 2e-05,
118
+ "loss": 1.3077,
119
+ "step": 275
120
+ },
121
+ {
122
+ "epoch": 0.37,
123
+ "learning_rate": 2e-05,
124
+ "loss": 1.2702,
125
+ "step": 300
126
+ },
127
+ {
128
+ "epoch": 0.37,
129
+ "eval_loss": 1.3791648149490356,
130
+ "eval_mse": 1.3791648080316543,
131
+ "eval_runtime": 183.7482,
132
+ "eval_samples_per_second": 15.891,
133
+ "eval_steps_per_second": 3.973,
134
+ "step": 300
135
+ },
136
+ {
137
+ "epoch": 0.4,
138
+ "learning_rate": 2e-05,
139
+ "loss": 1.3216,
140
+ "step": 325
141
+ },
142
+ {
143
+ "epoch": 0.43,
144
+ "learning_rate": 2e-05,
145
+ "loss": 1.4448,
146
+ "step": 350
147
+ },
148
+ {
149
+ "epoch": 0.43,
150
+ "eval_loss": 1.3047657012939453,
151
+ "eval_mse": 1.3047656766562488,
152
+ "eval_runtime": 183.5141,
153
+ "eval_samples_per_second": 15.912,
154
+ "eval_steps_per_second": 3.978,
155
+ "step": 350
156
+ },
157
+ {
158
+ "epoch": 0.46,
159
+ "learning_rate": 2e-05,
160
+ "loss": 1.3344,
161
+ "step": 375
162
+ },
163
+ {
164
+ "epoch": 0.49,
165
+ "learning_rate": 2e-05,
166
+ "loss": 1.3582,
167
+ "step": 400
168
+ },
169
+ {
170
+ "epoch": 0.49,
171
+ "eval_loss": 1.248475432395935,
172
+ "eval_mse": 1.248475439073647,
173
+ "eval_runtime": 183.4404,
174
+ "eval_samples_per_second": 15.918,
175
+ "eval_steps_per_second": 3.979,
176
+ "step": 400
177
+ },
178
+ {
179
+ "epoch": 0.52,
180
+ "learning_rate": 2e-05,
181
+ "loss": 1.1767,
182
+ "step": 425
183
+ },
184
+ {
185
+ "epoch": 0.55,
186
+ "learning_rate": 2e-05,
187
+ "loss": 1.2357,
188
+ "step": 450
189
+ },
190
+ {
191
+ "epoch": 0.55,
192
+ "eval_loss": 1.3708600997924805,
193
+ "eval_mse": 1.3708599920592506,
194
+ "eval_runtime": 183.3578,
195
+ "eval_samples_per_second": 15.925,
196
+ "eval_steps_per_second": 3.981,
197
+ "step": 450
198
+ },
199
+ {
200
+ "epoch": 0.58,
201
+ "learning_rate": 2e-05,
202
+ "loss": 1.3204,
203
+ "step": 475
204
+ },
205
+ {
206
+ "epoch": 0.61,
207
+ "learning_rate": 2e-05,
208
+ "loss": 1.1075,
209
+ "step": 500
210
+ },
211
+ {
212
+ "epoch": 0.61,
213
+ "eval_loss": 1.2537685632705688,
214
+ "eval_mse": 1.2537685594483436,
215
+ "eval_runtime": 183.4476,
216
+ "eval_samples_per_second": 15.917,
217
+ "eval_steps_per_second": 3.979,
218
+ "step": 500
219
+ },
220
+ {
221
+ "epoch": 0.64,
222
+ "learning_rate": 2e-05,
223
+ "loss": 1.4399,
224
+ "step": 525
225
+ },
226
+ {
227
+ "epoch": 0.67,
228
+ "learning_rate": 2e-05,
229
+ "loss": 1.2406,
230
+ "step": 550
231
+ },
232
+ {
233
+ "epoch": 0.67,
234
+ "eval_loss": 1.19956636428833,
235
+ "eval_mse": 1.1995664079472905,
236
+ "eval_runtime": 183.4122,
237
+ "eval_samples_per_second": 15.92,
238
+ "eval_steps_per_second": 3.98,
239
+ "step": 550
240
+ },
241
+ {
242
+ "epoch": 0.7,
243
+ "learning_rate": 2e-05,
244
+ "loss": 1.1667,
245
+ "step": 575
246
+ },
247
+ {
248
+ "epoch": 0.73,
249
+ "learning_rate": 2e-05,
250
+ "loss": 1.2309,
251
+ "step": 600
252
+ },
253
+ {
254
+ "epoch": 0.73,
255
+ "eval_loss": 1.2671302556991577,
256
+ "eval_mse": 1.2671302648346725,
257
+ "eval_runtime": 183.2517,
258
+ "eval_samples_per_second": 15.934,
259
+ "eval_steps_per_second": 3.984,
260
+ "step": 600
261
+ },
262
+ {
263
+ "epoch": 0.76,
264
+ "learning_rate": 2e-05,
265
+ "loss": 1.1541,
266
+ "step": 625
267
+ },
268
+ {
269
+ "epoch": 0.79,
270
+ "learning_rate": 2e-05,
271
+ "loss": 1.194,
272
+ "step": 650
273
+ },
274
+ {
275
+ "epoch": 0.79,
276
+ "eval_loss": 1.4325885772705078,
277
+ "eval_mse": 1.4325886574488846,
278
+ "eval_runtime": 183.2552,
279
+ "eval_samples_per_second": 15.934,
280
+ "eval_steps_per_second": 3.984,
281
+ "step": 650
282
+ },
283
+ {
284
+ "epoch": 0.82,
285
+ "learning_rate": 2e-05,
286
+ "loss": 1.1926,
287
+ "step": 675
288
+ },
289
+ {
290
+ "epoch": 0.85,
291
+ "learning_rate": 2e-05,
292
+ "loss": 1.2135,
293
+ "step": 700
294
+ },
295
+ {
296
+ "epoch": 0.85,
297
+ "eval_loss": 1.176251769065857,
298
+ "eval_mse": 1.1762518139201403,
299
+ "eval_runtime": 183.5032,
300
+ "eval_samples_per_second": 15.913,
301
+ "eval_steps_per_second": 3.978,
302
+ "step": 700
303
+ },
304
+ {
305
+ "epoch": 0.88,
306
+ "learning_rate": 2e-05,
307
+ "loss": 1.111,
308
+ "step": 725
309
+ },
310
+ {
311
+ "epoch": 0.91,
312
+ "learning_rate": 2e-05,
313
+ "loss": 1.2196,
314
+ "step": 750
315
+ },
316
+ {
317
+ "epoch": 0.91,
318
+ "eval_loss": 1.1438716650009155,
319
+ "eval_mse": 1.1438715909390142,
320
+ "eval_runtime": 183.3716,
321
+ "eval_samples_per_second": 15.924,
322
+ "eval_steps_per_second": 3.981,
323
+ "step": 750
324
+ },
325
+ {
326
+ "epoch": 0.94,
327
+ "learning_rate": 2e-05,
328
+ "loss": 1.1891,
329
+ "step": 775
330
+ },
331
+ {
332
+ "epoch": 0.97,
333
+ "learning_rate": 2e-05,
334
+ "loss": 1.1983,
335
+ "step": 800
336
+ },
337
+ {
338
+ "epoch": 0.97,
339
+ "eval_loss": 1.1710615158081055,
340
+ "eval_mse": 1.1710615362599224,
341
+ "eval_runtime": 183.5541,
342
+ "eval_samples_per_second": 15.908,
343
+ "eval_steps_per_second": 3.977,
344
+ "step": 800
345
+ },
346
+ {
347
+ "epoch": 1.0,
348
+ "step": 821,
349
+ "total_flos": 2.448378334121165e+16,
350
+ "train_loss": 1.4025647422428107,
351
+ "train_runtime": 6674.4502,
352
+ "train_samples_per_second": 3.937,
353
+ "train_steps_per_second": 0.123
354
+ }
355
+ ],
356
+ "max_steps": 821,
357
+ "num_train_epochs": 1,
358
+ "total_flos": 2.448378334121165e+16,
359
+ "trial_name": null,
360
+ "trial_params": null
361
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0852e3c764ae0e37900120f0010f656239481ac67a06ba842b587dd893bb1f2
3
+ size 4027