Zero-Shot Classification
Transformers
Safetensors
English
modernbert
text-classification
instruct
natural-language-inference
nli
Instructions to use tasksource/ModernBERT-large-nli with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tasksource/ModernBERT-large-nli with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-classification", model="tasksource/ModernBERT-large-nli")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("tasksource/ModernBERT-large-nli") model = AutoModelForSequenceClassification.from_pretrained("tasksource/ModernBERT-large-nli", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from tasksource/ModernBERT-large-nli: direct link, hf CLI and curl.
- Browser
- Download file 3.58 MB
-
https://huggingface.co/tasksource/ModernBERT-large-nli/resolve/refs%2Fpr%2F1/tokenizer.json
- Command line
-
hf download hf://tasksource/ModernBERT-large-nli@refs/pr/1/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/tasksource/ModernBERT-large-nli/resolve/refs%2Fpr%2F1/tokenizer.json
3.58 MB
File too large to display, you can check the raw version instead.