Commit ·
3bbf84e
0
Parent(s):
Duplicate from microsoft/deberta-base-mnli
Browse filesCo-authored-by: Julien Chaumond <julien-c@users.noreply.huggingface.co>
- .gitattributes +16 -0
- README.md +44 -0
- bpe_encoder.bin +3 -0
- config.json +33 -0
- merges.txt +0 -0
- pytorch_model.bin +3 -0
- rust_model.ot +3 -0
- tokenizer_config.json +4 -0
- vocab.json +0 -0
.gitattributes
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: en
|
| 3 |
+
tags:
|
| 4 |
+
- deberta-v1
|
| 5 |
+
- deberta-mnli
|
| 6 |
+
tasks: mnli
|
| 7 |
+
thumbnail: https://huggingface.co/front/thumbnails/microsoft.png
|
| 8 |
+
license: mit
|
| 9 |
+
widget:
|
| 10 |
+
- text: "[CLS] I love you. [SEP] I like you. [SEP]"
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
## DeBERTa: Decoding-enhanced BERT with Disentangled Attention
|
| 14 |
+
|
| 15 |
+
[DeBERTa](https://arxiv.org/abs/2006.03654) improves the BERT and RoBERTa models using disentangled attention and enhanced mask decoder. It outperforms BERT and RoBERTa on majority of NLU tasks with 80GB training data.
|
| 16 |
+
|
| 17 |
+
Please check the [official repository](https://github.com/microsoft/DeBERTa) for more details and updates.
|
| 18 |
+
|
| 19 |
+
This model is the base DeBERTa model fine-tuned with MNLI task
|
| 20 |
+
|
| 21 |
+
#### Fine-tuning on NLU tasks
|
| 22 |
+
|
| 23 |
+
We present the dev results on SQuAD 1.1/2.0 and MNLI tasks.
|
| 24 |
+
|
| 25 |
+
| Model | SQuAD 1.1 | SQuAD 2.0 | MNLI-m |
|
| 26 |
+
|-------------------|-----------|-----------|--------|
|
| 27 |
+
| RoBERTa-base | 91.5/84.6 | 83.7/80.5 | 87.6 |
|
| 28 |
+
| XLNet-Large | -/- | -/80.2 | 86.8 |
|
| 29 |
+
| **DeBERTa-base** | 93.1/87.2 | 86.2/83.1 | 88.8 |
|
| 30 |
+
|
| 31 |
+
### Citation
|
| 32 |
+
|
| 33 |
+
If you find DeBERTa useful for your work, please cite the following paper:
|
| 34 |
+
|
| 35 |
+
``` latex
|
| 36 |
+
@inproceedings{
|
| 37 |
+
he2021deberta,
|
| 38 |
+
title={DEBERTA: DECODING-ENHANCED BERT WITH DISENTANGLED ATTENTION},
|
| 39 |
+
author={Pengcheng He and Xiaodong Liu and Jianfeng Gao and Weizhu Chen},
|
| 40 |
+
booktitle={International Conference on Learning Representations},
|
| 41 |
+
year={2021},
|
| 42 |
+
url={https://openreview.net/forum?id=XPZIaotutsD}
|
| 43 |
+
}
|
| 44 |
+
```
|
bpe_encoder.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e7c6f9eecb461c01e09c00656ccf3e27944b9e74bfe29e51632b13d3cd9d6c8e
|
| 3 |
+
size 3917897
|
config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"num_labels": 3,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"DebertaForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"id2label": {
|
| 7 |
+
"0": "CONTRADICTION",
|
| 8 |
+
"1": "NEUTRAL",
|
| 9 |
+
"2": "ENTAILMENT"
|
| 10 |
+
},
|
| 11 |
+
"label2id": {
|
| 12 |
+
"CONTRADICTION": 0,
|
| 13 |
+
"NEUTRAL": 1,
|
| 14 |
+
"ENTAILMENT": 2
|
| 15 |
+
},
|
| 16 |
+
"model_type": "deberta",
|
| 17 |
+
"attention_probs_dropout_prob": 0.1,
|
| 18 |
+
"hidden_act": "gelu",
|
| 19 |
+
"hidden_dropout_prob": 0.1,
|
| 20 |
+
"hidden_size": 768,
|
| 21 |
+
"initializer_range": 0.02,
|
| 22 |
+
"intermediate_size": 3072,
|
| 23 |
+
"max_position_embeddings": 512,
|
| 24 |
+
"relative_attention": true,
|
| 25 |
+
"pos_att_type": "c2p|p2c",
|
| 26 |
+
"layer_norm_eps": 1e-7,
|
| 27 |
+
"max_relative_positions": -1,
|
| 28 |
+
"position_biased_input": false,
|
| 29 |
+
"num_attention_heads": 12,
|
| 30 |
+
"num_hidden_layers": 12,
|
| 31 |
+
"type_vocab_size": 0,
|
| 32 |
+
"vocab_size": 50265
|
| 33 |
+
}
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f82b3a368bf628768567c1ce03b354eea1299b87c42ded71a56e4cdd3ea0039
|
| 3 |
+
size 556811547
|
rust_model.ot
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d3075b64720952dbb968398741968d4f8ce1d803b6ba2e7cf9a880c69d324b99
|
| 3 |
+
size 556842227
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_lower_case": false,
|
| 3 |
+
"vocab_type": "gpt2"
|
| 4 |
+
}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|