alt.freeweights.vision / nli-distilroberta-base
From: cross-encoder <huggingface.co/cross-encoder>Newsgroups: alt.freeweights.visionSubject:

nli-distilroberta-base

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

Zero shot classification model with 82M parameters. Onnx and openvino and safetensors weights, 3.21 GB in all. Published by cross-encoder under Apache-2.0.

82M params3.21GBnli-distilroberta-baseonnx openvino safetensorspermissive
FactsParams82MSize3.21 GBFormatsonnx, openvino, safetensorsTaskzero shot classificationLicenseApache-2.0From sourcepermissive
$ fw get cross-encoder/nli-distilroberta-base
# manifest sha256 b20d6d62dd6b… · 3.21 GB · 25 files
$ fw verify ./nli-distilroberta-base cross-encoder/nli-distilroberta-base
From sourceHosted (signed)cross-encoder/nli-distilroberta-baseLast check: 2026-11-15 04:41 UTC

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

Quantized of distilroberta-base.

Overview

Size
3.21 GB
Weights
328 MB (safetensors)
Parameters
82M
Formats
onnx, openvino, safetensors
Task
zero shot classification
License
Apache-2.0 (permissive)
Files
25, each with a sha256
Publisher
cross-encoder
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Base model: distilbert/distilroberta-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 04:41 UTCpassed

Model card

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

Cross-Encoder for Natural Language Inference#

This model was trained using SentenceTransformers Cross-Encoder class.

Training Data#

The model was trained on the SNLI and MultiNLI datasets. For a given sentence pair, it will output three scores corresponding to the labels: contradiction, entailment, neutral.

Performance#

For evaluation results, see SBERT.net - Pretrained Cross-Encoder.

Usage#

Pre-trained models can be used like this:

from sentence_transformers import CrossEncoder
model = CrossEncoder('cross-encoder/nli-distilroberta-base')
scores = model.predict([('A man is eating pizza', 'A man eats something'), ('A black race car starts up in front of a crowd of people.', 'A man is driving down a lonely road.')])

#Convert scores to labels
label_mapping = ['contradiction', 'entailment', 'neutral']
labels = [label_mapping[score_max] for score_max in scores.argmax(axis=1)]

Usage with Transformers AutoModel#

You can use the model also directly with Transformers library (without SentenceTransformers library):

from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch

model = AutoModelForSequenceClassification.from_pretrained('cross-encoder/nli-distilroberta-base')
tokenizer = AutoTokenizer.from_pretrained('cross-encoder/nli-distilroberta-base')

features = tokenizer(['A man is eating pizza', 'A black race car starts up in front of a crowd of people.'], ['A man eats something', 'A man is driving down a lonely road.'],  padding=True, truncation=True, return_tensors="pt")

model.eval()
with torch.no_grad():
    scores = model(**features).logits
    label_mapping = ['contradiction', 'entailment', 'neutral']
    labels = [label_mapping[score_max] for score_max in scores.argmax(dim=1)]
    print(labels)

Zero-Shot Classification#

This model can also be used for zero-shot-classification:

from transformers import pipeline

classifier = pipeline("zero-shot-classification", model='cross-encoder/nli-distilroberta-base')

sent = "Apple just announced the newest iPhone X"
candidate_labels = ["technology", "sports", "politics"]
res = classifier(sent, candidate_labels)
print(res)

Files

25 files · 3.21 GBWeights 328 MB (safetensors). Sizes and sha256 from the signed manifest.
Show all 25 files with their sha256
FileSizesha256
.gitattributes445 B98c91dabef4df27b2fc7c8454d220aba47476f73593cbd034d961fe4927304c1
CESoftmaxAccuracyEvaluator_AllNLI-dev_results.csv337 B153654b0438b139b0e8fa0dfa2053a7521807336fb5d085e85a66a287db8ed6d
README.md2.68 KB77cad8991998f7e704926f4825536b56b3c6e5d4cd0046e410db74b2fdee3332
config.json701 B901e9df7328199db94c0ff94013d14d49cc09878d2d4ee19326a8b8686e2e499
flax_model.msgpack328 MBf1d007c150a23b7099e74fbfe564ca1c55146d2f4d9e87651716ef6176dd2570
merges.txt456 KB1ce1664773c50f3e0cc8842619a93edc4624525b728b188a9e0be33b7726adc5
model.safetensors328 MB9df3eb5d37118f952f4ba4fb46fde6889e3a9ccedeee0bad09b0110fc64c5c29
onnx/model.onnx329 MB3ace438d5b0ad73d1dd68d4e031e2438659993cc2b6b9cdb145cb209ab6fce8f
onnx/model_O1.onnx329 MBa62134fe4bba8f2d037ca5a79f2e9254ca779880b7b704f01f1c82bd591ba866
onnx/model_O2.onnx329 MB4a35e10df48657c58c7c1f45071562528c95992efba1f2421ee289a9ba3af338
onnx/model_O3.onnx329 MBadf3cf5cbdd716c6cb4df4cf9c2badfc2050d802862aa0ab7518ac0e76a6de11
onnx/model_O4.onnx164 MB64e07a6eeeb5b7b821c632dfb97a3cf8b187523b5230500f01544296d45fb4c2
onnx/model_qint8_arm64.onnx82.8 MBa3aec44a4d2a49b6c9ab821ab2f985abcc2a0af79e8215c7091a0b5e1bc84576
onnx/model_qint8_avx512.onnx82.8 MBa3aec44a4d2a49b6c9ab821ab2f985abcc2a0af79e8215c7091a0b5e1bc84576
onnx/model_qint8_avx512_vnni.onnx82.8 MBa3aec44a4d2a49b6c9ab821ab2f985abcc2a0af79e8215c7091a0b5e1bc84576
onnx/model_quint8_avx2.onnx82.8 MBcd21e27865fdf2dcc63407e32bdb334a83e6713f160e64d09de720670c0281cb
openvino/openvino_model.bin328 MBf65f6143f284ce6a33c3d6fa3194d665c3a975078fb2ffaf652dee82586f2bf7
openvino/openvino_model.xml212 KBe84490086a246ac1f94cc67647e3fe2d5c34c9d9a192fec37a7462641f0a49a3
openvino/openvino_model_qint8_quantized.bin82.8 MB709915885467b15b9f6c91a2356434d56f2477a9b7bfc04c4dcacc585702ce44
openvino/openvino_model_qint8_quantized.xml379 KB6bb5587f8f32e0ca9b835df459aef8559f9c237c4d9d7f04b0781425ed0e68c7
pytorch_model.bin329 MBd272bba7769a509cd328dbda062279926d00550a635f4428998c1869a25f83b2
special_tokens_map.json1.01 KB75cbec71553267dadc77a583ef15122c2aa7422eb6635acc72a184a413f17c1c
tokenizer.json3.56 MB2bb1a22cfbe25b8e5a232b7fc4d7fc5073923b45724a5f813b00811bb6620f66
tokenizer_config.json1.30 KB87111eee3eed2bc8b8e774bc30d9c23e9eb2e07c031ffb7f3a9248c53b7938dc
vocab.json798 KBed19656ea1707df69134c4af35c8ceda2cc9860bf2c3495026153a133670ab5e
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
b14d131f9d pinned now2026-11-15 04:41 UTC25 files · 3.21 GB

Use it

$ fw get cross-encoder/nli-distilroberta-base
# manifest sha256 b20d6d62dd6b… · 3.21 GB · 25 files
$ fw verify ./nli-distilroberta-base cross-encoder/nli-distilroberta-base
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/cross-encoder/nli-distilroberta-base.json --dir ./nli-distilroberta-base $ python3 fw.py verify ./nli-distilroberta-base ./cross-encoder__nli-distilroberta-base.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download cross-encoder/nli-distilroberta-base --revision b14d131f9d32668a5e6a982729b57ff6ed5dfcbd --local-dir ./nli-distilroberta-base

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
77cad8991998f7e704926f4825536b56b3c6e5d4cd0046e410db74b2fdee3332
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: cross-encoder <huggingface.co/cross-encoder>Newsgroups: alt.freeweights.visionSubject: nli-distilroberta-baseDate: 2026-11-15Commit: b14d131Signed: 2DC28CC7B26A283B ✓
Upstream
cross-encoder/nli-distilroberta-base
Pinned commit
b14d131f9d32668a5e6a982729b57ff6ed5dfcbd
Manifest
nli-distilroberta-base.json · .minisig
Manifest sha256
b20d6d62dd6b7ae6e9d63b14a65f2f09e389bab59cd6be537cecebcd84c477fc
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:41 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/cross-encoder/nli-distilroberta-base.json $ curl -O https://freeweights.allternit.com/manifests/cross-encoder/nli-distilroberta-base.json.minisig $ minisign -Vm nli-distilroberta-base.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

distilbert/distilroberta-base · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download cross-encoder/nli-distilroberta-base
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. nli-distilroberta-base.json. Provenance. Takedown history: none.
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