Zero-Shot Classification
Transformers
Safetensors
English
switch_transformers
text-classification
Generated from Trainer
custom_code
Eval Results (legacy)
Instructions to use glamprou/switch-base-8-mnli with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use glamprou/switch-base-8-mnli with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-classification", model="glamprou/switch-base-8-mnli", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("glamprou/switch-base-8-mnli", trust_remote_code=True) model = AutoModelForSequenceClassification.from_pretrained("glamprou/switch-base-8-mnli", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle