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

← All models

cross-encoder_ms-marco-TinyBERT-L2-v2

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.


license: apache-2.0 datasets:

  • sentence-transformers/msmarco language:
  • en base_model:
  • nreimers/BERT-Tiny_L-2_H-128_A-2 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 Transformers

from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch

model = AutoModelForSequenceClassification.from_pretrained('cross-encoder/ms-marco-TinyBERT-L2-v2')
tokenizer = AutoTokenizer.from_pretrained('cross-encoder/ms-marco-TinyBERT-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)

Usage with SentenceTransformers

The usage becomes easier 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-TinyBERT-L2-v2', max_length=512)
scores = model.predict([('Query', 'Paragraph1'), ('Query', 'Paragraph2') , ('Query', 'Paragraph3')])

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:307d7b569a4eec74bed1dda8fcc5303abddaa0c9&dn=cross-encoder_ms-marco-TinyBERT-L2-v2

Open magnet in torrent client · infohash 307d7b569a4eec74bed1dda8fcc5303abddaa0c9

Files & hashes

PathSizesha1sha256
README.md3.4 KB (3,509 B)eb670e4739d87fbe406f46c1566cc9ff6cfc7b5ff131d0239b7c3e3c96fd8190c8c282630664521396ea83b8711899b90ed3dcdb
config.json787 B (787 B)b4a8b8549bd075571ebedf155efcb571b7bf14632144195e107cd7ea61556478e7add12986ebfbc3085f924fc0b90c2410604879
model.safetensors16.7 MB (17,552,980 B)501bab6737766186cb3050237bdbefc19d20668ba0e7364ddf91ff7028f1102e1b91ac7a72e3db4061241bd84efe45c72c9af03a
openvino/openvino_model.bin16.7 MB (17,548,448 B)d3b2203e4c9020899819f15316533a50b1438a9e3d8e9b82bb01146aad23dc6c274615affb4543b1be8f6a88d003f452b44d7a2f
openvino/openvino_model.xml85.4 KB (87,426 B)61540ce0cb29957660232e865f85a9c4c2aa6d6ac91011c21b5e095b0c30ae17bcb7a04033c50ac4fa8a19e0446f95cd8f2f27ee
openvino/openvino_model_qint8_quantized.bin4.3 MB (4,543,620 B)ef32710c9c7cc67be2a4570e86a95d4273863a6cb11ce34bd1f5d448fc8bec398c6b51d6e7f614f44279e6c5205c01005a091e7c
openvino/openvino_model_qint8_quantized.xml148.3 KB (151,902 B)5a9b35d3de40da5acb234c670788001207b938882161ed850d52c9f348b8abfa8d6ee51b4d33e3502a29ba637fc46eb9f1289f54
pytorch_model.bin16.8 MB (17,565,609 B)83d103aabb5439a4f479223ab26cf6ad2697979617110c74b1e615554fa3a9242c36210dd36defe6946e819c2e80872b3508aae9
special_tokens_map.json132 B (132 B)7520992f25914d962f0e2fd0e0566fc33d19ec593c3507f36dff57bce437223db3b3081d1e2b52ec3e56ee55438193ecb2c94dd6
tokenizer.json694.7 KB (711,396 B)688882a79f44442ddc1f60d70334a7ff5df0fb47d241a60d5e8f04cc1b2b3e9ef7a4921b27bf526d9f6050ab90f9267a1f9e5c66
tokenizer_config.json1.3 KB (1,330 B)a2435fedfac32b9ad70f052d4f84007730cd3109a5c2e5a7b1a29a0702cd28c08a399b5ecc110c263009d17f7e3b415f25905fd8
vocab.txt226.1 KB (231,508 B)fb140275c155a9c7c5a3b3e0e77a9e839594a93807eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3

Cite this release

Canonical URL
https://aiseedbank.org/models/cross-encoder_ms-marco-TinyBERT-L2-v2/
Slug
cross-encoder_ms-marco-TinyBERT-L2-v2
Infohash
307d7b569a4eec74bed1dda8fcc5303abddaa0c9
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-TinyBERT-L2-v2.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorycross-encoder/ms-marco-TinyBERT-L2-v2
Revision (pinned)81d1926f67cb8eee2c2be17ca9f793c7c3bd20cc
Fetched at2026-09-03T21:25:00Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

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

apache-2.055.7 MB (58,398,647 bytes)sentence-transformerspytorchjaxonnxsafetensorsopenvinoberttext-classificationtransformerstext-rankingtext-embeddings-inferenceendpoints_compatible1 language (en)