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")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("tasksource/ModernBERT-base-nli") model = AutoModelForSequenceClassification.from_pretrained("tasksource/ModernBERT-base-nli") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -21,7 +21,7 @@ ModernBERT multi-task fine-tuned on tasksource NLI tasks, including MNLI, ANLI,
|
|
| 21 |
This is the equivalent of an "instruct" version.
|
| 22 |
The model was trained for 200k steps on an Nvidia A30 GPU.
|
| 23 |
|
| 24 |
-
It is very good at reasoning tasks (better than llama 3.1 8B on ANLI and FOLIO), long context reasoning, sentiment analysis and zero-shot classification with new labels.
|
| 25 |
|
| 26 |
| test_name | test_accuracy |
|
| 27 |
|:--------------------------------------|----------------:|
|
|
|
|
| 21 |
This is the equivalent of an "instruct" version.
|
| 22 |
The model was trained for 200k steps on an Nvidia A30 GPU.
|
| 23 |
|
| 24 |
+
It is very good at reasoning tasks (better than llama 3.1 8B Instruct on ANLI and FOLIO), long context reasoning, sentiment analysis and zero-shot classification with new labels.
|
| 25 |
|
| 26 |
| test_name | test_accuracy |
|
| 27 |
|:--------------------------------------|----------------:|
|