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
File size: 135 Bytes
ef9a58c | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:d6d86e46d68c4b30646d115e992fc049e5d56775b8068aaf21dc22c511bcf726
size 1024706209
|