Zero-Shot Classification
Transformers
Safetensors
English
modernbert
text-classification
instruct
natural-language-inference
nli
mnli
Instructions to use tasksource/ModernBERT-base-nli with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tasksource/ModernBERT-base-nli with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-classification", model="tasksource/ModernBERT-base-nli")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("tasksource/ModernBERT-base-nli") model = AutoModelForSequenceClassification.from_pretrained("tasksource/ModernBERT-base-nli", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
| 2 |
library_name: transformers
|
| 3 |
base_model:
|
| 4 |
- answerdotai/ModernBERT-base
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
---
|
| 6 |
|
| 7 |
# Model Card for Model ID
|
|
|
|
| 2 |
library_name: transformers
|
| 3 |
base_model:
|
| 4 |
- answerdotai/ModernBERT-base
|
| 5 |
+
license: apache-2.0
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
pipeline_tag: zero-shot-classification
|
| 9 |
---
|
| 10 |
|
| 11 |
# Model Card for Model ID
|