Pengcheng He
commited on
Commit
•
2e588b2
1
Parent(s):
46ce5f5
Improve README
Browse files- README.md +19 -16
- pytorch_model.bin +1 -1
README.md
CHANGED
@@ -7,28 +7,31 @@ thumbnail: https://huggingface.co/front/thumbnails/microsoft.png
|
|
7 |
license: mit
|
8 |
---
|
9 |
|
10 |
-
##
|
11 |
|
12 |
[DeBERTa](https://arxiv.org/abs/2006.03654) improves the BERT and RoBERTa models using disentangled attention and enhanced mask decoder. With those two improvements, DeBERTa out perform RoBERTa on a majority of NLU tasks with 80GB training data.
|
13 |
|
14 |
-
|
15 |
|
16 |
-
|
17 |
|
18 |
-
The DeBERTa V3 small model comes with 6 layers and a hidden size of 768.
|
19 |
|
20 |
|
21 |
#### Fine-tuning on NLU tasks
|
22 |
|
23 |
-
We present the dev results on SQuAD
|
24 |
|
25 |
-
| Model |
|
26 |
-
|
27 |
-
| RoBERTa-base |
|
28 |
-
| XLNet-base |
|
29 |
-
|
|
30 |
-
|
|
31 |
-
| DeBERTa-v3-
|
|
|
|
|
|
|
32 |
|
33 |
|
34 |
#### Fine-tuning with HF transformers
|
@@ -55,9 +58,9 @@ python -m torch.distributed.launch --nproc_per_node=${num_gpus} \
|
|
55 |
--do_eval \
|
56 |
--evaluation_strategy steps \
|
57 |
--max_seq_length 256 \
|
58 |
-
--warmup_steps
|
59 |
--per_device_train_batch_size ${batch_size} \
|
60 |
-
--learning_rate
|
61 |
--num_train_epochs 3 \
|
62 |
--output_dir $output_dir \
|
63 |
--overwrite_output_dir \
|
@@ -68,7 +71,7 @@ python -m torch.distributed.launch --nproc_per_node=${num_gpus} \
|
|
68 |
|
69 |
### Citation
|
70 |
|
71 |
-
If you find DeBERTa useful for your work, please cite the following
|
72 |
|
73 |
``` latex
|
74 |
@misc{he2021debertav3,
|
@@ -90,4 +93,4 @@ booktitle={International Conference on Learning Representations},
|
|
90 |
year={2021},
|
91 |
url={https://openreview.net/forum?id=XPZIaotutsD}
|
92 |
}
|
93 |
-
```
|
|
|
7 |
license: mit
|
8 |
---
|
9 |
|
10 |
+
## DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharing
|
11 |
|
12 |
[DeBERTa](https://arxiv.org/abs/2006.03654) improves the BERT and RoBERTa models using disentangled attention and enhanced mask decoder. With those two improvements, DeBERTa out perform RoBERTa on a majority of NLU tasks with 80GB training data.
|
13 |
|
14 |
+
In [DeBERTa V3](https://arxiv.org/abs/2111.09543), we further improved the efficiency of DeBERTa using ELECTRA-Style pre-training with Gradient Disentangled Embedding Sharing. Compared to DeBERTa, our V3 version significantly improves the model performance on downstream tasks. You can find more technique details about the new model from our [paper](https://arxiv.org/abs/2111.09543).
|
15 |
|
16 |
+
Please check the [official repository](https://github.com/microsoft/DeBERTa) for more implementation details and updates.
|
17 |
|
18 |
+
The DeBERTa V3 small model comes with 6 layers and a hidden size of 768. It has **44M** backbone parameters with a vocabulary containing 128K tokens which introduces 98M parameters in the Embedding layer. This model was trained using the 160GB data as DeBERTa V2.
|
19 |
|
20 |
|
21 |
#### Fine-tuning on NLU tasks
|
22 |
|
23 |
+
We present the dev results on SQuAD 2.0 and MNLI tasks.
|
24 |
|
25 |
+
| Model |Vocabulary(K)|Backbone #Params(M)| SQuAD 2.0(F1/EM) | MNLI-m/mm(ACC)|
|
26 |
+
|-------------------|----------|-------------------|-----------|----------|
|
27 |
+
| RoBERTa-base |50 |86 | 83.7/80.5 | 87.6/- |
|
28 |
+
| XLNet-base |32 |92 | -/80.2 | 86.8/- |
|
29 |
+
| ELECTRA-base |30 |86 | -/80.5 | 88.8/ |
|
30 |
+
| DeBERTa-base |50 |100 | 86.2/83.1| 88.8/88.5|
|
31 |
+
| DeBERTa-v3-large|128|304 | | - |
|
32 |
+
| DeBERTa-v3-base |128|86 | 88.4/85.4 | 90.6/90.7|
|
33 |
+
| **DeBERTa-v3-small** |128|44 | 82.8/80.4 | 88.3/87.7|
|
34 |
+
| DeBERTa-v3-small+SiFT|128|22 | -/- | 88.8/88.5|
|
35 |
|
36 |
|
37 |
#### Fine-tuning with HF transformers
|
|
|
58 |
--do_eval \
|
59 |
--evaluation_strategy steps \
|
60 |
--max_seq_length 256 \
|
61 |
+
--warmup_steps 1500 \
|
62 |
--per_device_train_batch_size ${batch_size} \
|
63 |
+
--learning_rate 4.5e-5 \
|
64 |
--num_train_epochs 3 \
|
65 |
--output_dir $output_dir \
|
66 |
--overwrite_output_dir \
|
|
|
71 |
|
72 |
### Citation
|
73 |
|
74 |
+
If you find DeBERTa useful for your work, please cite the following papers:
|
75 |
|
76 |
``` latex
|
77 |
@misc{he2021debertav3,
|
|
|
93 |
year={2021},
|
94 |
url={https://openreview.net/forum?id=XPZIaotutsD}
|
95 |
}
|
96 |
+
```
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 286059269
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d4b0ebcc7799a2c2dde1a39199cb0ed709f2c6b63a48b8c05133b77955f271a9
|
3 |
size 286059269
|