Initial commit from mrm8488
Browse files- README.md +78 -0
- added_tokens.json +1 -0
- all_results.json +14 -0
- config.json +44 -0
- eval_results.json +9 -0
- pytorch_model.bin +3 -0
- runs/events.out.tfevents.1637520886.e39b553f1d72.611.0 +3 -0
- runs/events.out.tfevents.1637522029.e39b553f1d72.611.2 +3 -0
- special_tokens_map.json +1 -0
- spm.model +3 -0
- tokenizer_config.json +1 -0
- train_results.json +8 -0
- trainer_state.json +196 -0
- training_args.bin +3 -0
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 SST2
|
19 |
+
type: glue
|
20 |
+
args: sst2
|
21 |
+
metrics:
|
22 |
+
- name: Accuracy
|
23 |
+
type: accuracy
|
24 |
+
value: 0.9403669724770642
|
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 SST2 dataset.
|
33 |
+
It achieves the following results on the evaluation set:
|
34 |
+
- Loss: 0.2134
|
35 |
+
- Accuracy: 0.9404
|
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.176 | 1.0 | 4210 | 0.2134 | 0.9404 |
|
67 |
+
| 0.1254 | 2.0 | 8420 | 0.2362 | 0.9415 |
|
68 |
+
| 0.0957 | 3.0 | 12630 | 0.3187 | 0.9335 |
|
69 |
+
| 0.0673 | 4.0 | 16840 | 0.3039 | 0.9266 |
|
70 |
+
| 0.0457 | 5.0 | 21050 | 0.3521 | 0.9312 |
|
71 |
+
|
72 |
+
|
73 |
+
### Framework versions
|
74 |
+
|
75 |
+
- Transformers 4.13.0.dev0
|
76 |
+
- Pytorch 1.10.0+cu111
|
77 |
+
- Datasets 1.15.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.9403669724770642,
|
4 |
+
"eval_loss": 0.21339105069637299,
|
5 |
+
"eval_runtime": 1.6841,
|
6 |
+
"eval_samples": 872,
|
7 |
+
"eval_samples_per_second": 517.797,
|
8 |
+
"eval_steps_per_second": 64.725,
|
9 |
+
"train_loss": 0.10636022938685293,
|
10 |
+
"train_runtime": 1140.0834,
|
11 |
+
"train_samples": 67349,
|
12 |
+
"train_samples_per_second": 295.369,
|
13 |
+
"train_steps_per_second": 18.464
|
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": "sst2",
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "negative",
|
13 |
+
"1": "positive"
|
14 |
+
},
|
15 |
+
"initializer_range": 0.02,
|
16 |
+
"intermediate_size": 3072,
|
17 |
+
"label2id": {
|
18 |
+
"negative": 0,
|
19 |
+
"positive": 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.9403669724770642,
|
4 |
+
"eval_loss": 0.21339105069637299,
|
5 |
+
"eval_runtime": 1.6841,
|
6 |
+
"eval_samples": 872,
|
7 |
+
"eval_samples_per_second": 517.797,
|
8 |
+
"eval_steps_per_second": 64.725
|
9 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a2b7f954e9ef086b3188c9cfd50d6d51b78cb34c0ca5012dc52ab861d654ec78
|
3 |
+
size 567632875
|
runs/events.out.tfevents.1637520886.e39b553f1d72.611.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:986d61e845aede3c910460fa39bf828fe49f4758d44130be9fe8e79ba85026d0
|
3 |
+
size 8741
|
runs/events.out.tfevents.1637522029.e39b553f1d72.611.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3301954d1328db322b541ce8d77d868b03f6e0698b4717090fa592fdedf148da
|
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.10636022938685293,
|
4 |
+
"train_runtime": 1140.0834,
|
5 |
+
"train_samples": 67349,
|
6 |
+
"train_samples_per_second": 295.369,
|
7 |
+
"train_steps_per_second": 18.464
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.21339105069637299,
|
3 |
+
"best_model_checkpoint": "/content/deberta-v3-small/checkpoint-4210",
|
4 |
+
"epoch": 5.0,
|
5 |
+
"global_step": 21050,
|
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.24,
|
12 |
+
"learning_rate": 2.8574821852731592e-05,
|
13 |
+
"loss": 0.2693,
|
14 |
+
"step": 1000
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"epoch": 0.48,
|
18 |
+
"learning_rate": 2.7149643705463184e-05,
|
19 |
+
"loss": 0.2031,
|
20 |
+
"step": 2000
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"epoch": 0.71,
|
24 |
+
"learning_rate": 2.5724465558194775e-05,
|
25 |
+
"loss": 0.1878,
|
26 |
+
"step": 3000
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"epoch": 0.95,
|
30 |
+
"learning_rate": 2.4299287410926366e-05,
|
31 |
+
"loss": 0.176,
|
32 |
+
"step": 4000
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"epoch": 1.0,
|
36 |
+
"eval_accuracy": 0.9403669724770642,
|
37 |
+
"eval_loss": 0.21339105069637299,
|
38 |
+
"eval_runtime": 1.658,
|
39 |
+
"eval_samples_per_second": 525.933,
|
40 |
+
"eval_steps_per_second": 65.742,
|
41 |
+
"step": 4210
|
42 |
+
},
|
43 |
+
{
|
44 |
+
"epoch": 1.19,
|
45 |
+
"learning_rate": 2.2874109263657958e-05,
|
46 |
+
"loss": 0.1353,
|
47 |
+
"step": 5000
|
48 |
+
},
|
49 |
+
{
|
50 |
+
"epoch": 1.43,
|
51 |
+
"learning_rate": 2.144893111638955e-05,
|
52 |
+
"loss": 0.1251,
|
53 |
+
"step": 6000
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"epoch": 1.66,
|
57 |
+
"learning_rate": 2.002375296912114e-05,
|
58 |
+
"loss": 0.1309,
|
59 |
+
"step": 7000
|
60 |
+
},
|
61 |
+
{
|
62 |
+
"epoch": 1.9,
|
63 |
+
"learning_rate": 1.8598574821852732e-05,
|
64 |
+
"loss": 0.1254,
|
65 |
+
"step": 8000
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 2.0,
|
69 |
+
"eval_accuracy": 0.9415137614678899,
|
70 |
+
"eval_loss": 0.23621003329753876,
|
71 |
+
"eval_runtime": 1.6921,
|
72 |
+
"eval_samples_per_second": 515.329,
|
73 |
+
"eval_steps_per_second": 64.416,
|
74 |
+
"step": 8420
|
75 |
+
},
|
76 |
+
{
|
77 |
+
"epoch": 2.14,
|
78 |
+
"learning_rate": 1.7173396674584323e-05,
|
79 |
+
"loss": 0.0991,
|
80 |
+
"step": 9000
|
81 |
+
},
|
82 |
+
{
|
83 |
+
"epoch": 2.38,
|
84 |
+
"learning_rate": 1.5748218527315915e-05,
|
85 |
+
"loss": 0.087,
|
86 |
+
"step": 10000
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 2.61,
|
90 |
+
"learning_rate": 1.4323040380047506e-05,
|
91 |
+
"loss": 0.0899,
|
92 |
+
"step": 11000
|
93 |
+
},
|
94 |
+
{
|
95 |
+
"epoch": 2.85,
|
96 |
+
"learning_rate": 1.2897862232779098e-05,
|
97 |
+
"loss": 0.0957,
|
98 |
+
"step": 12000
|
99 |
+
},
|
100 |
+
{
|
101 |
+
"epoch": 3.0,
|
102 |
+
"eval_accuracy": 0.9334862385321101,
|
103 |
+
"eval_loss": 0.3187325596809387,
|
104 |
+
"eval_runtime": 1.6267,
|
105 |
+
"eval_samples_per_second": 536.052,
|
106 |
+
"eval_steps_per_second": 67.007,
|
107 |
+
"step": 12630
|
108 |
+
},
|
109 |
+
{
|
110 |
+
"epoch": 3.09,
|
111 |
+
"learning_rate": 1.1472684085510689e-05,
|
112 |
+
"loss": 0.0747,
|
113 |
+
"step": 13000
|
114 |
+
},
|
115 |
+
{
|
116 |
+
"epoch": 3.33,
|
117 |
+
"learning_rate": 1.004750593824228e-05,
|
118 |
+
"loss": 0.0609,
|
119 |
+
"step": 14000
|
120 |
+
},
|
121 |
+
{
|
122 |
+
"epoch": 3.56,
|
123 |
+
"learning_rate": 8.622327790973872e-06,
|
124 |
+
"loss": 0.064,
|
125 |
+
"step": 15000
|
126 |
+
},
|
127 |
+
{
|
128 |
+
"epoch": 3.8,
|
129 |
+
"learning_rate": 7.197149643705463e-06,
|
130 |
+
"loss": 0.0673,
|
131 |
+
"step": 16000
|
132 |
+
},
|
133 |
+
{
|
134 |
+
"epoch": 4.0,
|
135 |
+
"eval_accuracy": 0.926605504587156,
|
136 |
+
"eval_loss": 0.30392569303512573,
|
137 |
+
"eval_runtime": 1.6546,
|
138 |
+
"eval_samples_per_second": 527.02,
|
139 |
+
"eval_steps_per_second": 65.878,
|
140 |
+
"step": 16840
|
141 |
+
},
|
142 |
+
{
|
143 |
+
"epoch": 4.04,
|
144 |
+
"learning_rate": 5.7719714964370545e-06,
|
145 |
+
"loss": 0.0641,
|
146 |
+
"step": 17000
|
147 |
+
},
|
148 |
+
{
|
149 |
+
"epoch": 4.28,
|
150 |
+
"learning_rate": 4.346793349168647e-06,
|
151 |
+
"loss": 0.0438,
|
152 |
+
"step": 18000
|
153 |
+
},
|
154 |
+
{
|
155 |
+
"epoch": 4.51,
|
156 |
+
"learning_rate": 2.9216152019002377e-06,
|
157 |
+
"loss": 0.0435,
|
158 |
+
"step": 19000
|
159 |
+
},
|
160 |
+
{
|
161 |
+
"epoch": 4.75,
|
162 |
+
"learning_rate": 1.496437054631829e-06,
|
163 |
+
"loss": 0.0484,
|
164 |
+
"step": 20000
|
165 |
+
},
|
166 |
+
{
|
167 |
+
"epoch": 4.99,
|
168 |
+
"learning_rate": 7.125890736342044e-08,
|
169 |
+
"loss": 0.0457,
|
170 |
+
"step": 21000
|
171 |
+
},
|
172 |
+
{
|
173 |
+
"epoch": 5.0,
|
174 |
+
"eval_accuracy": 0.9311926605504587,
|
175 |
+
"eval_loss": 0.3521420657634735,
|
176 |
+
"eval_runtime": 1.6616,
|
177 |
+
"eval_samples_per_second": 524.793,
|
178 |
+
"eval_steps_per_second": 65.599,
|
179 |
+
"step": 21050
|
180 |
+
},
|
181 |
+
{
|
182 |
+
"epoch": 5.0,
|
183 |
+
"step": 21050,
|
184 |
+
"total_flos": 1.115233078066944e+16,
|
185 |
+
"train_loss": 0.10636022938685293,
|
186 |
+
"train_runtime": 1140.0834,
|
187 |
+
"train_samples_per_second": 295.369,
|
188 |
+
"train_steps_per_second": 18.464
|
189 |
+
}
|
190 |
+
],
|
191 |
+
"max_steps": 21050,
|
192 |
+
"num_train_epochs": 5,
|
193 |
+
"total_flos": 1.115233078066944e+16,
|
194 |
+
"trial_name": null,
|
195 |
+
"trial_params": null
|
196 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c3a1522ca735076ee2b2b35ccf2f73e2ed5b250299dbaff89cedf40c2cea5430
|
3 |
+
size 2863
|