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)# pip install -U transformers accelerate # 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, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update config.json
Verified signature0b38e9d -
Upload 2 files
Verified signatureCustom classes to use until merge with main25f90bf -
Update README.md
Verified signaturee90f0a4
-
Update config.json
Verified signature88aec83 -
Update config.json
Verified signature64764a0 -
Create README.md
Verified signaturec29a05f -
Upload SwitchTransformerForSequenceClassification
Verified signature8b4c1d1 -
initial commit
Verified signature6de87ad