Instructions to use microsoft/deberta-v3-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/deberta-v3-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="microsoft/deberta-v3-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("microsoft/deberta-v3-base", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Pengcheng He commited on
Commit ·
e464797
1
Parent(s): 766641b
Improve README
Browse filesFiles changed (2)
- README.md+16-13
- pytorch_model.bin+1-1
6 unmodified lines7891010111213141415161617181819202122232324252627282930313233252627282930313435363732 unmodified lines70717270737475766 unmodified lineslicense: mit---
## DeBERTa: Decoding-enhanced BERT with Disentangled Attention## DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharing
[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.
Please check the [official repository](https://github.com/microsoft/DeBERTa) for more details and updates.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).
In [DeBERTa V3](https://arxiv.org/abs/2111.09543), we replaced the MLM objective with the RTD(Replaced Token Detection) objective introduced by ELECTRA for pre-training, as well as some innovations to be introduced in our upcoming paper. Compared to DeBERTa-V2, our V3 version significantly improves the model performance in downstream tasks. You can find a simple introduction about the model from the appendix A11 in our original [paper](https://arxiv.org/abs/2006.03654), but we will provide more details in a separate write-up.Please check the [official repository](https://github.com/microsoft/DeBERTa) for more implementation details and updates.
The DeBERTa V3 base model comes with 12 layers and a hidden size of 768. Its total parameter number is 183M since we use a vocabulary containing 128K tokens which introduce 98M parameters in the Embedding layer. This model was trained using the 160GB data as DeBERTa V2.The DeBERTa V3 base model comes with 12 layers and a hidden size of 768. It has only 86M 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.
#### Fine-tuning on NLU tasks
We present the dev results on SQuAD 1.1/2.0 and MNLI tasks.We present the dev results on SQuAD 2.0 and MNLI tasks.
| Model |Vocabulary(K)|Backbone #Params(M)| SQuAD 2.0(F1/EM) | MNLI-m/mm(ACC)||-------------------|----------|-------------------|-----------|----------|| RoBERTa-base |50 |86 | 83.7/80.5 | 87.6/- || XLNet-base |32 |92 | -/80.2 | 86.8/- || ELECTRA-base |30 |86 | -/80.5 | 88.8/ || DeBERTa-base |50 |100 | 86.2/83.1| 88.8/88.5|| DeBERTa-v3-base |128|86 | 88.4/85.4 | 90.6/90.7|| DeBERTa-v3-base + SiFT |128|86 | -/- | 91.0/-|
| Model | SQuAD 1.1 | SQuAD 2.0 | MNLI-m ||-------------------|-----------|-----------|--------|| RoBERTa-base | 91.5/84.6 | 83.7/80.5 | 87.6 || XLNet-base | -/- | -/80.2 | 86.8 || DeBERTa-base | 93.1/87.2 | 86.2/83.1 | 88.8 || **DeBERTa-v3-base** | 93.9/88.4 | 88.4/85.4 | 90.6 || DeBERTa-v3-base+SiFT | -/- | -/- | **91.0** |We present the dev results on SQuAD 1.1/2.0 and MNLI tasks.
#### Fine-tuning with HF transformers
32 unmodified lines
### Citation
If you find DeBERTa useful for your work, please cite the following paper:If you find DeBERTa useful for your work, please cite the following papers:
``` latex@misc{he2021debertav3,1223version https://git-lfs.github.com/spec/v1oid sha256:8a7d0474c09c9e86cbe66ea6f8ac9e6d11670389829b586cd467ccfab7a24f29oid sha256:691d48a2800b926a19e3051def466fc2cca4f59a15e42ce4a0cf7f1b380b5e33size 371146213README.md+16-13
pytorch_model.bin+1-1