Zero-Shot Classification
Transformers
PyTorch
TensorFlow
Safetensors
English
distilbert
text-classification
Instructions to use typeform/distilbert-base-uncased-mnli with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use typeform/distilbert-base-uncased-mnli with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-classification", model="typeform/distilbert-base-uncased-mnli")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("typeform/distilbert-base-uncased-mnli") model = AutoModelForSequenceClassification.from_pretrained("typeform/distilbert-base-uncased-mnli") - Inference
- Notebooks
- Google Colab
- Kaggle
Upload tokenizer.json
#5
by preciz - opened
Generated with:
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("typeform/distilbert-base-uncased-mnli")
assert tokenizer.is_fast
tokenizer.save_pretrained("...")