alt.freeweights.vision / ModernBERT-base-nli
From: tasksource <huggingface.co/tasksource>Newsgroups: alt.freeweights.visionSubject:

ModernBERT-base-nli

Date: 2026-11-15Commit: de4ab7eSigned: 2DC28CC7B26A283B ✓

Zero shot classification model with 150M parameters. Safetensors weights, 602 MB in all. Published by tasksource under Apache-2.0.

150M params602MBModernBERT-base-nlisafetensorspermissive
FactsParams150MSize602 MBFormatssafetensorsTaskzero shot classificationLicenseApache-2.0From sourcepermissive
$ fw get tasksource/ModernBERT-base-nli
# manifest sha256 34d31748058a… · 602 MB · 7 files
$ fw verify ./ModernBERT-base-nli tasksource/ModernBERT-base-nli
From sourceHosted (signed)tasksource/ModernBERT-base-nliLast check: 2026-11-15 02:34 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Fine-tune of ModernBERT-base.

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
602 MB
Weights
598 MB (safetensors)
Parameters
150M
Formats
safetensors
Task
zero shot classification
License
Apache-2.0 (permissive)
Files
7, each with a sha256
Publisher
tasksource
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Base model: answerdotai/ModernBERT-base

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:34 UTCpassed

Model card

From the publisher at commit de4ab7e. Shown as plain text with links; images open at the publisher.

Model Card for Model ID#

ModernBERT multi-task fine-tuned on tasksource NLI tasks, including MNLI, ANLI, SICK, WANLI, doc-nli, LingNLI, FOLIO, FOL-NLI, LogicNLI, Label-NLI and all datasets in the below table). This is the equivalent of an "instruct" version. The model was trained for 200k steps on an Nvidia A30 GPU.

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.

The following table shows model test accuracy. These are the scores for the same single transformer with different classification heads on top. Further gains can be obtained by fine-tuning on a single-task, e.g. SST, but it this checkpoint is great for zero-shot classification and natural language inference (contradiction/entailment/neutral classification).

test_nametest_accuracy
glue/mnli0.87
glue/qnli0.93
glue/rte0.85
glue/mrpc0.87
glue/qqp0.9
glue/cola0.86
glue/sst20.96
super_glue/boolq0.64
super_glue/cb0.89
super_glue/multirc0.82
super_glue/wic0.67
super_glue/axg0.89
anli/a10.66
anli/a20.49
anli/a30.44
sick/label0.93
sick/entailment_AB0.91
snli0.83
scitail/snli_format0.94
hans1
WANLI0.74
recast/recast_ner0.87
recast/recast_sentiment0.99
recast/recast_verbnet0.88
recast/recast_megaveridicality0.88
recast/recast_verbcorner0.94
recast/recast_kg_relations0.91
recast/recast_factuality0.94
recast/recast_puns0.96
probability_words_nli/reasoning_1hop0.99
probability_words_nli/usnli0.72
probability_words_nli/reasoning_2hop0.98
nan-nli0.85
nli_fever0.78
breaking_nli0.99
conj_nli0.74
fracas0.86
dialogue_nli0.93
mpe0.74
dnc0.92
recast_white/fnplus0.82
recast_white/sprl0.9
recast_white/dpr0.68
robust_nli/IS_CS0.79
robust_nli/LI_LI0.99
robust_nli/ST_WO0.85
robust_nli/PI_SP0.74
robust_nli/PI_CD0.8
robust_nli/ST_SE0.81
robust_nli/ST_NE0.86
robust_nli/ST_LM0.87
robust_nli_is_sd1
robust_nli_li_ts0.89
add_one_rte0.94
paws/labeled_final0.95
pragmeval/pdtb0.64
lex_glue/scotus0.55
lex_glue/ledgar0.8
dynasent/dynabench.dynasent.r1.all/r10.81
dynasent/dynabench.dynasent.r2.all/r20.75
cycic_classification0.9
lingnli0.84
monotonicity-entailment0.97
scinli0.8
naturallogic0.96
dynahate0.78
syntactic-augmentation-nli0.92
autotnli0.94
defeasible-nli/atomic0.81
defeasible-nli/snli0.78
help-nli0.96
nli-veridicality-transitivity0.98
lonli0.97
dadc-limit-nli0.69
folio0.66
tomi-nli0.48
puzzte0.6
temporal-nli0.92
counterfactually-augmented-snli0.79
cnli0.87
boolq-natural-perturbations0.66
equate0.63
logiqa-2.0-nli0.52
mindgames0.96
ConTRoL-nli0.67
logical-fallacy0.37
cladder0.87
conceptrules_v21
zero-shot-label-nli0.82
scone0.98
monli1
SpaceNLI1
propsegment/nli0.88
FLD.v2/default0.91
FLD.v2/star0.76
SDOH-NLI0.98
scifact_entailment0.84
AdjectiveScaleProbe-nli0.99
resnli1
semantic_fragments_nli0.99
dataset_train_nli0.94
nlgraph0.94
ruletaker0.99
PARARULE-Plus1
logical-entailment0.86
nope0.44
LogicNLI0.86
contract-nli/contractnli_a/seg0.87
contract-nli/contractnli_b/full0.79
nli4ct_semeval20240.67
biosift-nli0.92
SIGA-nli0.53
FOL-nli0.8
doc-nli0.77
mctest-nli0.87
natural-language-satisfiability0.9
idioms-nli0.81
lifecycle-entailment0.78
MSciNLI0.85
hover-3way/nli0.88
seahorse_summarization_evaluation0.73
missing-item-prediction/contrastive0.79
Pol_NLI0.89
synthetic-retrieval-NLI/count0.64
synthetic-retrieval-NLI/position0.89
synthetic-retrieval-NLI/binary0.91
babi_nli0.97
gen_debiased_nli0.91

Usage#

[ZS] Zero-shot classification pipeline#

from transformers import pipeline
classifier = pipeline("zero-shot-classification",model="tasksource/ModernBERT-base-nli")

text = "one day I will see the world"
candidate_labels = ['travel', 'cooking', 'dancing']
classifier(text, candidate_labels)

NLI training data of this model includes label-nli, a NLI dataset specially constructed to improve this kind of zero-shot classification.

[NLI] Natural language inference pipeline#

from transformers import pipeline
pipe = pipeline("text-classification",model="tasksource/ModernBERT-base-nli")
pipe([dict(text='there is a cat',
  text_pair='there is a black cat')]) #list of (premise,hypothesis)

Backbone for further fune-tuning#

This checkpoint has stronger reasoning and fine-grained abilities than the base version and can be used for further fine-tuning.

Citation#

@inproceedings{sileo-2024-tasksource,
    title = "tasksource: A Large Collection of {NLP} tasks with a Structured Dataset Preprocessing Framework",
    author = "Sileo, Damien",
    booktitle = "Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)",
    month = may,
    year = "2024",
    address = "Torino, Italia",
    publisher = "ELRA and ICCL",
    url = "https://aclanthology.org/2024.lrec-main.1361",
    pages = "15655--15684",
}

Files

7 files · 602 MBWeights 598 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 7 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md10.4 KBc1d2045f515eb23e6edee371c86b000697ad3039521933d21ff5b53b8b631fbe
config.json5.54 KBf0d479a376b7deb30d5a00c14114f40b937097d0791ec20ca95e57347ae76391
model.safetensors598 MB86c32c52ce38b8f26e028ca959b06daee3a5f3f6947c63258bc8695dde88a465
special_tokens_map.json694 Bea97ecdbcc73713039d8d64dbb05e3689495c96657fbd9a18f5bed381be81049
tokenizer.json3.58 MB05c5c40d6a7c23400de4486f6cb365b9a858de6da81bdcbfe1aff016d2a2cc23
tokenizer_config.json20.9 KB9654072f7c873161814043cf08cb5ed72f71d0b935abcd4e267935cb34352c21
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
de4ab7e778 pinned now2026-11-15 02:34 UTC7 files · 602 MB

Use it

$ fw get tasksource/ModernBERT-base-nli
# manifest sha256 34d31748058a… · 602 MB · 7 files
$ fw verify ./ModernBERT-base-nli tasksource/ModernBERT-base-nli
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/tasksource/ModernBERT-base-nli.json --dir ./ModernBERT-base-nli $ python3 fw.py verify ./ModernBERT-base-nli ./tasksource__ModernBERT-base-nli.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download tasksource/ModernBERT-base-nli --revision de4ab7e77845098b7fab7f6ab9d370ddff27b19c --local-dir ./ModernBERT-base-nli

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
c1d2045f515eb23e6edee371c86b000697ad3039521933d21ff5b53b8b631fbe
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: tasksource <huggingface.co/tasksource>Newsgroups: alt.freeweights.visionSubject: ModernBERT-base-nliDate: 2026-11-15Commit: de4ab7eSigned: 2DC28CC7B26A283B ✓
Upstream
tasksource/ModernBERT-base-nli
Pinned commit
de4ab7e77845098b7fab7f6ab9d370ddff27b19c
Manifest
ModernBERT-base-nli.json · .minisig
Manifest sha256
34d31748058a557156f66a4cad42206dc75f263fecdd3e5f8d03f4e35fa78c39
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:34 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/tasksource/ModernBERT-base-nli.json $ curl -O https://freeweights.allternit.com/manifests/tasksource/ModernBERT-base-nli.json.minisig $ minisign -Vm ModernBERT-base-nli.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

answerdotai/ModernBERT-base · this model is a finetune of it

1 model in the catalog name this one as their parent.

Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download tasksource/ModernBERT-base-nli
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. ModernBERT-base-nli.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of ModernBERT-base-nli. Each has its own license check and page.

From: dima806 <huggingface.co/dima806>Subject: ai_vs_real_image_detection
From: legekka <huggingface.co/legekka>Subject: AI-Anime-Image-Detector-ViT
From: onnx-community <huggingface.co/onnx-community>Subject: AI-Anime-Image-Detector-ViT-ONNX
From: AICodexLab <huggingface.co/AICodexLab>Subject: answerdotai-ModernBERT-base-ai-detector
From: onnx-community <huggingface.co/onnx-community>Subject: answerdotai-ModernBERT-base-ai-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Subject: bart-large-cnn-ONNX