Instructions to use optimum/distilbert-base-uncased-mnli with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use optimum/distilbert-base-uncased-mnli with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-classification", model="optimum/distilbert-base-uncased-mnli")# Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("optimum/distilbert-base-uncased-mnli", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from optimum/distilbert-base-uncased-mnli: direct link, hf CLI and curl.
- Browser
- Download file 1.19 kB
-
https://huggingface.co/optimum/distilbert-base-uncased-mnli/resolve/main/README.md
- Command line
-
hf download hf://optimum/distilbert-base-uncased-mnli/README.md
-
curl -L -o README.md https://huggingface.co/optimum/distilbert-base-uncased-mnli/resolve/main/README.md
1.19 kB
metadata
language: en
pipeline_tag: zero-shot-classification
tags:
- distilbert
datasets:
- multi_nli
metrics:
- accuracy
ONNX convert typeform/distilbert-base-uncased-mnli
Conversion of typeform/distilbert-base-uncased-mnli
This is the uncased DistilBERT model fine-tuned on Multi-Genre Natural Language Inference (MNLI) dataset for the zero-shot classification task. The model is not case-sensitive, i.e., it does not make a difference between "english" and "English".
Training
Training is done on a p3.2xlarge AWS EC2 instance (1 NVIDIA Tesla V100 GPUs), 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/
Evaluation results
| Task | MNLI | MNLI-mm |
|---|---|---|
| 82.0 | 82.0 |