AI SeedbankHelp preserve open and free AI for humanity's future

← All models

cross-encoder_nli-deberta-v3-small

cross-encoder · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


language: en pipeline_tag: zero-shot-classification tags:

  • transformers datasets:
  • nyu-mll/multi_nli
  • stanfordnlp/snli metrics:
  • accuracy license: apache-2.0 base_model:
  • microsoft/deberta-v3-small library_name: sentence-transformers

Cross-Encoder for Natural Language Inference

This model was trained using SentenceTransformers Cross-Encoder class. This model is based on microsoft/deberta-v3-small

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

  • Accuracy on SNLI-test dataset: 91.65
  • Accuracy on MNLI mismatched set: 87.55

For futher 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-deberta-v3-small')
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-deberta-v3-small')
tokenizer = AutoTokenizer.from_pretrained('cross-encoder/nli-deberta-v3-small')

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-deberta-v3-small')

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

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:a98eb3d1d0b6a9698e7b1375f7f200b63ab8b53d&dn=cross-encoder_nli-deberta-v3-small

Open magnet in torrent client · infohash a98eb3d1d0b6a9698e7b1375f7f200b63ab8b53d

Files & hashes

PathSizesha1sha256
CESoftmaxAccuracyEvaluator_AllNLI-dev_results.csv678 B (678 B)f2d4272e2f1c156ba8eee74feeb327882a7ce2e8e8dfe95a9db1190cfa53b900dca9ed6059afaf5d2a43b59d0dfe069d69413afd
README.md2.8 KB (2,864 B)e0d26329f017dc3a92f03a99578a92fdee6c9837a9aa108025ad1984374c5e80365406bafe331aea5abc30239e1796ec0a7c267d
added_tokens.json26 B (26 B)71b89921f9568175266f31ac7e5ed6c39f008fd3a4b6bfe668f2b3cf6f0cd535e98a0663d2d0d4a4a15f13075ad3597d33985a23
config.json1.0 KB (1,052 B)69a0f734d3ab525dc1eb951b46f1d0f7dd52230c885d0dceae8fa5c136da9209121ec9eb11160488e840de3bc1f29353674e5712
model.safetensors541.3 MB (567,605,820 B)d33465ff81fd91aca42c586f45062dc64d4d9e34ebc79588dd73ccfb6a3f6078519cfbf512c5305384c5ea1845bc71cd32216e86
pytorch_model.bin541.3 MB (567,639,154 B)d7ce2f8ea784891f6700c26debe406d299b039282930841dcaa813d1e04bf0d8bbb4415d795ed6e36719c6fffb613a3fd26faabc
special_tokens_map.json301 B (301 B)21ee423233314af53c84b2a229398f8b425672f5ed7c099c988dbb414b18a6980d20cb57b91b7cd119f6f6941eb364b0e892e712
spm.model2.4 MB (2,464,616 B)1993e578cb006883fd01014f831c6261e8136823c679fbf93643d19aab7ee10c0b99e460bdbc02fedf34b92b05af343b4af586fd
tokenizer.json8.3 MB (8,656,624 B)12cc2e86bad0e731393847b017b32a7405ebd4f85124ef2ead1a10a717703bc436de7f353da76d6340e4587719b42b1693707964
tokenizer_config.json1.3 KB (1,346 B)734481711f0d172bd376a6d06c545286d58d8159f3eecd07c370ef0bf7dd3780d3cd68cf9c8b00c267e21a208ddcd8f82bfec1a6

Cite this release

Canonical URL
https://aiseedbank.org/models/cross-encoder_nli-deberta-v3-small/
Slug
cross-encoder_nli-deberta-v3-small
Infohash
a98eb3d1d0b6a9698e7b1375f7f200b63ab8b53d
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: cross-encoder_nli-deberta-v3-small.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorycross-encoder/nli-deberta-v3-small
Revision (pinned)fa2804872c3b4bd748f38c0185cc85775361e735
Fetched at2026-09-03T21:25:19Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-03T21:25:32Z

apache-2.01.07 GB (1,146,372,481 bytes)sentence-transformerspytorchonnxsafetensorsdeberta-v2text-classificationtransformerszero-shot-classification1 language (en)