cross-encoder_ms-marco-MiniLM-L4-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-L4-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.1273365 -4.569759 ]
Usage with Transformers
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model = AutoModelForSequenceClassification.from_pretrained('cross-encoder/ms-marco-MiniLM-L4-v2')
tokenizer = AutoTokenizer.from_pretrained('cross-encoder/ms-marco-MiniLM-L4-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:81bcbc5e118b5796e33420cc54184783d6b1322a&dn=cross-encoder_ms-marco-MiniLM-L4-v2Open magnet in torrent client · infohash 81bcbc5e118b5796e33420cc54184783d6b1322a
Files & hashes
| Path | Size | sha1 | sha256 |
|---|---|---|---|
| README.md | 3.6 KB (3,676 B) | 805b7725b96b515190accfe5de53236eafece102 | 987f2d9cd3d40209feda19ef96606290010ded5afe547f505cc662242a9fbe51 |
| config.json | 794 B (794 B) | b20743efea9bc53e9f4bb972c3f0f83b99c788c2 | 0349c3fb99c7c59d75529c12932e7663bf1d27ca4d8ee0a5202410466deba657 |
| model.safetensors | 73.1 MB (76,671,186 B) | 487f3bdef1ccf99ebd0f2606d37c845fb463e3b9 | 3db1c98132b54901976d6da56fa711756c7780a6263d5db8f336232584f5fe58 |
| openvino/openvino_model.bin | 73.1 MB (76,662,944 B) | 0552b6ebdebab5ea5e2656cb8ae4e76d2c666f3b | c98398f19870207c26da0fbe0d381ce4221ac4c225bd15b9caf48093a2eb3a73 |
| openvino/openvino_model.xml | 143.0 KB (146,455 B) | 19d2c8c2e9fd2df537af8429789efab333e2442c | 78940f3162bf1553a433730589c05175849eba80f2410dafd7c25e57fa5345b3 |
| openvino/openvino_model_qint8_quantized.bin | 18.6 MB (19,459,556 B) | 2b8f0dafde95233b4655a39ebcecacd08f299d67 | 026119caa48e8080a5dd81b7de4a49050718c807c0fa6f2714e2a150244891b6 |
| openvino/openvino_model_qint8_quantized.xml | 255.8 KB (261,937 B) | 1ddcc2b0cc1a623995d613f6157cdd6a0c07e80e | aed1a40c0a82e1b7f89ae8a7298d0d9e605e616f185e5f7aafb2f9e836b0a106 |
| pytorch_model.bin | 73.1 MB (76,693,769 B) | 633dea961e18f6d0913b63dd0554cb5eddb7ccaf | 943560a8b409a98f7b1addf7f93d0c09efb2a3027daa12680ab3cf07b7298fe7 |
| 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-L4-v2/
- Slug
- cross-encoder_ms-marco-MiniLM-L4-v2
- Infohash
- 81bcbc5e118b5796e33420cc54184783d6b1322a
- 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-L4-v2.SHA256SUMS (+ minisign signature).
Provenance
| Upstream repository | cross-encoder/ms-marco-MiniLM-L4-v2 |
|---|---|
| Revision (pinned) | 777b2f369bc1c2f850df8bd367ed1654bda4497b |
| Fetched at | 2026-09-03T21:24:49Z |
| 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:54Z
apache-2.0239.2 MB (250,844,683 bytes)sentence-transformerspytorchjaxonnxsafetensorsopenvinoberttext-classificationtransformerstext-rankingtext-embeddings-inferenceendpoints_compatible1 language (en)