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

← All models

cross-encoder_nli-MiniLM2-L6-H768

cross-encoder · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: 1 · Leechers: 0

Observed 2026-09-02T13:56:39Z via announce.aitorrent.org:7070.

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:
  • nreimers/MiniLMv2-L6-H768-distilled-from-RoBERTa-Large library_name: sentence-transformers

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-MiniLM2-L6-H768')
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-MiniLM2-L6-H768')
tokenizer = AutoTokenizer.from_pretrained('cross-encoder/nli-MiniLM2-L6-H768')

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-MiniLM2-L6-H768')

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:ee516728329bf9f116283babad402965e2a97241&dn=cross-encoder_nli-MiniLM2-L6-H768

Open magnet in torrent client · infohash ee516728329bf9f116283babad402965e2a97241

Files & hashes

PathSizesha1sha256
CESoftmaxAccuracyEvaluator_AllNLI-dev_results.csv335 B (335 B)03e595972332f5438b4ae2bf198c3b74ebfca9100d9f122be1628076cddd6b521b9f1f8ef9564621c35a0225f3366dec969df720
README.md2.6 KB (2,695 B)c424f2537691c27718354d28794160ba0c6175ec1a6e3f880df3584acc1b209c7c667eb22cb7ddd98ab56a5905dda5cfc446ddd1
config.json875 B (875 B)f3d2c8b047a34c20737866987ba16ea6114c7b538b0e41caff7567c0f53e6983f35591c3dec59507c9173ab125c5823394fb57f3
merges.txt445.7 KB (456,356 B)6636bda4a1fd7a63653dffb22683b8162c8de956fe36cab26d4f4421ed725e10a2e9ddb7f799449c603a96e7f29b5a3c82a95862
model.safetensors313.3 MB (328,499,560 B)31c5e450d42aeeacff5a2e2a7cb99bb6de00f100ec9c5b6a08b60d7a01b465c7ed44b496244dfd1bed3274c95875a74cea89ab35
openvino/openvino_model.bin313.3 MB (328,487,100 B)68839e2048bc25f17fce06e835c66ce4d62d2c0eff8b2c896de57a540162df07ef8d2be8b988a77e71f448fcde37c563f86b8d65
openvino/openvino_model.xml206.8 KB (211,742 B)f3670ad8d49586e3576315bb6b4fbf207835f9c743d0144084d8013885185d68e15a6c9da9de4530bf93d1e2296f3f11b410ffa7
openvino/openvino_model_qint8_quantized.bin79.0 MB (82,819,176 B)749eb49d651230f67e9b5cb17d0e05a6bc4c149336b8abc214804436607864393bff1ede2d451fb2993ed6930badc9d6c9d0f48e
openvino/openvino_model_qint8_quantized.xml369.5 KB (378,344 B)8350ea59cf59307c051631ed9c528c419f443322b679c8c221333c7c660045fb529be10c7e8055b8688eb89b0064306ded041cda
pytorch_model.bin313.3 MB (328,532,073 B)12b44a062f5c06c91e45537e6e63e71c30bfb6b8768059960825f2365e301878e8cbe816620f04546769e38063e4d21f297dc48a
special_tokens_map.json239 B (239 B)2ea7ad0e45a9d1d1591782ba7e29a703d0758831378eb3bf733eb16e65792d7e3fda5b8a4631387ca04d2015199c4d4f22ae554d
tokenizer.json1.3 MB (1,356,048 B)8df0092a08e1d459f60ec541e08cd35a16362bfe82139106e603ee4e1d5bc99d056ccbed5a92bc24848b1b5a7137c26e00d0dbf6
tokenizer_config.json330 B (330 B)6c26b0317aae78dbce2c8f06dbf846c6e9dd4145e06f5c3c435fc0255b08b5574cd574eec685390f60c85b27f83d785eb8ecaaa1
vocab.json779.6 KB (798,293 B)4ebe4bb3f3114daf2e4cc349f24873a1175a35d7ed19656ea1707df69134c4af35c8ceda2cc9860bf2c3495026153a133670ab5e

Cite this release

Canonical URL
https://aiseedbank.org/models/cross-encoder_nli-MiniLM2-L6-H768/
Slug
cross-encoder_nli-MiniLM2-L6-H768
Infohash
ee516728329bf9f116283babad402965e2a97241
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-MiniLM2-L6-H768.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorycross-encoder/nli-MiniLM2-L6-H768
Revision (pinned)b95119ce93d3e065de6214e38cd4a97b0f2f2c6d
Fetched at2026-09-02T04:29:10Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-02T04:29:22Z

apache-2.01021.9 MB (1,071,543,166 bytes)sentence-transformerspytorchonnxsafetensorsopenvinorobertatext-classificationtransformerszero-shot-classification1 language (en)