cross-encoder_ms-marco-MiniLM-L12-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:
- microsoft/MiniLM-L12-H384-uncased 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-L12-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)
# [ 9.218911 -4.0780287]
Usage with Transformers
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model = AutoModelForSequenceClassification.from_pretrained('cross-encoder/ms-marco-MiniLM-L12-v2')
tokenizer = AutoTokenizer.from_pretrained('cross-encoder/ms-marco-MiniLM-L12-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:0d619b6e751462887e112832c130d158519f47a1&dn=cross-encoder_ms-marco-MiniLM-L12-v2Open magnet in torrent client · infohash 0d619b6e751462887e112832c130d158519f47a1
Files & hashes
| Path | Size | sha1 | sha256 |
|---|---|---|---|
| README.md | 3.6 KB (3,676 B) | 84b8679afed6bb61cc7aeebbe2199a6f4ba8b200 | 3efb007e589b9155d6977f548d9d7be1e7067adff595ce2c5defb33648b2d0e3 |
| config.json | 791 B (791 B) | bbc41782cb3876f78241487991bd9c17fb7aa1b4 | 69a745055b0307584d2903ea5cf4e1899254e511834f358be80d049918b144d8 |
| model.safetensors | 127.3 MB (133,469,020 B) | 10eea0c108605928322a16edcbbad3c6adf4884c | 1ed84b90cdf3518f76ec9bb93a16f97887eea7c4e7ee5dfb03cc297e394fbbc3 |
| openvino/openvino_model.bin | 127.3 MB (133,445,792 B) | 67fbe04364d9391df4f73344e8271e89e565fd10 | 8538376778c5d1464299273717fc0cc731654f875277031e007f18118a8ae680 |
| openvino/openvino_model.xml | 373.4 KB (382,390 B) | c31bad0e303a7988412ff939ceab8d52123ebf41 | 80a5f9425b72eb15fa7e93a4bf73188ae438350e98577bb1a90f1f642c0df31d |
| openvino/openvino_model_qint8_quantized.bin | 32.4 MB (33,972,068 B) | aef7613f4c728c4396d2a33150d89a900d1474c7 | 81c1d9df505fbeeb8bc136a916c1d6a41e73b0e1200531ddaaffd76e3e08c4c4 |
| openvino/openvino_model_qint8_quantized.xml | 686.1 KB (702,552 B) | 9b6994d5760b0723457558dd2ae94898d05a2828 | cd6a0ec874ebd3fe3dc56d6b235e4bec482e1068821eeb5dd5693aa76ec5edec |
| pytorch_model.bin | 127.3 MB (133,530,889 B) | 4f08bdaa2d7de8727432d6dec55f35b4cbcd5333 | 207bb14d184b7728b7c2a68c685678aab636ae301a46f99fe05e5ffdae89e4d8 |
| 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-L12-v2/
- Slug
- cross-encoder_ms-marco-MiniLM-L12-v2
- Infohash
- 0d619b6e751462887e112832c130d158519f47a1
- 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-L12-v2.SHA256SUMS (+ minisign signature).
Provenance
| Upstream repository | cross-encoder/ms-marco-MiniLM-L12-v2 |
|---|---|
| Revision (pinned) | 7b0235231ca2674cb8ca8f022859a6eba2b1c968 |
| Fetched at | 2026-09-03T21:24:38Z |
| 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:44Z
apache-2.0416.2 MB (436,451,544 bytes)sentence-transformerspytorchjaxonnxsafetensorsopenvinoberttext-classificationtransformerstext-rankingtext-embeddings-inferenceendpoints_compatible1 language (en)