SetFit/mnli
Viewer • Updated • 412k • 2.75k • 8
How to use sfarrukhm/modernbert-setfit-nli with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="sfarrukhm/modernbert-setfit-nli") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("sfarrukhm/modernbert-setfit-nli")
model = AutoModelForSequenceClassification.from_pretrained("sfarrukhm/modernbert-setfit-nli")This model is a fine-tuned version of answerdotai/ModernBERT-base trained on a subset of the SetFit/mnli dataset. It is trained for natural language inference (NLI) tasks, where the goal is to determine the relationship between two text inputs (e.g., entailment, contradiction, or neutrality).
This model is a starting point for NLI tasks and may need further fine-tuning for domain-specific applications.
The following hyperparameters were used during training:
Base model
answerdotai/ModernBERT-base