Views
No views yet

| Model | type | Vocabulary | Backbone + Embeddings = Total Parameters |
|---|---|---|---|
| ult5-pt-small | encoder-decoder | 65k | 56.6M + 25.8M = 82.4M |
| sentence-transformer-ult5-pt-small | sentence-transformer | 65k | 25.2 + 25.8M = 51M |
| DeBERTina-base | encoder | 32k | 85.5M + 24.6M = 110.0M |
| DeBERTina-base-128k-vocab | encoder | 128k | 85.5M + 98.3M = 183.8M |
| DeBERTina-large | encoder | 128k | 348.4M + 98.3M = 433.9.0M |
| DeBERTina-xsmall | encoder | 128k | 21.5M + 49.2M = 70.6M |
1from transformers import AutoModelForSequenceClassification
2
3num_labels = 2 # number of labels in classes
4model = AutoModelForSequenceClassification.from_pretrained("tgsc/debertina-base",num_labels=num_labels)1@inproceedings{
22023debertina,
3title={DeBERTina: A portuguese DeBERTa-v3 model.},
4author = {Thacio Garcia Scandaroli},
5year={2023},
6url={https://huggingface.co/tgsc/debertina-base}
7}| 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/- |
1#!/bin/bash
2
3cd transformers/examples/pytorch/text-classification/
4
5pip install datasets
6export TASK_NAME=mnli
7
8output_dir="ds_results"
9
10num_gpus=8
11
12batch_size=8
13
14python -m torch.distributed.launch --nproc_per_node=${num_gpus} \
15 run_glue.py \
16 --model_name_or_path microsoft/deberta-v3-base \
17 --task_name $TASK_NAME \
18 --do_train \
19 --do_eval \
20 --evaluation_strategy steps \
21 --max_seq_length 256 \
22 --warmup_steps 500 \
23 --per_device_train_batch_size ${batch_size} \
24 --learning_rate 2e-5 \
25 --num_train_epochs 3 \
26 --output_dir $output_dir \
27 --overwrite_output_dir \
28 --logging_steps 1000 \
29 --logging_dir $output_dir
301@misc{he2021debertav3,
2 title={DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharing},
3 author={Pengcheng He and Jianfeng Gao and Weizhu Chen},
4 year={2021},
5 eprint={2111.09543},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL}
8}1@inproceedings{
2he2021deberta,
3title={DEBERTA: DECODING-ENHANCED BERT WITH DISENTANGLED ATTENTION},
4author={Pengcheng He and Xiaodong Liu and Jianfeng Gao and Weizhu Chen},
5booktitle={International Conference on Learning Representations},
6year={2021},
7url={https://openreview.net/forum?id=XPZIaotutsD}
8}