Zero-Shot Classification
Transformers
PyTorch
Safetensors
Swedish
megatron-bert
text-classification
swedish
Instructions to use KBLab/megatron-bert-large-swedish-cased-165-zero-shot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KBLab/megatron-bert-large-swedish-cased-165-zero-shot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-classification", model="KBLab/megatron-bert-large-swedish-cased-165-zero-shot")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KBLab/megatron-bert-large-swedish-cased-165-zero-shot") model = AutoModelForSequenceClassification.from_pretrained("KBLab/megatron-bert-large-swedish-cased-165-zero-shot") - Notebooks
- Google Colab
- Kaggle