trapoom555 commited on
Commit
02a0f2f
·
1 Parent(s): 81f78a5

add model

Browse files
README.md CHANGED
@@ -92,7 +92,7 @@ import torch
92
  base_model_name = "microsoft/deberta-v3-base"
93
  model_name = "trapoom555/ThaiSafetyClassifier"
94
 
95
- tokenizer = AutoTokenizer.from_pretrained(base_model_name)
96
  base_model = AutoModelForSequenceClassification.from_pretrained(base_model_name, num_labels=2)
97
  model = PeftModel.from_pretrained(base_model, model_name)
98
  model.eval()
 
92
  base_model_name = "microsoft/deberta-v3-base"
93
  model_name = "trapoom555/ThaiSafetyClassifier"
94
 
95
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
96
  base_model = AutoModelForSequenceClassification.from_pretrained(base_model_name, num_labels=2)
97
  model = PeftModel.from_pretrained(base_model, model_name)
98
  model.eval()
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "[MASK]": 128000
3
+ }
checkpoint-3519/README.md ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: microsoft/deberta-v3-base
3
+ library_name: peft
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
200
+ ### Framework versions
201
+
202
+ - PEFT 0.14.0
checkpoint-3519/adapter_config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "microsoft/deberta-v3-base",
5
+ "bias": "none",
6
+ "eva_config": null,
7
+ "exclude_modules": null,
8
+ "fan_in_fan_out": false,
9
+ "inference_mode": true,
10
+ "init_lora_weights": true,
11
+ "layer_replication": null,
12
+ "layers_pattern": null,
13
+ "layers_to_transform": null,
14
+ "loftq_config": {},
15
+ "lora_alpha": 16,
16
+ "lora_bias": false,
17
+ "lora_dropout": 0.1,
18
+ "megatron_config": null,
19
+ "megatron_core": "megatron.core",
20
+ "modules_to_save": [
21
+ "classifier",
22
+ "score"
23
+ ],
24
+ "peft_type": "LORA",
25
+ "r": 8,
26
+ "rank_pattern": {},
27
+ "revision": null,
28
+ "target_modules": [
29
+ "value_proj",
30
+ "key_proj",
31
+ "query_proj",
32
+ "dense"
33
+ ],
34
+ "task_type": "SEQ_CLS",
35
+ "use_dora": false,
36
+ "use_rslora": false
37
+ }
checkpoint-3519/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6823a95b86d40de7bb13e3358d508f589f0fcc587a4a7dbe650312378f720dd6
3
+ size 5384856
checkpoint-3519/added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "[MASK]": 128000
3
+ }
checkpoint-3519/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b9fda48ad4327d3c10b7b32ff9cf0bc2eda74e34b6a01f34a29fb6bd0d1b559
3
+ size 10851770
checkpoint-3519/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9df1d292c0d67176f9e11569c0861798ebb26b80ff407b01b1d81bd1d952b8d
3
+ size 14244
checkpoint-3519/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c443b74f8c7bc88e4f001c022dad014ca170623a6004ad5599805d43ce6e4367
3
+ size 1064
checkpoint-3519/special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": {
9
+ "content": "[UNK]",
10
+ "lstrip": false,
11
+ "normalized": true,
12
+ "rstrip": false,
13
+ "single_word": false
14
+ }
15
+ }
checkpoint-3519/spm.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c679fbf93643d19aab7ee10c0b99e460bdbc02fedf34b92b05af343b4af586fd
3
+ size 2464616
checkpoint-3519/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-3519/tokenizer_config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "[PAD]",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "[CLS]",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "[SEP]",
22
+ "lstrip": false,
23
+ "normalized": false,
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
+ "128000": {
37
+ "content": "[MASK]",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "bos_token": "[CLS]",
46
+ "clean_up_tokenization_spaces": false,
47
+ "cls_token": "[CLS]",
48
+ "do_lower_case": false,
49
+ "eos_token": "[SEP]",
50
+ "extra_special_tokens": {},
51
+ "mask_token": "[MASK]",
52
+ "model_max_length": 1000000000000000019884624838656,
53
+ "pad_token": "[PAD]",
54
+ "sep_token": "[SEP]",
55
+ "sp_model_kwargs": {},
56
+ "split_by_punct": false,
57
+ "tokenizer_class": "DebertaV2Tokenizer",
58
+ "unk_token": "[UNK]",
59
+ "vocab_type": "spm"
60
+ }
checkpoint-3519/trainer_state.json ADDED
@@ -0,0 +1,288 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.6391554702495201,
3
+ "best_model_checkpoint": "models/safety-classifier-gpt41/checkpoint-3519",
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 3519,
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.09974424552429667,
13
+ "grad_norm": 0.4263969659805298,
14
+ "learning_rate": 8.297872340425533e-05,
15
+ "loss": 0.1391,
16
+ "step": 117
17
+ },
18
+ {
19
+ "epoch": 0.19948849104859334,
20
+ "grad_norm": 0.27834752202033997,
21
+ "learning_rate": 0.00016595744680851065,
22
+ "loss": 0.1218,
23
+ "step": 234
24
+ },
25
+ {
26
+ "epoch": 0.29923273657289,
27
+ "grad_norm": 0.6282734274864197,
28
+ "learning_rate": 0.00019687074829931973,
29
+ "loss": 0.1102,
30
+ "step": 351
31
+ },
32
+ {
33
+ "epoch": 0.3989769820971867,
34
+ "grad_norm": 0.44432786107063293,
35
+ "learning_rate": 0.00019156462585034014,
36
+ "loss": 0.105,
37
+ "step": 468
38
+ },
39
+ {
40
+ "epoch": 0.49872122762148335,
41
+ "grad_norm": 0.2723007798194885,
42
+ "learning_rate": 0.00018625850340136055,
43
+ "loss": 0.1079,
44
+ "step": 585
45
+ },
46
+ {
47
+ "epoch": 0.59846547314578,
48
+ "grad_norm": 0.48778554797172546,
49
+ "learning_rate": 0.00018095238095238095,
50
+ "loss": 0.1054,
51
+ "step": 702
52
+ },
53
+ {
54
+ "epoch": 0.6982097186700768,
55
+ "grad_norm": 0.25881531834602356,
56
+ "learning_rate": 0.00017564625850340136,
57
+ "loss": 0.1086,
58
+ "step": 819
59
+ },
60
+ {
61
+ "epoch": 0.7979539641943734,
62
+ "grad_norm": 0.25694021582603455,
63
+ "learning_rate": 0.0001703401360544218,
64
+ "loss": 0.1048,
65
+ "step": 936
66
+ },
67
+ {
68
+ "epoch": 0.8976982097186701,
69
+ "grad_norm": 0.4252418279647827,
70
+ "learning_rate": 0.0001650340136054422,
71
+ "loss": 0.1034,
72
+ "step": 1053
73
+ },
74
+ {
75
+ "epoch": 0.9974424552429667,
76
+ "grad_norm": 0.41715288162231445,
77
+ "learning_rate": 0.00015972789115646259,
78
+ "loss": 0.1021,
79
+ "step": 1170
80
+ },
81
+ {
82
+ "epoch": 1.0,
83
+ "eval_accuracy": 0.6956707187033483,
84
+ "eval_f1": 0.5335076822491011,
85
+ "eval_loss": 0.11207349003870727,
86
+ "eval_precision": 0.38894184938036225,
87
+ "eval_recall": 0.8491155046826223,
88
+ "eval_runtime": 29.5167,
89
+ "eval_samples_per_second": 158.859,
90
+ "eval_steps_per_second": 4.98,
91
+ "step": 1173
92
+ },
93
+ {
94
+ "epoch": 1.0971867007672633,
95
+ "grad_norm": 0.28545722365379333,
96
+ "learning_rate": 0.000154421768707483,
97
+ "loss": 0.1003,
98
+ "step": 1287
99
+ },
100
+ {
101
+ "epoch": 1.19693094629156,
102
+ "grad_norm": 0.4745310842990875,
103
+ "learning_rate": 0.0001491156462585034,
104
+ "loss": 0.1009,
105
+ "step": 1404
106
+ },
107
+ {
108
+ "epoch": 1.2966751918158568,
109
+ "grad_norm": 0.375118225812912,
110
+ "learning_rate": 0.0001438095238095238,
111
+ "loss": 0.097,
112
+ "step": 1521
113
+ },
114
+ {
115
+ "epoch": 1.3964194373401535,
116
+ "grad_norm": 0.30696073174476624,
117
+ "learning_rate": 0.00013850340136054422,
118
+ "loss": 0.1,
119
+ "step": 1638
120
+ },
121
+ {
122
+ "epoch": 1.49616368286445,
123
+ "grad_norm": 1.0406877994537354,
124
+ "learning_rate": 0.00013319727891156463,
125
+ "loss": 0.0907,
126
+ "step": 1755
127
+ },
128
+ {
129
+ "epoch": 1.5959079283887467,
130
+ "grad_norm": 0.3132568299770355,
131
+ "learning_rate": 0.00012789115646258506,
132
+ "loss": 0.0905,
133
+ "step": 1872
134
+ },
135
+ {
136
+ "epoch": 1.6956521739130435,
137
+ "grad_norm": 0.4280431866645813,
138
+ "learning_rate": 0.00012258503401360544,
139
+ "loss": 0.0952,
140
+ "step": 1989
141
+ },
142
+ {
143
+ "epoch": 1.7953964194373402,
144
+ "grad_norm": 0.7637690305709839,
145
+ "learning_rate": 0.00011727891156462585,
146
+ "loss": 0.0962,
147
+ "step": 2106
148
+ },
149
+ {
150
+ "epoch": 1.895140664961637,
151
+ "grad_norm": 0.4497227966785431,
152
+ "learning_rate": 0.00011197278911564626,
153
+ "loss": 0.0952,
154
+ "step": 2223
155
+ },
156
+ {
157
+ "epoch": 1.9948849104859336,
158
+ "grad_norm": 0.8150501251220703,
159
+ "learning_rate": 0.00010666666666666667,
160
+ "loss": 0.0925,
161
+ "step": 2340
162
+ },
163
+ {
164
+ "epoch": 2.0,
165
+ "eval_accuracy": 0.8328001706120708,
166
+ "eval_f1": 0.6087824351297405,
167
+ "eval_loss": 0.08943241893450823,
168
+ "eval_precision": 0.5848513902205177,
169
+ "eval_recall": 0.6347554630593132,
170
+ "eval_runtime": 28.6966,
171
+ "eval_samples_per_second": 163.399,
172
+ "eval_steps_per_second": 5.123,
173
+ "step": 2346
174
+ },
175
+ {
176
+ "epoch": 2.0946291560102304,
177
+ "grad_norm": 0.6674602031707764,
178
+ "learning_rate": 0.00010136054421768707,
179
+ "loss": 0.0848,
180
+ "step": 2457
181
+ },
182
+ {
183
+ "epoch": 2.1943734015345266,
184
+ "grad_norm": 0.6307544112205505,
185
+ "learning_rate": 9.60544217687075e-05,
186
+ "loss": 0.0915,
187
+ "step": 2574
188
+ },
189
+ {
190
+ "epoch": 2.2941176470588234,
191
+ "grad_norm": 0.3149726092815399,
192
+ "learning_rate": 9.074829931972789e-05,
193
+ "loss": 0.0881,
194
+ "step": 2691
195
+ },
196
+ {
197
+ "epoch": 2.39386189258312,
198
+ "grad_norm": 0.8826068043708801,
199
+ "learning_rate": 8.54421768707483e-05,
200
+ "loss": 0.0899,
201
+ "step": 2808
202
+ },
203
+ {
204
+ "epoch": 2.493606138107417,
205
+ "grad_norm": 0.3497423231601715,
206
+ "learning_rate": 8.013605442176872e-05,
207
+ "loss": 0.0867,
208
+ "step": 2925
209
+ },
210
+ {
211
+ "epoch": 2.5933503836317136,
212
+ "grad_norm": 0.4942176640033722,
213
+ "learning_rate": 7.482993197278913e-05,
214
+ "loss": 0.0878,
215
+ "step": 3042
216
+ },
217
+ {
218
+ "epoch": 2.6930946291560103,
219
+ "grad_norm": 0.6147931218147278,
220
+ "learning_rate": 6.952380952380952e-05,
221
+ "loss": 0.0826,
222
+ "step": 3159
223
+ },
224
+ {
225
+ "epoch": 2.792838874680307,
226
+ "grad_norm": 0.42120879888534546,
227
+ "learning_rate": 6.421768707482993e-05,
228
+ "loss": 0.0868,
229
+ "step": 3276
230
+ },
231
+ {
232
+ "epoch": 2.8925831202046037,
233
+ "grad_norm": 0.6062323451042175,
234
+ "learning_rate": 5.8911564625850346e-05,
235
+ "loss": 0.0831,
236
+ "step": 3393
237
+ },
238
+ {
239
+ "epoch": 2.9923273657289,
240
+ "grad_norm": 0.7976586222648621,
241
+ "learning_rate": 5.360544217687075e-05,
242
+ "loss": 0.0838,
243
+ "step": 3510
244
+ },
245
+ {
246
+ "epoch": 3.0,
247
+ "eval_accuracy": 0.8396246534442312,
248
+ "eval_f1": 0.6391554702495201,
249
+ "eval_loss": 0.08481446683795528,
250
+ "eval_precision": 0.5930543187889582,
251
+ "eval_recall": 0.6930280957336108,
252
+ "eval_runtime": 28.8664,
253
+ "eval_samples_per_second": 162.438,
254
+ "eval_steps_per_second": 5.092,
255
+ "step": 3519
256
+ }
257
+ ],
258
+ "logging_steps": 117,
259
+ "max_steps": 4692,
260
+ "num_input_tokens_seen": 0,
261
+ "num_train_epochs": 4,
262
+ "save_steps": 500,
263
+ "stateful_callbacks": {
264
+ "EarlyStoppingCallback": {
265
+ "args": {
266
+ "early_stopping_patience": 3,
267
+ "early_stopping_threshold": 0.0
268
+ },
269
+ "attributes": {
270
+ "early_stopping_patience_counter": 0
271
+ }
272
+ },
273
+ "TrainerControl": {
274
+ "args": {
275
+ "should_epoch_stop": false,
276
+ "should_evaluate": false,
277
+ "should_log": false,
278
+ "should_save": true,
279
+ "should_training_stop": false
280
+ },
281
+ "attributes": {}
282
+ }
283
+ },
284
+ "total_flos": 1.5037586926129152e+16,
285
+ "train_batch_size": 32,
286
+ "trial_name": null,
287
+ "trial_params": null
288
+ }
checkpoint-3519/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88469318d71fd6fdbc650d6636dde694f4e2f07d83de351996a297eb050dc96c
3
+ size 5304
checkpoint-4692/README.md ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: microsoft/deberta-v3-base
3
+ library_name: peft
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
200
+ ### Framework versions
201
+
202
+ - PEFT 0.14.0
checkpoint-4692/adapter_config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "microsoft/deberta-v3-base",
5
+ "bias": "none",
6
+ "eva_config": null,
7
+ "exclude_modules": null,
8
+ "fan_in_fan_out": false,
9
+ "inference_mode": true,
10
+ "init_lora_weights": true,
11
+ "layer_replication": null,
12
+ "layers_pattern": null,
13
+ "layers_to_transform": null,
14
+ "loftq_config": {},
15
+ "lora_alpha": 16,
16
+ "lora_bias": false,
17
+ "lora_dropout": 0.1,
18
+ "megatron_config": null,
19
+ "megatron_core": "megatron.core",
20
+ "modules_to_save": [
21
+ "classifier",
22
+ "score"
23
+ ],
24
+ "peft_type": "LORA",
25
+ "r": 8,
26
+ "rank_pattern": {},
27
+ "revision": null,
28
+ "target_modules": [
29
+ "value_proj",
30
+ "key_proj",
31
+ "query_proj",
32
+ "dense"
33
+ ],
34
+ "task_type": "SEQ_CLS",
35
+ "use_dora": false,
36
+ "use_rslora": false
37
+ }
checkpoint-4692/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a719de6f6c46c1a885f9550a31e40d07b74361225ae9b9e46e4321de1f73f1e
3
+ size 5384856
checkpoint-4692/added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "[MASK]": 128000
3
+ }
checkpoint-4692/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b55d01042bfad3637cc7bf5cc10faa52480ed6f1a3803438b9ae91cc2f3dd110
3
+ size 10851770
checkpoint-4692/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e27f5c297c1e21140a1db26348e8b0237b7d02bfc3983dcf0491b62900bda13e
3
+ size 14244
checkpoint-4692/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:332b5fd628f7a1023e56f0518a1587106179be884ad5267398c0bd3fd4a2b739
3
+ size 1064
checkpoint-4692/special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": {
9
+ "content": "[UNK]",
10
+ "lstrip": false,
11
+ "normalized": true,
12
+ "rstrip": false,
13
+ "single_word": false
14
+ }
15
+ }
checkpoint-4692/spm.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c679fbf93643d19aab7ee10c0b99e460bdbc02fedf34b92b05af343b4af586fd
3
+ size 2464616
checkpoint-4692/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-4692/tokenizer_config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "[PAD]",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "[CLS]",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "[SEP]",
22
+ "lstrip": false,
23
+ "normalized": false,
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
+ "128000": {
37
+ "content": "[MASK]",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "bos_token": "[CLS]",
46
+ "clean_up_tokenization_spaces": false,
47
+ "cls_token": "[CLS]",
48
+ "do_lower_case": false,
49
+ "eos_token": "[SEP]",
50
+ "extra_special_tokens": {},
51
+ "mask_token": "[MASK]",
52
+ "model_max_length": 1000000000000000019884624838656,
53
+ "pad_token": "[PAD]",
54
+ "sep_token": "[SEP]",
55
+ "sp_model_kwargs": {},
56
+ "split_by_punct": false,
57
+ "tokenizer_class": "DebertaV2Tokenizer",
58
+ "unk_token": "[UNK]",
59
+ "vocab_type": "spm"
60
+ }
checkpoint-4692/trainer_state.json ADDED
@@ -0,0 +1,370 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.6461538461538462,
3
+ "best_model_checkpoint": "models/safety-classifier-gpt41/checkpoint-4692",
4
+ "epoch": 4.0,
5
+ "eval_steps": 500,
6
+ "global_step": 4692,
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.09974424552429667,
13
+ "grad_norm": 0.4263969659805298,
14
+ "learning_rate": 8.297872340425533e-05,
15
+ "loss": 0.1391,
16
+ "step": 117
17
+ },
18
+ {
19
+ "epoch": 0.19948849104859334,
20
+ "grad_norm": 0.27834752202033997,
21
+ "learning_rate": 0.00016595744680851065,
22
+ "loss": 0.1218,
23
+ "step": 234
24
+ },
25
+ {
26
+ "epoch": 0.29923273657289,
27
+ "grad_norm": 0.6282734274864197,
28
+ "learning_rate": 0.00019687074829931973,
29
+ "loss": 0.1102,
30
+ "step": 351
31
+ },
32
+ {
33
+ "epoch": 0.3989769820971867,
34
+ "grad_norm": 0.44432786107063293,
35
+ "learning_rate": 0.00019156462585034014,
36
+ "loss": 0.105,
37
+ "step": 468
38
+ },
39
+ {
40
+ "epoch": 0.49872122762148335,
41
+ "grad_norm": 0.2723007798194885,
42
+ "learning_rate": 0.00018625850340136055,
43
+ "loss": 0.1079,
44
+ "step": 585
45
+ },
46
+ {
47
+ "epoch": 0.59846547314578,
48
+ "grad_norm": 0.48778554797172546,
49
+ "learning_rate": 0.00018095238095238095,
50
+ "loss": 0.1054,
51
+ "step": 702
52
+ },
53
+ {
54
+ "epoch": 0.6982097186700768,
55
+ "grad_norm": 0.25881531834602356,
56
+ "learning_rate": 0.00017564625850340136,
57
+ "loss": 0.1086,
58
+ "step": 819
59
+ },
60
+ {
61
+ "epoch": 0.7979539641943734,
62
+ "grad_norm": 0.25694021582603455,
63
+ "learning_rate": 0.0001703401360544218,
64
+ "loss": 0.1048,
65
+ "step": 936
66
+ },
67
+ {
68
+ "epoch": 0.8976982097186701,
69
+ "grad_norm": 0.4252418279647827,
70
+ "learning_rate": 0.0001650340136054422,
71
+ "loss": 0.1034,
72
+ "step": 1053
73
+ },
74
+ {
75
+ "epoch": 0.9974424552429667,
76
+ "grad_norm": 0.41715288162231445,
77
+ "learning_rate": 0.00015972789115646259,
78
+ "loss": 0.1021,
79
+ "step": 1170
80
+ },
81
+ {
82
+ "epoch": 1.0,
83
+ "eval_accuracy": 0.6956707187033483,
84
+ "eval_f1": 0.5335076822491011,
85
+ "eval_loss": 0.11207349003870727,
86
+ "eval_precision": 0.38894184938036225,
87
+ "eval_recall": 0.8491155046826223,
88
+ "eval_runtime": 29.5167,
89
+ "eval_samples_per_second": 158.859,
90
+ "eval_steps_per_second": 4.98,
91
+ "step": 1173
92
+ },
93
+ {
94
+ "epoch": 1.0971867007672633,
95
+ "grad_norm": 0.28545722365379333,
96
+ "learning_rate": 0.000154421768707483,
97
+ "loss": 0.1003,
98
+ "step": 1287
99
+ },
100
+ {
101
+ "epoch": 1.19693094629156,
102
+ "grad_norm": 0.4745310842990875,
103
+ "learning_rate": 0.0001491156462585034,
104
+ "loss": 0.1009,
105
+ "step": 1404
106
+ },
107
+ {
108
+ "epoch": 1.2966751918158568,
109
+ "grad_norm": 0.375118225812912,
110
+ "learning_rate": 0.0001438095238095238,
111
+ "loss": 0.097,
112
+ "step": 1521
113
+ },
114
+ {
115
+ "epoch": 1.3964194373401535,
116
+ "grad_norm": 0.30696073174476624,
117
+ "learning_rate": 0.00013850340136054422,
118
+ "loss": 0.1,
119
+ "step": 1638
120
+ },
121
+ {
122
+ "epoch": 1.49616368286445,
123
+ "grad_norm": 1.0406877994537354,
124
+ "learning_rate": 0.00013319727891156463,
125
+ "loss": 0.0907,
126
+ "step": 1755
127
+ },
128
+ {
129
+ "epoch": 1.5959079283887467,
130
+ "grad_norm": 0.3132568299770355,
131
+ "learning_rate": 0.00012789115646258506,
132
+ "loss": 0.0905,
133
+ "step": 1872
134
+ },
135
+ {
136
+ "epoch": 1.6956521739130435,
137
+ "grad_norm": 0.4280431866645813,
138
+ "learning_rate": 0.00012258503401360544,
139
+ "loss": 0.0952,
140
+ "step": 1989
141
+ },
142
+ {
143
+ "epoch": 1.7953964194373402,
144
+ "grad_norm": 0.7637690305709839,
145
+ "learning_rate": 0.00011727891156462585,
146
+ "loss": 0.0962,
147
+ "step": 2106
148
+ },
149
+ {
150
+ "epoch": 1.895140664961637,
151
+ "grad_norm": 0.4497227966785431,
152
+ "learning_rate": 0.00011197278911564626,
153
+ "loss": 0.0952,
154
+ "step": 2223
155
+ },
156
+ {
157
+ "epoch": 1.9948849104859336,
158
+ "grad_norm": 0.8150501251220703,
159
+ "learning_rate": 0.00010666666666666667,
160
+ "loss": 0.0925,
161
+ "step": 2340
162
+ },
163
+ {
164
+ "epoch": 2.0,
165
+ "eval_accuracy": 0.8328001706120708,
166
+ "eval_f1": 0.6087824351297405,
167
+ "eval_loss": 0.08943241893450823,
168
+ "eval_precision": 0.5848513902205177,
169
+ "eval_recall": 0.6347554630593132,
170
+ "eval_runtime": 28.6966,
171
+ "eval_samples_per_second": 163.399,
172
+ "eval_steps_per_second": 5.123,
173
+ "step": 2346
174
+ },
175
+ {
176
+ "epoch": 2.0946291560102304,
177
+ "grad_norm": 0.6674602031707764,
178
+ "learning_rate": 0.00010136054421768707,
179
+ "loss": 0.0848,
180
+ "step": 2457
181
+ },
182
+ {
183
+ "epoch": 2.1943734015345266,
184
+ "grad_norm": 0.6307544112205505,
185
+ "learning_rate": 9.60544217687075e-05,
186
+ "loss": 0.0915,
187
+ "step": 2574
188
+ },
189
+ {
190
+ "epoch": 2.2941176470588234,
191
+ "grad_norm": 0.3149726092815399,
192
+ "learning_rate": 9.074829931972789e-05,
193
+ "loss": 0.0881,
194
+ "step": 2691
195
+ },
196
+ {
197
+ "epoch": 2.39386189258312,
198
+ "grad_norm": 0.8826068043708801,
199
+ "learning_rate": 8.54421768707483e-05,
200
+ "loss": 0.0899,
201
+ "step": 2808
202
+ },
203
+ {
204
+ "epoch": 2.493606138107417,
205
+ "grad_norm": 0.3497423231601715,
206
+ "learning_rate": 8.013605442176872e-05,
207
+ "loss": 0.0867,
208
+ "step": 2925
209
+ },
210
+ {
211
+ "epoch": 2.5933503836317136,
212
+ "grad_norm": 0.4942176640033722,
213
+ "learning_rate": 7.482993197278913e-05,
214
+ "loss": 0.0878,
215
+ "step": 3042
216
+ },
217
+ {
218
+ "epoch": 2.6930946291560103,
219
+ "grad_norm": 0.6147931218147278,
220
+ "learning_rate": 6.952380952380952e-05,
221
+ "loss": 0.0826,
222
+ "step": 3159
223
+ },
224
+ {
225
+ "epoch": 2.792838874680307,
226
+ "grad_norm": 0.42120879888534546,
227
+ "learning_rate": 6.421768707482993e-05,
228
+ "loss": 0.0868,
229
+ "step": 3276
230
+ },
231
+ {
232
+ "epoch": 2.8925831202046037,
233
+ "grad_norm": 0.6062323451042175,
234
+ "learning_rate": 5.8911564625850346e-05,
235
+ "loss": 0.0831,
236
+ "step": 3393
237
+ },
238
+ {
239
+ "epoch": 2.9923273657289,
240
+ "grad_norm": 0.7976586222648621,
241
+ "learning_rate": 5.360544217687075e-05,
242
+ "loss": 0.0838,
243
+ "step": 3510
244
+ },
245
+ {
246
+ "epoch": 3.0,
247
+ "eval_accuracy": 0.8396246534442312,
248
+ "eval_f1": 0.6391554702495201,
249
+ "eval_loss": 0.08481446683795528,
250
+ "eval_precision": 0.5930543187889582,
251
+ "eval_recall": 0.6930280957336108,
252
+ "eval_runtime": 28.8664,
253
+ "eval_samples_per_second": 162.438,
254
+ "eval_steps_per_second": 5.092,
255
+ "step": 3519
256
+ },
257
+ {
258
+ "epoch": 3.0920716112531967,
259
+ "grad_norm": 0.34886154532432556,
260
+ "learning_rate": 4.8299319727891155e-05,
261
+ "loss": 0.0829,
262
+ "step": 3627
263
+ },
264
+ {
265
+ "epoch": 3.1918158567774935,
266
+ "grad_norm": 0.3480125665664673,
267
+ "learning_rate": 4.299319727891157e-05,
268
+ "loss": 0.0796,
269
+ "step": 3744
270
+ },
271
+ {
272
+ "epoch": 3.29156010230179,
273
+ "grad_norm": 0.4952664077281952,
274
+ "learning_rate": 3.768707482993197e-05,
275
+ "loss": 0.0806,
276
+ "step": 3861
277
+ },
278
+ {
279
+ "epoch": 3.391304347826087,
280
+ "grad_norm": 0.31144797801971436,
281
+ "learning_rate": 3.2380952380952386e-05,
282
+ "loss": 0.0773,
283
+ "step": 3978
284
+ },
285
+ {
286
+ "epoch": 3.4910485933503836,
287
+ "grad_norm": 0.30885636806488037,
288
+ "learning_rate": 2.707482993197279e-05,
289
+ "loss": 0.0788,
290
+ "step": 4095
291
+ },
292
+ {
293
+ "epoch": 3.5907928388746804,
294
+ "grad_norm": 0.2984219491481781,
295
+ "learning_rate": 2.17687074829932e-05,
296
+ "loss": 0.0782,
297
+ "step": 4212
298
+ },
299
+ {
300
+ "epoch": 3.690537084398977,
301
+ "grad_norm": 1.0008522272109985,
302
+ "learning_rate": 1.6462585034013607e-05,
303
+ "loss": 0.0791,
304
+ "step": 4329
305
+ },
306
+ {
307
+ "epoch": 3.790281329923274,
308
+ "grad_norm": 0.46631908416748047,
309
+ "learning_rate": 1.1156462585034013e-05,
310
+ "loss": 0.0788,
311
+ "step": 4446
312
+ },
313
+ {
314
+ "epoch": 3.89002557544757,
315
+ "grad_norm": 0.37387174367904663,
316
+ "learning_rate": 5.8503401360544215e-06,
317
+ "loss": 0.0821,
318
+ "step": 4563
319
+ },
320
+ {
321
+ "epoch": 3.9897698209718673,
322
+ "grad_norm": 0.3423830568790436,
323
+ "learning_rate": 5.442176870748299e-07,
324
+ "loss": 0.0758,
325
+ "step": 4680
326
+ },
327
+ {
328
+ "epoch": 4.0,
329
+ "eval_accuracy": 0.838131797824696,
330
+ "eval_f1": 0.6461538461538462,
331
+ "eval_loss": 0.08384101994242664,
332
+ "eval_precision": 0.5853040540540541,
333
+ "eval_recall": 0.7211238293444329,
334
+ "eval_runtime": 29.0972,
335
+ "eval_samples_per_second": 161.15,
336
+ "eval_steps_per_second": 5.052,
337
+ "step": 4692
338
+ }
339
+ ],
340
+ "logging_steps": 117,
341
+ "max_steps": 4692,
342
+ "num_input_tokens_seen": 0,
343
+ "num_train_epochs": 4,
344
+ "save_steps": 500,
345
+ "stateful_callbacks": {
346
+ "EarlyStoppingCallback": {
347
+ "args": {
348
+ "early_stopping_patience": 3,
349
+ "early_stopping_threshold": 0.0
350
+ },
351
+ "attributes": {
352
+ "early_stopping_patience_counter": 0
353
+ }
354
+ },
355
+ "TrainerControl": {
356
+ "args": {
357
+ "should_epoch_stop": false,
358
+ "should_evaluate": false,
359
+ "should_log": false,
360
+ "should_save": true,
361
+ "should_training_stop": true
362
+ },
363
+ "attributes": {}
364
+ }
365
+ },
366
+ "total_flos": 2.0050115901505536e+16,
367
+ "train_batch_size": 32,
368
+ "trial_name": null,
369
+ "trial_params": null
370
+ }
checkpoint-4692/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88469318d71fd6fdbc650d6636dde694f4e2f07d83de351996a297eb050dc96c
3
+ size 5304
config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/deberta-v3-base",
3
+ "architectures": [
4
+ "DebertaV2ForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.1,
9
+ "hidden_size": 768,
10
+ "id2label": {
11
+ "0": "safe",
12
+ "1": "harmful"
13
+ },
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 3072,
16
+ "label2id": {
17
+ "harmful": 1,
18
+ "safe": 0
19
+ },
20
+ "layer_norm_eps": 1e-07,
21
+ "legacy": true,
22
+ "max_position_embeddings": 512,
23
+ "max_relative_positions": -1,
24
+ "model_type": "deberta-v2",
25
+ "norm_rel_ebd": "layer_norm",
26
+ "num_attention_heads": 12,
27
+ "num_hidden_layers": 12,
28
+ "pad_token_id": 0,
29
+ "pooler_dropout": 0,
30
+ "pooler_hidden_act": "gelu",
31
+ "pooler_hidden_size": 768,
32
+ "pos_att_type": [
33
+ "p2c",
34
+ "c2p"
35
+ ],
36
+ "position_biased_input": false,
37
+ "position_buckets": 256,
38
+ "relative_attention": true,
39
+ "share_att_key": true,
40
+ "torch_dtype": "float32",
41
+ "transformers_version": "4.49.0",
42
+ "type_vocab_size": 0,
43
+ "vocab_size": 128100
44
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03aa1e7ce2112c2183de6888c2cb111aeacf26e4c578cd7430a029175addbeec
3
+ size 737719272
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": {
9
+ "content": "[UNK]",
10
+ "lstrip": false,
11
+ "normalized": true,
12
+ "rstrip": false,
13
+ "single_word": false
14
+ }
15
+ }
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,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "[PAD]",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "[CLS]",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "[SEP]",
22
+ "lstrip": false,
23
+ "normalized": false,
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
+ "128000": {
37
+ "content": "[MASK]",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "bos_token": "[CLS]",
46
+ "clean_up_tokenization_spaces": false,
47
+ "cls_token": "[CLS]",
48
+ "do_lower_case": false,
49
+ "eos_token": "[SEP]",
50
+ "extra_special_tokens": {},
51
+ "mask_token": "[MASK]",
52
+ "model_max_length": 1000000000000000019884624838656,
53
+ "pad_token": "[PAD]",
54
+ "sep_token": "[SEP]",
55
+ "sp_model_kwargs": {},
56
+ "split_by_punct": false,
57
+ "tokenizer_class": "DebertaV2Tokenizer",
58
+ "unk_token": "[UNK]",
59
+ "vocab_type": "spm"
60
+ }