Downloads · 30 days
79
18% of all-time downloads
Yuu-Xie/fever-nli-modernbert-large
fever-nli-modernbert-large is a text classification model from Yuu-Xie. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of answerdotai/ModernBERT-large on the pietrolesci/nlifever dataset. It is specifically designed for the FEVER (Fact Extraction and VERification) task, aiming to determine the logica…
Downloads · 30 days
79
18% of all-time downloads
All-time downloads
440
Public
Parameters
396M
1.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.6 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of answerdotai/ModernBERT-large on the pietrolesci/nli_fever dataset. It is specifically designed for the FEVER (Fact Extraction and VERification) task, aiming to determine the logical relationship between a given Claim and Evidence through a Natural Language Inference (NLI) framework.
This model can be directly integrated into Fact-checking Pipelines for:
The model outputs three classes, corresponding to standard NLI labels and FEVER business logic:
from transformers import pipeline
nli = pipeline(
task="text-classification",
model="Yuu-Xie/fever-nli-modernbert-large"
)
claim = "Nikolaj Coster-Waldau worked with the Fox Broadcasting Company."
evidence = "Coster-Waldau played Detective John Amsterdam in the short-lived Fox television series New Amsterdam."
result = nli({"text": claim, "text_pair": evidence})
print(result)
# Expected Output: {'label': 'entailment', 'score': 0.8406911492347717}
The training set uses pietrolesci/nli_fever, which reformats the original FEVER task into the standard (premise, hypothesis) sentence pair format.
bf16 mixed precisionEvaluated on 19,998 independent validation samples, the model demonstrates high logical consistency:
| Metric | Score |
|---|---|
| Accuracy | 0.7683 |
| Macro Precision | 0.7677 |
| Macro Recall | 0.7683 |
| Macro F1 | 0.7676 |
| Eval Loss | 0.9718 |
@misc{yuu-xie2026modernbert-large-fever-nli,
author = {Yuu-Xie},
title = {fever-nli-ModernBERT-large},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/Yuu-Xie/fever-nli-modernbert-large}}
}