Model Description: This is the uncased DistilBERT model fine-tuned on Multi-Genre Natural Language Inference (MNLI) dataset for the zero-shot classification task.
from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("typeform/distilbert-base-uncased-mnli") model = AutoModelForSequenceClassification.from_pretrained("typeform/distilbert-base-uncased-mnli")
This model can be used for text classification tasks.
CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes.
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021) ).
This model of DistilBERT-uncased is pretrained on the Multi-Genre Natural Language Inference (MultiNLI) corpus. It is a crowd-sourced collection of 433k sentence pairs annotated with textual entailment information. The corpus covers a range of genres of spoken and written text, and supports a distinctive cross-genre generalization evaluation.
This model is also not case-sensitive, i.e., it does not make a difference between "english" and "English".
Training ProcedureTraining is done on a p3.2xlarge AWS EC2 with the following hyperparameters:
$ run_glue.py \ --model_name_or_path distilbert-base-uncased \ --task_name mnli \ --do_train \ --do_eval \ --max_seq_length 128 \ --per_device_train_batch_size 16 \ --learning_rate 2e-5 \ --num_train_epochs 5 \ --output_dir /tmp/distilbert-base-uncased_mnli/
When fine-tuned on downstream tasks, this model achieves the following results:
MNLI and MNLI-mm results:
Task | MNLI | MNLI-mm |
---|---|---|
82.0 | 82.0 |
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019) . We present the hardware type based on the associated paper .
Hardware Type: 1 NVIDIA Tesla V100 GPUs
Hours used: Unknown
Cloud Provider: AWS EC2 P3
Compute Region: Unknown
Carbon Emitted: (Power consumption x Time x Carbon produced based on location of power grid): Unknown