From: Alibaba-NLP <huggingface.co/Alibaba-NLP>Newsgroups: alt.freeweights.textSubject:

ERank-4B

Date: 2026-11-15Commit: 9f300faSigned: 2DC28CC7B26A283B ✓

Model with 4.4B parameters. Safetensors weights, 8.84 GB in all. Published by Alibaba-NLP under Apache-2.0.

4.4B params8.84GBERank-4Bsafetensorspermissive
FactsParams4.4BSize8.84 GBFormatssafetensorsTasknot taggedLicenseApache-2.0From sourcepermissive
$ fw get Alibaba-NLP/ERank-4B
# manifest sha256 2b5fecf23672… · 8.84 GB · 20 files
$ fw verify ./ERank-4B Alibaba-NLP/ERank-4B
From sourceHosted (signed)Alibaba-NLP/ERank-4BLast check: 2026-11-15 03:48 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
8.84 GB
Weights
8.82 GB (safetensors)
Parameters
4.4B
Formats
safetensors
Task
not tagged
License
Apache-2.0 (permissive)
Files
20, each with a sha256
Publisher
Alibaba-NLP
Added
2026-11-15
Section
alt.freeweights.text
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 03:48 UTCpassed

Model card

From the publisher at commit 9f300fa. Shown as plain text with links; images open at the publisher.

ERank: Fusing Supervised Fine-Tuning and Reinforcement Learning for Effective and Efficient Text Reranking#

Arxiv

Introduction#

We introduce ERANK, a highly effective and efficient pointwise reranker built from a reasoning LLM, which excels across diverse relevance scenarios with low latency. Surprisingly, it also outperforms recent listwise rerankers on the most challenging reasoning-intensive tasks.

Image: image

ERank is trained with a novel two-stage training pipeline, i.e., Supervised Fine-Tuning (SFT) and Reinforcement Learning (RL). During the SFT stage, unlike traidtional pointwise rerankers that train the LLMs for binary relevance classification, we encourage the LLM to generatively output fine grained integer scores. In the RL training, we introduce a novel listwise derived reward, which instills global ranking awareness into the efficient pointwise architecture.

Model List#

We provide the trained reranking models in various sizes (4B, 14B and 32B), all of which support customizing the input instruction according to different tasks.

ModelSizeLayersSequence LengthInstruction Aware
ERank-4B4B3632KYes
ERank-14B14B40128KYes
ERank-32B32B64128KYes

Evaluation#

We evaluate ERank on both reasoning-intensive benchmarks (BRIGHT and FollowIR) and traditional semantic relevance benchmarks (BEIR and TREC DL). All methods use the original queries without hybrid scores.

ParadigmMethodAverageBRIGHTFollowIRBEIRTREC DL
-First-stage retriever25.913.7040.849.3
ListwiseRank-R1-7B34.615.73.649.070.0
ListwiseRearank-7B35.317.42.349.072.5
PointwiseJudgeRank-8B32.117.09.939.162.6
PointwiseRank1-7B34.618.29.144.267.1
PointwiseERank-4B (Ours)36.822.711.044.868.9
PointwiseERank-14B (Ours)36.923.110.347.167.1
PointwiseERank-32B (Ours)38.124.412.147.768.1

On the most challenging BRIGHT benchmark, with top-100 documents retrieved by ReasonIR-8B using GPT-4 reason-query, ERank with BM25 hybrid achieves the state-of-the-art NDCG@10.

MethodnDCG@10
ReasonIR-8B30.5
Rank-R1-7B24.1
Rank1-7B24.3
Rearank-7B27.5
JudgeRank-8B20.2
+ BM25 hybrid22.7
Rank-R1-32B-v0.237.7
+ BM25 hybrid40.0
ERank-4B (Ours)30.5
+ BM25 hybrid38.7
ERank-14B (Ours)31.8
+ BM25 hybrid39.3
ERank-32B (Ours)32.8
+ BM25 hybrid40.2

Since ERank is a pointwise reranker, it has low latency compared with listwise models.

Image: image

For more details, please refer to our Paper.

Usage#

We have implemented the inference code based on Transformer and vLLM, respectively.

from examples.ERank_Transformer import ERank_Transformer
from examples.ERank_vLLM import ERank_vLLM
from examples.utils import hybrid_scores

# select a model
model_name_or_path = "Alibaba-NLP/ERank-4B"
# model_name_or_path = "Alibaba-NLP/ERank-14B"
# model_name_or_path = "Alibaba-NLP/ERank-32B"

# use vLLM or Transformer
# reranker = ERank_Transformer(model_name_or_path)
reranker = ERank_vLLM(model_name_or_path)

# input data
instruction = "Retrieve relevant documents for the query."
query = "I am happy"
docs = [
   {"content": "excited", "first_stage_score": 46.7},
   {"content": "sad", "first_stage_score": 1.5},
   {"content": "peaceful", "first_stage_score": 2.3},
]

# rerank
results = reranker.rerank(query, docs, instruction, truncate_length=2048)
print(results)
# [
#	 {'content': 'excited', 'first_stage_score': 46.7, 'rank_score': 4.84}, 
#	 {'content': 'peaceful', 'first_stage_score': 2.3, 'rank_score': 2.98}
#	 {'content': 'sad', 'first_stage_score': 1.5, 'rank_score': 0.0}, 
# ]

# Optional: hybrid with first-stage scores
alpha = 0.2
hybrid_results = hybrid_scores(results, alpha)
print(hybrid_results)
# [
#	 {'content': 'excited', 'first_stage_score': 46.7, 'rank_score': 4.84, 'hybrid_score': 1.18}, 
#	 {'content': 'peaceful', 'first_stage_score': 2.3, 'rank_score': 2.98, 'hybrid_score':0.01}, 
#	 {'content': 'sad', 'first_stage_score': 1.5, 'rank_score': 0.0, 'hybrid_score': -1.19}
# ]

Please refer to the examples directory for details, in which we also provide the instructions used in the prompt during evaluation.

Citation#

If you find our work helpful, feel free to give us a cite.

@misc{ERank,
      title={ERank: Fusing Supervised Fine-Tuning and Reinforcement Learning for Effective and Efficient Text Reranking}, 
      author={Yuzheng Cai and Yanzhao Zhang and Dingkun Long and Mingxin Li and Pengjun Xie and Weiguo Zheng},
      year={2025},
      eprint={2509.00520},
      archivePrefix={arXiv},
      primaryClass={cs.IR},
      url={https://arxiv.org/abs/2509.00520}, 
}

Files

20 files · 8.84 GBWeights 8.82 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 20 files with their sha256
FileSizesha256
.gitattributes1.68 KB167c461e2cf8f8d789f07549eb26008ee1dd6cc1e24b58a4788b3922be33c111
README.md5.65 KBc41e17930fee92de20735d929abe290208580581506c2af23a7c1af2b24d1a73
added_tokens.json707 B300ef4d06a13bce962088147f963b2acac95fe9a402365cfc9c9928bc61aafa0
assets/latency.png417 KB1856b8a8431ba274392c617c023eb740c43fa9dc3efe989bf785299468497813
assets/overview.png754 KBceb3b7cd2434480a45ea8a3c8184e47be6c67de74ab2f22edc71103ac4a5b570
config.json727 B6ce7bf848676a21c15d45977cd75221d907e2911a7781d0cefa52c5731285ca7
configuration.json48 Ba78221ae93dd8977b26fcd1d106fa5ad7e7f1fd3a7d93bfd9d6fba5ed00ec4d2
examples/ERank_Transformer.py5.78 KBb6cfc23839a6485c0aa92630e63c0711af1a5ef352b5048a4d5300707e2387d7
examples/ERank_vLLM.py3.52 KB8d1c18af023b3177dedff294576b0b7ca758bbbee96619af905eab6a6710cf8a
examples/instructions.json1.73 KBbc8154d9c6f7ae8c7e747a9cca0fdddb841b095f2518399e5a9a0524cc7b9073
examples/utils.py1.53 KBd31bff69df9f76e6ecf3689b6ad01d367e912235249181c85c0c390e5e32998e
generation_config.json117 B28396d421a2108acce96383f6a7de78008f7f1b17f807958f3c14c51dbfb65fb
merges.txt1.67 MB8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5
model-00001-of-00002.safetensors4.70 GB8f50ba1f8e5b936d5ea782466732ad5226b86d578a6461d76eedb8a85c3cb84f
model-00002-of-00002.safetensors4.13 GB0c8a5177b158bdb29f7d6cbe2f835a05bd203af9010dbe847216d8cd17f78b86
model.safetensors.index.json32.9 KB50deecc8ec49a184e6cfa9d89ae8a2b1389ffa6425ca5095948130bf26cce931
special_tokens_map.json616 B6676f091c8bc4d1b50146427cfde92073402866b87b6e39223227931b70083e9
tokenizer.json11.4 MB5f538837a7c4e5e7045719d3e80f7e3bed586dd8cdf0c81d56b84a145c7969e8
tokenizer_config.json6.01 KB1f341b0a3621a15d0b06d6e183d814a76b8efb08514810a572b97fbe007e3c5c
vocab.json2.78 MBca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
9f300fa613 pinned now2026-11-15 03:48 UTC20 files · 8.84 GB

Use it

$ fw get Alibaba-NLP/ERank-4B
# manifest sha256 2b5fecf23672… · 8.84 GB · 20 files
$ fw verify ./ERank-4B Alibaba-NLP/ERank-4B
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/Alibaba-NLP/ERank-4B.json --dir ./ERank-4B $ python3 fw.py verify ./ERank-4B ./Alibaba-NLP__ERank-4B.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download Alibaba-NLP/ERank-4B --revision 9f300fa613f9e8ca1a5525254e281af052182108 --local-dir ./ERank-4B

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
c41e17930fee92de20735d929abe290208580581506c2af23a7c1af2b24d1a73
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: Alibaba-NLP <huggingface.co/Alibaba-NLP>Newsgroups: alt.freeweights.textSubject: ERank-4BDate: 2026-11-15Commit: 9f300faSigned: 2DC28CC7B26A283B ✓
Upstream
Alibaba-NLP/ERank-4B
Pinned commit
9f300fa613f9e8ca1a5525254e281af052182108
Manifest
ERank-4B.json · .minisig
Manifest sha256
2b5fecf23672dc0b907bb8e77cd3314d973ea58e6c653875ac4520dc1668143b
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:48 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/Alibaba-NLP/ERank-4B.json $ curl -O https://freeweights.allternit.com/manifests/Alibaba-NLP/ERank-4B.json.minisig $ minisign -Vm ERank-4B.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download Alibaba-NLP/ERank-4B
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. ERank-4B.json. Provenance. Takedown history: none.
From: laion <huggingface.co/laion>Subject: a2-rl-e2egit_large-50-32B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-large-15-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-v2-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_pymethods2test-large-80-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_unitsyn-python-large-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_mix_h2_language_proportional-65-8B