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 with
AutoModelForSequenceClassification
, not
AutoModelForCausalLM
.
Usage
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())
Citation
If you use this model, please cite the Tevatron toolkit.
Runs of utahnlp tevatron3-reranker-8b-contrastive-hf on huggingface.co
11
Total runs
0
24-hour runs
1
3-day runs
1
7-day runs
1
30-day runs
More Information About tevatron3-reranker-8b-contrastive-hf huggingface.co Model
More tevatron3-reranker-8b-contrastive-hf license Visit here:
tevatron3-reranker-8b-contrastive-hf huggingface.co is an AI model on huggingface.co that provides tevatron3-reranker-8b-contrastive-hf's model effect (), which can be used instantly with this utahnlp tevatron3-reranker-8b-contrastive-hf model. huggingface.co supports a free trial of the tevatron3-reranker-8b-contrastive-hf model, and also provides paid use of the tevatron3-reranker-8b-contrastive-hf. Support call tevatron3-reranker-8b-contrastive-hf model through api, including Node.js, Python, http.
tevatron3-reranker-8b-contrastive-hf huggingface.co is an online trial and call api platform, which integrates tevatron3-reranker-8b-contrastive-hf's modeling effects, including api services, and provides a free online trial of tevatron3-reranker-8b-contrastive-hf, you can try tevatron3-reranker-8b-contrastive-hf online for free by clicking the link below.
utahnlp tevatron3-reranker-8b-contrastive-hf online free url in huggingface.co:
tevatron3-reranker-8b-contrastive-hf is an open source model from GitHub that offers a free installation service, and any user can find tevatron3-reranker-8b-contrastive-hf on GitHub to install. At the same time, huggingface.co provides the effect of tevatron3-reranker-8b-contrastive-hf install, users can directly use tevatron3-reranker-8b-contrastive-hf installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
tevatron3-reranker-8b-contrastive-hf install url in huggingface.co: