Downloads · 30 days
17
34% of all-time downloads
utahnlp/tevatron3-reranker-8b-contrastive-hf
tevatron3-reranker-8b-contrastive-hf is a text ranking model from utahnlp. Use it for the text ranking task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
A pointwise passage reranker built on Qwen3-8B (dense), trained with the Tevatron 3.0 toolkit.
Downloads · 30 days
17
34% of all-time downloads
All-time downloads
50
Public
Parameters
7.6B
15.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors15.1 GB · 100%
From the Hugging Face model README
A pointwise passage reranker built on Qwen3-8B (dense), trained with the Tevatron 3.0 toolkit.
This checkpoint is a sequence-classification scorer, saved as
Qwen3ForSequenceClassification with num_labels=1. The relevance score of a
(query, passage) pair is the single regression logit read at the last (EOS)
token. Training builds the pair as "query: {{query}} passage: {{title}} {{text}}"
(no yes/no suffix) and appends EOS; score = logits[:, 0].
This differs from the Megatron causal-LM rerankers in this release, which score
logit(" yes") − logit(" no")at a prompt suffix. Load this one withAutoModelForSequenceClassification, notAutoModelForCausalLM.
Score with Tevatron's reranker eval backend (see the Tevatron repo), or directly:
import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer
name = "brutusxu/tevatron3-reranker-8b-contrastive-hf"
tok = AutoTokenizer.from_pretrained(name)
model = AutoModelForSequenceClassification.from_pretrained(
name, num_labels=1, dtype=torch.bfloat16).cuda().eval()
pair = "query: what is the capital of france passage: Paris is the capital of France."
ids = tok(pair + tok.eos_token, return_tensors="pt").to("cuda")
with torch.no_grad():
print(model(**ids).logits[0, 0].item())
If you use this model, please cite the Tevatron toolkit.