mrm8488 commited on
Commit
379525f
1 Parent(s): e0a8e40

Initial commit from mrm8488

Browse files
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: mit
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - glue
9
+ metrics:
10
+ - accuracy
11
+ model-index:
12
+ - name: deberta-v3-small
13
+ results:
14
+ - task:
15
+ name: Text Classification
16
+ type: text-classification
17
+ dataset:
18
+ name: GLUE QNLI
19
+ type: glue
20
+ args: qnli
21
+ metrics:
22
+ - name: Accuracy
23
+ type: accuracy
24
+ value: 0.9150649826102873
25
+ ---
26
+
27
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
28
+ should probably proofread and complete it, then remove this comment. -->
29
+
30
+ # deberta-v3-small
31
+
32
+ This model is a fine-tuned version of [microsoft/deberta-v3-small](https://huggingface.co/microsoft/deberta-v3-small) on the GLUE QNLI dataset.
33
+ It achieves the following results on the evaluation set:
34
+ - Loss: 0.2143
35
+ - Accuracy: 0.9151
36
+
37
+ ## Model description
38
+
39
+ More information needed
40
+
41
+ ## Intended uses & limitations
42
+
43
+ More information needed
44
+
45
+ ## Training and evaluation data
46
+
47
+ More information needed
48
+
49
+ ## Training procedure
50
+
51
+ ### Training hyperparameters
52
+
53
+ The following hyperparameters were used during training:
54
+ - learning_rate: 3e-05
55
+ - train_batch_size: 16
56
+ - eval_batch_size: 8
57
+ - seed: 42
58
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
59
+ - lr_scheduler_type: linear
60
+ - num_epochs: 5.0
61
+
62
+ ### Training results
63
+
64
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
65
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|
66
+ | 0.2823 | 1.0 | 6547 | 0.2143 | 0.9151 |
67
+ | 0.1996 | 2.0 | 13094 | 0.2760 | 0.9103 |
68
+ | 0.1327 | 3.0 | 19641 | 0.3293 | 0.9169 |
69
+ | 0.0811 | 4.0 | 26188 | 0.4278 | 0.9193 |
70
+ | 0.05 | 5.0 | 32735 | 0.5110 | 0.9176 |
71
+
72
+
73
+ ### Framework versions
74
+
75
+ - Transformers 4.13.0.dev0
76
+ - Pytorch 1.10.0+cu111
77
+ - Datasets 1.16.1
78
+ - Tokenizers 0.10.3
added_tokens.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"[MASK]": 128000}
all_results.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "eval_accuracy": 0.9150649826102873,
4
+ "eval_loss": 0.2142563909292221,
5
+ "eval_runtime": 10.9674,
6
+ "eval_samples": 5463,
7
+ "eval_samples_per_second": 498.115,
8
+ "eval_steps_per_second": 62.276,
9
+ "train_loss": 0.15606709380213207,
10
+ "train_runtime": 1886.2061,
11
+ "train_samples": 104743,
12
+ "train_samples_per_second": 277.655,
13
+ "train_steps_per_second": 17.355
14
+ }
config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/deberta-v3-small",
3
+ "architectures": [
4
+ "DebertaV2ForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "finetuning_task": "qnli",
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "entailment",
13
+ "1": "not_entailment"
14
+ },
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 3072,
17
+ "label2id": {
18
+ "entailment": 0,
19
+ "not_entailment": 1
20
+ },
21
+ "layer_norm_eps": 1e-07,
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": 6,
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.13.0.dev0",
42
+ "type_vocab_size": 0,
43
+ "vocab_size": 128100
44
+ }
eval_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "eval_accuracy": 0.9150649826102873,
4
+ "eval_loss": 0.2142563909292221,
5
+ "eval_runtime": 10.9674,
6
+ "eval_samples": 5463,
7
+ "eval_samples_per_second": 498.115,
8
+ "eval_steps_per_second": 62.276
9
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9aae4026d6f22c73fe93c21a9e0a065184d2c4e9c294ec4543ed78c17e4ac7ca
3
+ size 567632875
runs/events.out.tfevents.1638818959.05f9258cf39b.715.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5d1956847edc1da2241195d32fb83a12bae4b8f355aef9259886fedaa9e0c1c
3
+ size 10619
runs/events.out.tfevents.1638820857.05f9258cf39b.715.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4570f0b9d39477fc71aa679ad8c931f357f7649b7b10c60279c8333f1408954b
3
+ size 369
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "[CLS]", "eos_token": "[SEP]", "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
spm.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c679fbf93643d19aab7ee10c0b99e460bdbc02fedf34b92b05af343b4af586fd
3
+ size 2464616
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"do_lower_case": false, "bos_token": "[CLS]", "eos_token": "[SEP]", "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "split_by_punct": false, "sp_model_kwargs": {}, "vocab_type": "spm", "special_tokens_map_file": null, "tokenizer_file": null, "name_or_path": "microsoft/deberta-v3-small", "tokenizer_class": "DebertaV2Tokenizer"}
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "train_loss": 0.15606709380213207,
4
+ "train_runtime": 1886.2061,
5
+ "train_samples": 104743,
6
+ "train_samples_per_second": 277.655,
7
+ "train_steps_per_second": 17.355
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.2142563909292221,
3
+ "best_model_checkpoint": "/content/deberta-v3-small/checkpoint-6547",
4
+ "epoch": 5.0,
5
+ "global_step": 32735,
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.15,
12
+ "learning_rate": 2.908354971742783e-05,
13
+ "loss": 0.3956,
14
+ "step": 1000
15
+ },
16
+ {
17
+ "epoch": 0.31,
18
+ "learning_rate": 2.816709943485566e-05,
19
+ "loss": 0.3285,
20
+ "step": 2000
21
+ },
22
+ {
23
+ "epoch": 0.46,
24
+ "learning_rate": 2.7250649152283487e-05,
25
+ "loss": 0.313,
26
+ "step": 3000
27
+ },
28
+ {
29
+ "epoch": 0.61,
30
+ "learning_rate": 2.633419886971132e-05,
31
+ "loss": 0.2956,
32
+ "step": 4000
33
+ },
34
+ {
35
+ "epoch": 0.76,
36
+ "learning_rate": 2.541774858713915e-05,
37
+ "loss": 0.2931,
38
+ "step": 5000
39
+ },
40
+ {
41
+ "epoch": 0.92,
42
+ "learning_rate": 2.450129830456698e-05,
43
+ "loss": 0.2823,
44
+ "step": 6000
45
+ },
46
+ {
47
+ "epoch": 1.0,
48
+ "eval_accuracy": 0.9150649826102873,
49
+ "eval_loss": 0.2142563909292221,
50
+ "eval_runtime": 10.8101,
51
+ "eval_samples_per_second": 505.359,
52
+ "eval_steps_per_second": 63.181,
53
+ "step": 6547
54
+ },
55
+ {
56
+ "epoch": 1.07,
57
+ "learning_rate": 2.3584848021994806e-05,
58
+ "loss": 0.2467,
59
+ "step": 7000
60
+ },
61
+ {
62
+ "epoch": 1.22,
63
+ "learning_rate": 2.2668397739422636e-05,
64
+ "loss": 0.1968,
65
+ "step": 8000
66
+ },
67
+ {
68
+ "epoch": 1.37,
69
+ "learning_rate": 2.1751947456850465e-05,
70
+ "loss": 0.1994,
71
+ "step": 9000
72
+ },
73
+ {
74
+ "epoch": 1.53,
75
+ "learning_rate": 2.08354971742783e-05,
76
+ "loss": 0.203,
77
+ "step": 10000
78
+ },
79
+ {
80
+ "epoch": 1.68,
81
+ "learning_rate": 1.9919046891706125e-05,
82
+ "loss": 0.2003,
83
+ "step": 11000
84
+ },
85
+ {
86
+ "epoch": 1.83,
87
+ "learning_rate": 1.9002596609133955e-05,
88
+ "loss": 0.1904,
89
+ "step": 12000
90
+ },
91
+ {
92
+ "epoch": 1.99,
93
+ "learning_rate": 1.8086146326561784e-05,
94
+ "loss": 0.1996,
95
+ "step": 13000
96
+ },
97
+ {
98
+ "epoch": 2.0,
99
+ "eval_accuracy": 0.9103056928427604,
100
+ "eval_loss": 0.27601319551467896,
101
+ "eval_runtime": 10.9101,
102
+ "eval_samples_per_second": 500.73,
103
+ "eval_steps_per_second": 62.603,
104
+ "step": 13094
105
+ },
106
+ {
107
+ "epoch": 2.14,
108
+ "learning_rate": 1.7169696043989614e-05,
109
+ "loss": 0.1357,
110
+ "step": 14000
111
+ },
112
+ {
113
+ "epoch": 2.29,
114
+ "learning_rate": 1.625324576141744e-05,
115
+ "loss": 0.1331,
116
+ "step": 15000
117
+ },
118
+ {
119
+ "epoch": 2.44,
120
+ "learning_rate": 1.5336795478845274e-05,
121
+ "loss": 0.1317,
122
+ "step": 16000
123
+ },
124
+ {
125
+ "epoch": 2.6,
126
+ "learning_rate": 1.4420345196273102e-05,
127
+ "loss": 0.1337,
128
+ "step": 17000
129
+ },
130
+ {
131
+ "epoch": 2.75,
132
+ "learning_rate": 1.3503894913700933e-05,
133
+ "loss": 0.1313,
134
+ "step": 18000
135
+ },
136
+ {
137
+ "epoch": 2.9,
138
+ "learning_rate": 1.2587444631128761e-05,
139
+ "loss": 0.1327,
140
+ "step": 19000
141
+ },
142
+ {
143
+ "epoch": 3.0,
144
+ "eval_accuracy": 0.9168954786747209,
145
+ "eval_loss": 0.3293353319168091,
146
+ "eval_runtime": 10.8188,
147
+ "eval_samples_per_second": 504.952,
148
+ "eval_steps_per_second": 63.131,
149
+ "step": 19641
150
+ },
151
+ {
152
+ "epoch": 3.05,
153
+ "learning_rate": 1.1670994348556591e-05,
154
+ "loss": 0.1108,
155
+ "step": 20000
156
+ },
157
+ {
158
+ "epoch": 3.21,
159
+ "learning_rate": 1.0754544065984421e-05,
160
+ "loss": 0.0817,
161
+ "step": 21000
162
+ },
163
+ {
164
+ "epoch": 3.36,
165
+ "learning_rate": 9.83809378341225e-06,
166
+ "loss": 0.0851,
167
+ "step": 22000
168
+ },
169
+ {
170
+ "epoch": 3.51,
171
+ "learning_rate": 8.921643500840079e-06,
172
+ "loss": 0.0787,
173
+ "step": 23000
174
+ },
175
+ {
176
+ "epoch": 3.67,
177
+ "learning_rate": 8.00519321826791e-06,
178
+ "loss": 0.0897,
179
+ "step": 24000
180
+ },
181
+ {
182
+ "epoch": 3.82,
183
+ "learning_rate": 7.088742935695739e-06,
184
+ "loss": 0.0917,
185
+ "step": 25000
186
+ },
187
+ {
188
+ "epoch": 3.97,
189
+ "learning_rate": 6.172292653123568e-06,
190
+ "loss": 0.0811,
191
+ "step": 26000
192
+ },
193
+ {
194
+ "epoch": 4.0,
195
+ "eval_accuracy": 0.9192751235584844,
196
+ "eval_loss": 0.4277651309967041,
197
+ "eval_runtime": 10.6276,
198
+ "eval_samples_per_second": 514.037,
199
+ "eval_steps_per_second": 64.266,
200
+ "step": 26188
201
+ },
202
+ {
203
+ "epoch": 4.12,
204
+ "learning_rate": 5.255842370551398e-06,
205
+ "loss": 0.0578,
206
+ "step": 27000
207
+ },
208
+ {
209
+ "epoch": 4.28,
210
+ "learning_rate": 4.339392087979228e-06,
211
+ "loss": 0.0518,
212
+ "step": 28000
213
+ },
214
+ {
215
+ "epoch": 4.43,
216
+ "learning_rate": 3.4229418054070567e-06,
217
+ "loss": 0.052,
218
+ "step": 29000
219
+ },
220
+ {
221
+ "epoch": 4.58,
222
+ "learning_rate": 2.5064915228348865e-06,
223
+ "loss": 0.052,
224
+ "step": 30000
225
+ },
226
+ {
227
+ "epoch": 4.73,
228
+ "learning_rate": 1.5900412402627159e-06,
229
+ "loss": 0.0448,
230
+ "step": 31000
231
+ },
232
+ {
233
+ "epoch": 4.89,
234
+ "learning_rate": 6.735909576905453e-07,
235
+ "loss": 0.05,
236
+ "step": 32000
237
+ },
238
+ {
239
+ "epoch": 5.0,
240
+ "eval_accuracy": 0.9176276771004942,
241
+ "eval_loss": 0.5109593868255615,
242
+ "eval_runtime": 10.8996,
243
+ "eval_samples_per_second": 501.212,
244
+ "eval_steps_per_second": 62.663,
245
+ "step": 32735
246
+ },
247
+ {
248
+ "epoch": 5.0,
249
+ "step": 32735,
250
+ "total_flos": 1.734440872113408e+16,
251
+ "train_loss": 0.15606709380213207,
252
+ "train_runtime": 1886.2061,
253
+ "train_samples_per_second": 277.655,
254
+ "train_steps_per_second": 17.355
255
+ }
256
+ ],
257
+ "max_steps": 32735,
258
+ "num_train_epochs": 5,
259
+ "total_flos": 1.734440872113408e+16,
260
+ "trial_name": null,
261
+ "trial_params": null
262
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88a4cd8abdc7501e9f667c3605f9282b8e62a2fe1ba2844b1934d379173a587e
3
+ size 2927