cross-encoder_ms-marco-MiniLM-L2-v2
cross-encoder · View on Hugging Face ↗
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.
license: apache-2.0 datasets:
- sentence-transformers/msmarco language:
- en base_model:
- cross-encoder/ms-marco-MiniLM-L12-v2 pipeline_tag: text-ranking library_name: sentence-transformers tags:
- transformers
Cross-Encoder for MS Marco
This model was trained on the MS Marco Passage Ranking task.
The model can be used for Information Retrieval: Given a query, encode the query will all possible passages (e.g. retrieved with ElasticSearch). Then sort the passages in a decreasing order. See SBERT.net Retrieve & Re-rank for more details. The training code is available here: SBERT.net Training MS Marco
Usage with SentenceTransformers
The usage is easy when you have SentenceTransformers installed. Then you can use the pre-trained models like this:
from sentence_transformers import CrossEncoder
model = CrossEncoder('cross-encoder/ms-marco-MiniLM-L2-v2')
scores = model.predict([
("How many people live in Berlin?", "Berlin had a population of 3,520,031 registered inhabitants in an area of 891.82 square kilometers."),
("How many people live in Berlin?", "Berlin is well known for its museums."),
])
print(scores)
# [ 8.510401 -4.860082]
Usage with Transformers
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model = AutoModelForSequenceClassification.from_pretrained('cross-encoder/ms-marco-MiniLM-L2-v2')
tokenizer = AutoTokenizer.from_pretrained('cross-encoder/ms-marco-MiniLM-L2-v2')
features = tokenizer(['How many people live in Berlin?', 'How many people live in Berlin?'], ['Berlin has a population of 3,520,031 registered inhabitants in an area of 891.82 square kilometers.', 'New York City is famous for the Metropolitan Museum of Art.'], padding=True, truncation=True, return_tensors="pt")
model.eval()
with torch.no_grad():
scores = model(**features).logits
print(scores)
Performance
In the following table, we provide various pre-trained Cross-Encoders together with their performance on the TREC Deep Learning 2019 and the MS Marco Passage Reranking dataset.
| Model-Name | NDCG@10 (TREC DL 19) | MRR@10 (MS Marco Dev) | Docs / Sec |
|---|---|---|---|
| Version 2 models | |||
| cross-encoder/ms-marco-TinyBERT-L2-v2 | 69.84 | 32.56 | 9000 |
| cross-encoder/ms-marco-MiniLM-L2-v2 | 71.01 | 34.85 | 4100 |
| cross-encoder/ms-marco-MiniLM-L4-v2 | 73.04 | 37.70 | 2500 |
| cross-encoder/ms-marco-MiniLM-L6-v2 | 74.30 | 39.01 | 1800 |
| cross-encoder/ms-marco-MiniLM-L12-v2 | 74.31 | 39.02 | 960 |
| Version 1 models | |||
| cross-encoder/ms-marco-TinyBERT-L2 | 67.43 | 30.15 | 9000 |
| cross-encoder/ms-marco-TinyBERT-L4 | 68.09 | 34.50 | 2900 |
| cross-encoder/ms-marco-TinyBERT-L6 | 69.57 | 36.13 | 680 |
| cross-encoder/ms-marco-electra-base | 71.99 | 36.41 | 340 |
| Other models | |||
| nboost/pt-tinybert-msmarco | 63.63 | 28.80 | 2900 |
| nboost/pt-bert-base-uncased-msmarco | 70.94 | 34.75 | 340 |
| nboost/pt-bert-large-msmarco | 73.36 | 36.48 | 100 |
| Capreolus/electra-base-msmarco | 71.23 | 36.89 | 340 |
| amberoad/bert-multilingual-passage-reranking-msmarco | 68.40 | 35.54 | 330 |
| sebastian-hofstaetter/distilbert-cat-margin_mse-T2-msmarco | 72.82 | 37.88 | 720 |
Note: Runtime was computed on a V100 GPU.
Magnet link
Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:
magnet:?xt=urn:btih:78ab2ec341ce1f7083873572c0ed6ac0e54862af&dn=cross-encoder_ms-marco-MiniLM-L2-v2Open magnet in torrent client · infohash 78ab2ec341ce1f7083873572c0ed6ac0e54862af
Files & hashes
| Path | Size | sha1 | sha256 |
|---|---|---|---|
| README.md | 3.6 KB (3,674 B) | 85a2b5f788bb9e6fe065b4235945fd9260f9bed5 | 3dc8fbdadf2bdc0030dba643e163c12356965825f8c1053111eab404bdf6fade |
| config.json | 794 B (794 B) | 080681a8d63930d920d45b6763dc48090f080f79 | 7868e36c3024c21f7a3ac64e058b36898a331035784cce7ec1496b434aa44c4f |
| model.safetensors | 59.6 MB (62,471,772 B) | 5d7f4fdba9c4279de6a4101f16a9f72cefb13365 | 88f11fa671e11c53b5cfe88bb6594139ec4991eaf8cf6a10bd61c9abbc4f691a |
| openvino/openvino_model.bin | 59.6 MB (62,467,232 B) | 14674c1e3520699ed0b7ddaac8b5ee128c1da92d | fc9dc11d808d5d4b1da846d6edb857fdd06e20092c8e38ebaca7105c683d829e |
| openvino/openvino_model.xml | 85.5 KB (87,522 B) | 18cede24a8d8d8c02430cfc1aeaf8301820e3613 | 6d20efca55c64875cbd6f6c6b5d23d98d351760636de5999a6ba72e25eb9161a |
| openvino/openvino_model_qint8_quantized.bin | 15.1 MB (15,831,428 B) | a240b143ced6ce0b453db9bf885983cd2126687a | 4d379c8fa5e8bb798703f870a4c41a76462d0284639b5c450d5933e9fe83ecd3 |
| openvino/openvino_model_qint8_quantized.xml | 148.6 KB (152,166 B) | 9649d91f87491e45b9bf3427050aa413f167888d | c98dba5e83a7c73c5846e8e125eb9ce8f9bc5c343364a2683c9d9a1aa650b389 |
| pytorch_model.bin | 59.6 MB (62,484,521 B) | a4bc320c1eee1776da72f85a0fbd45c800cea653 | e92ec9f854a5d8651f86db03375c55f4e4f893b7518177d4f2c8e31e3b9013a1 |
| special_tokens_map.json | 132 B (132 B) | 7520992f25914d962f0e2fd0e0566fc33d19ec59 | 3c3507f36dff57bce437223db3b3081d1e2b52ec3e56ee55438193ecb2c94dd6 |
| tokenizer.json | 694.7 KB (711,396 B) | 688882a79f44442ddc1f60d70334a7ff5df0fb47 | d241a60d5e8f04cc1b2b3e9ef7a4921b27bf526d9f6050ab90f9267a1f9e5c66 |
| tokenizer_config.json | 1.3 KB (1,330 B) | a2435fedfac32b9ad70f052d4f84007730cd3109 | a5c2e5a7b1a29a0702cd28c08a399b5ecc110c263009d17f7e3b415f25905fd8 |
| vocab.txt | 226.1 KB (231,508 B) | fb140275c155a9c7c5a3b3e0e77a9e839594a938 | 07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3 |
Cite this release
- Canonical URL
- https://aiseedbank.org/models/cross-encoder_ms-marco-MiniLM-L2-v2/
- Slug
- cross-encoder_ms-marco-MiniLM-L2-v2
- Infohash
- 78ab2ec341ce1f7083873572c0ed6ac0e54862af
- License
- apache-2.0
- Signing key fingerprint
- 85a3b32c3712427b
Every file carries a locally computed sha256 — verify a download against the signed sums: cross-encoder_ms-marco-MiniLM-L2-v2.SHA256SUMS (+ minisign signature).
Provenance
| Upstream repository | cross-encoder/ms-marco-MiniLM-L2-v2 |
|---|---|
| Revision (pinned) | 1b5cd67b15209f24824c50370e0397743aa9b787 |
| Fetched at | 2026-09-03T21:24:44Z |
| License at fetch | apache-2.0 |
| Snapshot tool | huggingface · seedbank 0.1.0 |
Trackers
- udp://announce.aitorrent.org:6969/announce
- http://announce.aitorrent.org:7070/announce
- udp://announce2.aitorrent.org:6970/announce
- http://announce2.aitorrent.org:7071/announce
- udp://tracker.opentrackr.org:1337/announce
- udp://open.demonii.com:1337/announce
- udp://open.stealth.si:80/announce
- udp://exodus.desync.com:6969/announce
- udp://tracker.torrent.eu.org:451/announce
✓ verified · rehash-vs-hf-metadata at 2026-09-03T21:24:48Z
apache-2.0195.0 MB (204,443,475 bytes)sentence-transformerspytorchjaxonnxsafetensorsopenvinoberttext-classificationtransformerstext-rankingtext-embeddings-inferenceendpoints_compatible1 language (en)