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

← All models

zeroentropy_zerank-2-reranker

zeroentropy · 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 language:

  • en base_model:
  • Qwen/Qwen3-4B pipeline_tag: text-ranking tags:
  • finance
  • legal
  • code
  • stem
  • medical library_name: sentence-transformers model_max_length: 32768

Releasing zeroentropy/zerank-2

In search engines, rerankers are crucial for improving the accuracy of your retrieval system.

However, SOTA rerankers are closed-source and proprietary. At ZeroEntropy, we've trained a SOTA reranker outperforming closed-source competitors, and we're launching our model here on HuggingFace.

This reranker outperforms proprietary rerankers such as cohere-rerank-v3.5 and gemini-2.5-flash across a wide variety of domains, including finance, legal, code, STEM, medical, and conversational data.

At ZeroEntropy we've developed an innovative multi-stage pipeline that models query-document relevance scores as adjusted Elo ratings. See our Technical Report (https://arxiv.org/abs/2509.12541 ) for more details.

This model is released under the Apache License 2.0.

Model Details

Property Value
Parameters 4B
Context Length 32,768 tokens (32k)
Base Model Qwen/Qwen3-4B
License Apache-2.0

How to Use

Breaking change (May 2026): model.predict() now returns raw "Yes" logits instead of sigmoid'd probabilities in [0, 1]. Rankings are unchanged. To recover the previous 0-1 score, apply (scores / 5).sigmoid() — see the example below. Loading no longer requires trust_remote_code=True; passing it is harmless.

Using Sentence Transformers

Install Sentence Transformers:

pip install sentence_transformers

Then load the model and score query/document pairs. model.predict returns the raw "Yes" logit per pair; rankings can be used directly. To map the logits to a 0-1 score range, apply a temperature-scaled sigmoid: sigmoid(score / 5).

from sentence_transformers import CrossEncoder

model = CrossEncoder("zeroentropy/zerank-2")

query_documents = [
    ("What is 2+2?", "4"),
    ("What is 2+2?", "The answer is definitely 1 million"),
]

scores = model.predict(query_documents, convert_to_tensor=True)
print(scores)
# tensor([ 5.4062, -4.5000], device='cuda:0', dtype=torch.bfloat16)

# Optional: convert to 0-1 probabilities
probabilities = (scores / 5).sigmoid()
print(probabilities)
# tensor([0.7461, 0.2891], device='cuda:0', dtype=torch.bfloat16)

You can also use model.rank to score and sort a list of documents for a single query:

rankings = model.rank(
    "What is 2+2?",
    ["4", "The answer is definitely 1 million"],
)
for r in rankings:
    print(r)
# {'corpus_id': 0, 'score': np.float32(5.40625)}
# {'corpus_id': 1, 'score': np.float32(-4.5)}

The model can also be inferenced using ZeroEntropy's /models/rerank endpoint, and on AWS Marketplace.

Evaluations

NDCG@10 scores between zerank-2 and competing closed-source proprietary rerankers. Since we are evaluating rerankers, OpenAI's text-embedding-3-small is used as an initial retriever for the Top 100 candidate documents.

Domain OpenAI embeddings ZeroEntropy zerank-2 ZeroEntropy zerank-1 Gemini 2.5 Flash (Listwise) Cohere rerank-3.5
Web 0.3819 0.6346 0.6069 0.5765 0.5594
Conversational 0.4305 0.6140 0.5801 0.6021 0.5648
STEM & Logic 0.3744 0.6521 0.6283 0.5447 0.5418
Code 0.4582 0.6528 0.6310 0.6128 0.5364
Legal 0.4101 0.6644 0.6222 0.5565 0.5257
Biomedical 0.4783 0.7217 0.6967 0.5371 0.6246
Finance 0.6232 0.7600 0.7539 0.7694 0.7402
Average 0.4509 0.6714 0.6456 0.5999 0.5847

License

This model is licensed under the Apache License 2.0.

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:92ce275fe150fa46739718da514c245db447eed5&dn=zeroentropy_zerank-2-reranker

Open magnet in torrent client · infohash 92ce275fe150fa46739718da514c245db447eed5

Files & hashes

PathSizesha1sha256
1_LogitScore/config.json58 B (58 B)3e0f472f01ac3f10ad400abf22efedbebd524d6cb4b8d1e23e0924170ab7d6de5dfd638dd6a83e1da67442f5abb1ed3c7a2981b2
LICENSE11.1 KB (11,358 B)d645695673349e3947e8e5ae42332d0ac3164cd7cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30
README.md4.4 KB (4,495 B)1e9975d9d6721831fddd90a84bd3d00b4ea9d131a296c356d2484632efcefb3d4e447d609e81174b8c9a325ab6398d871d242013
added_tokens.json707 B (707 B)b54f9135e44c1e81047e8d05cb027af8bc039eedc0284b582e14987fbd3d5a2cb2bd139084371ed9acbae488829a1c900833c680
chat_template.jinja4.6 KB (4,686 B)2f2265701f22b9e6f48e3239e0d176e6f8efe1c277137ede3bb2f14fabaab01c6e86eb49b77cf3db5061246115796b5f55998336
config.json1.5 KB (1,536 B)3ba6d6b3e27e9c239599eb06827b481ed06dda0285e199caee58ec6aeeefa1252bf61fbdbd783c29a0d3a2846ef2b6b441316ab0
config_sentence_transformers.json199 B (199 B)57ab865325832784df68cec5a39197a2c7ad3c75a2b911585ab86c94085b6276d9b66624a105a0a1762e163214b5bd3734055765
generation_config.json214 B (214 B)9e289a1aca21d66f216b0912f192963e60ff573ed3e057bbca66b92f33a8bdc6a1301014e0e4ab69b3b3fd2e442d9fe0c69f3431
merges.txt1.6 MB (1,671,853 B)31349551d90c7606f325fe0f11bbb8bd5fa0d7c78831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5
model-00001-of-00002.safetensors4.63 GB (4,967,215,360 B)85570e2b9f5906cec4f1b5da1ca04dd036182379965c1e20f69b548ecc01da6317c78bf08faa3bd763c9195da6881764623c1e99
model-00002-of-00002.safetensors2.87 GB (3,077,766,632 B)2c35cfd9bcd4bef19c5e1a7262afaba53842a7b5f02e5aa29ab4dd2dcc876a2a01d281f2ea086fc5a0ff8ece717ac7c5f14e1b21
model.safetensors.index.json32.1 KB (32,855 B)b65d8063815c8679d85bb919337b36fae8de75cf06b3d5319b6d76d1a4a2433419180016cfd54ed62d086a5e6567a809f8c82634
modules.json281 B (281 B)10e32c2ba40f5a0ef481a0c1bcde6cdb8c5e522c8b0cf4a17b264e13b267907ee1026e551b1cde537691dd71af4c8aa55a889769
sentence_bert_config.json475 B (475 B)7928562dcc55fd092722b2ef65631fd89b21df3685670127b109e0f975971784bfa0ab110f7d4f5c4650c5dcebcea5fc80604f1a
special_tokens_map.json613 B (613 B)ac23c0aaa2434523c494330aeb79c5839537810376862e765266b85aa9459767e33cbaf13970f327a0e88d1c65846c2ddd3a1ecd
tokenizer.json10.9 MB (11,422,654 B)a1de58e2833d77bb504a8e430b1b25d359912a98aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
tokenizer_config.json5.3 KB (5,431 B)0209709b873860c21430751c74dc85a30a4fb242cd5c1909da4950a610a9e3a6cb6763cff0381d91c6f0838855db8d5ae83d6c9f
vocab.json2.6 MB (2,776,833 B)4783fe10ac3adce15ac8f358ef5462739852c569ca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910

Cite this release

Canonical URL
https://aiseedbank.org/models/zeroentropy_zerank-2-reranker/
Slug
zeroentropy_zerank-2-reranker
Infohash
92ce275fe150fa46739718da514c245db447eed5
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: zeroentropy_zerank-2-reranker.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositoryzeroentropy/zerank-2-reranker
Revision (pinned)5eae30d5ee3c6b2df2ef6d723bde45172d761c4c
Fetched at2026-09-04T06:58:34Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T06:59:48Z

apache-2.07.51 GB (8,060,916,240 bytes)sentence-transformerssafetensorsqwen3financelegalcodestemmedicaltext-ranking1 language (en)paper: 2509.12541