Zero-Shot Classification
Transformers
PyTorch
JAX
bart
text-classification
distilbart
distilbart-mnli
Instructions to use valhalla/distilbart-mnli-12-3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use valhalla/distilbart-mnli-12-3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-classification", model="valhalla/distilbart-mnli-12-3")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("valhalla/distilbart-mnli-12-3") model = AutoModelForSequenceClassification.from_pretrained("valhalla/distilbart-mnli-12-3", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download .gitattributes from valhalla/distilbart-mnli-12-3: direct link, hf CLI and curl.
- Browser
- Download file 445 Bytes
-
https://huggingface.co/valhalla/distilbart-mnli-12-3/resolve/refs%2Fpr%2F1/.gitattributes
- Command line
-
hf download hf://valhalla/distilbart-mnli-12-3@refs/pr/1/.gitattributes
-
curl -L -o .gitattributes https://huggingface.co/valhalla/distilbart-mnli-12-3/resolve/refs%2Fpr%2F1/.gitattributes
445 Bytes
| *.bin.* filter=lfs diff=lfs merge=lfs -text | |
| *.lfs.* filter=lfs diff=lfs merge=lfs -text | |
| *.bin filter=lfs diff=lfs merge=lfs -text | |
| *.h5 filter=lfs diff=lfs merge=lfs -text | |
| *.tflite filter=lfs diff=lfs merge=lfs -text | |
| *.tar.gz filter=lfs diff=lfs merge=lfs -text | |
| *.ot filter=lfs diff=lfs merge=lfs -text | |
| *.onnx filter=lfs diff=lfs merge=lfs -text | |
| *.msgpack filter=lfs diff=lfs merge=lfs -text | |
| model.safetensors filter=lfs diff=lfs merge=lfs -text | |