Model reference · open weights

Tencent-Yuanbao-Reranker-v1.5

NEW · this week Embeddings tencent Reranker 2 builds Its own licence terms 17 dl/mo

Tencent-Yuanbao-Reranker-v1.5 is an open-weight reranker from tencent. Tencent-Yuanbao-Reranker-v1.5-0.4B (BF16) weighs 820 MB; the smallest configuration that runs it is RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • Tencent-Yuanbao-Reranker-v1.5 is a 2.4B parameter dense pointwise reranker designed for text ranking tasks.
  • It supports English, Chinese, and multilingual inputs with a context length of 40960 tokens.
  • The model uses a custom Tencent Yuanbao-Reranker license and is derived from the Qwen3 architecture.

Summary of the tencent/Tencent-Yuanbao-Reranker-v1.5-2B model card, 2026-12-03. The estimate below is for another build of the family.

What it is

Released bytencent
Released2026-11-30
Parameters2.4B
VRAM820 MB for the weights

What it runs on

Memory and cards for Tencent-Yuanbao-Reranker-v1.5-0.4B (BF16)

820 MBweights, file size
1.1 GBruntime overhead
CardRunsMemory
RTX 3060 12 GBfits11.6 GB
RTX 4060 Ti 16 GBfits15.4 GB
RTX 3090 24 GBfits23.4 GB
RTX 4090 24 GBfits23.4 GB
RTX 5090 32 GBfits31.0 GB
L40S 48 GBfits44.0 GB
A100 80 GBfits78.2 GB
H100 80 GBfits78.1 GB
RTX PRO 6000 Blackwell 96 GBfits93.8 GB
DGX Spark (GB10) 128 GB unifiedfits107 GB
H200 141 GBfits138 GB
B200 180 GBfits176 GB

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
Tencent-Yuanbao-Reranker-v1.5-2B ↗ 2.4BBF16 4.7 GBRTX 3060 12 GB
Tencent-Yuanbao-Reranker-v1.5-0.4B (above) ↗ 410MBF16 820 MBRTX 3060 12 GB

From the model card

What tencent says about Tencent-Yuanbao-Reranker-v1.5

Read the model card

A compact dense pointwise reranker obtained by structurally pruning a trained Yuanbao-Reranker v1 checkpoint along all three axes — FFN width, GQA head groups, and depth — then recovering ranking quality with a ranking-aware objective at full source depth.

Parameters2.370B (tied embedding counted once)
SourceYuanbao-Reranker v1, 4.022B, 36 layers
FFN intermediate size9728 → 8192
Attention headsQ32/KV8 → Q24/KV6 (G = 4 preserved)
Layers36 → 24 (contiguous prefix, suffix dropped)
Hidden size / head dim2560 / 128 (unchanged)
Vocabulary151,669
Precisionbfloat16
Weight file4.41 GiB

Parameters retain 58.93% of the source, linear FLOPs 54.55%, and decoder FLOPs at T = 2048 54.20%. Relative to the same model's FFN-and-layer-only target (2.527B), head pruning removes a further 6.2% of parameters for 0.55 average points.

The model is a plain dense Qwen3 architecture — no mask, no sparse kernel, no custom code — so it loads through the standard transformers path and serves on any Qwen3-compatible stack.

Quick start

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "tencent/Tencent-Yuanbao-Reranker-v1.5-2B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="cuda").eval()

SYSTEM = (
    "Judge whether the Document meets the requirements based on the Query and the Instruct "
    'provided. Note that the answer can only be "yes" or "no".'
)
DEFAULT_INSTRUCT = "Given a web search query, retrieve relevant passages that answer the query"

YES_ID, NO_ID = 9693, 2152  # "yes" and "no" are single tokens
CUE = "\n" * 4

def build_prompt(query: str, document: str, instruction: str = DEFAULT_INSTRUCT) -> str:
    """Yuanbao v1 layout.

    ``CUE`` is the answer cue the model was trained to emit. The assistant header already ends
    with a newline, so the token sequence ends with five newlines in total.
    """
    return (
        f"system\n{SYSTEM}\n"
        f"user\n: {instruction}\n: {query}\n: {document}\n"
        f"assistant\n" + CUE
    )

@torch.no_grad()
def score(query: str, documents: list[str], instruction: str = DEFAULT_INSTRUCT) -> list[float]:
    scores = []
    for document in documents:
        batch = tokenizer(
            build_prompt(query, document, instruction),
            add_special_tokens=False,
            return_tensors="pt",
        ).to(model.device)
        logits = model(**batch, use_cache=False).logits[0, -1].float()
        scores.append(torch.sigmoid(logits[YES_ID] - logits[NO_ID]).item())
    return scores

docs = ["Beijing is the capital of China.", "Gravity attracts two bodies."]
print(score("what is the capital of china", docs))
# [0.9908, 8.4e-09]

Scoring is pointwise, so one candidate per forward pass is the reference path. If you batch, pad on the left (tokenizer.padding_side = "left") so index -1 stays the decision position; right padding silently reads the logits of a pad token.

The margin z_yes - z_no and the two-token probability softmax([z_no, z_yes])[yes] rank identically, because the probability is monotone in the margin.

Prompt template

This checkpoint uses the Yuanbao-Reranker v1 layout, not the Qwen3 layout. The difference is the assistant prefix: v1 emits the newline block as part of the answer, so the serving prompt ends with the four-newline cue (five newline tokens counting the header's own) and the relevance logits are read from that last position. Scoring with the Qwen3 template (\n\n\n\n) silently changes the token sequence and therefore the score.

Fields are colon-prefixed and the instruction defaults to the string above when omitted.

Evaluation

Five-panel protocol from Yuanbao-Reranker v1: rerank the Top-100 candidates retrieved by Qwen3-Embedding-0.6B, MTEB v1.38.9, FP16 inference, nDCG@10 × 100.

ModelParamsCMTEB-RMMTEB-RBEIRMLDRMTEB-CodeAvg.Δ vs this
Yuanbao-Reranker v1.5 2B (this model, reference)2.37077.0572.2762.7367.6178.2871.59—
Yuanbao-Reranker v1 4B (published)4.02278.3174.0864.7470.0480.9873.63+2.04
Yuanbao-Reranker v1.5, I+L only2.52777.2372.5462.9168.8679.1572.14+0.55
Qwen3-Reranker-4B (published)4.02276.0571.2963.6669.3580.3372.13+0.54
Qwen3-Reranker-4B I+L, same 2.527B shape2.52777.2872.1362.7268.2779.4171.96+0.37
Qwen3-Reranker-4B I+H+L, same 2.370B shape2.37075.7070.8461.8268.0276.9570.67−0.92

Every Δ is measured against this model, so a positive value means a row scores higher than the 2.370B checkpoint on this page. Three rows carry the argument:

  • At equal parameters this model wins. Against the Qwen3-derived target pruned to the identical 2.370B architecture it is 0.92 points higher.
  • Head pruning buys 6.2% of parameters for 0.55 points. The I+L-only sibling keeps all 32 query and 8 KV heads at 2.527B and scores 0.55 above this model, which is the measured cost of moving to Q24/KV6.
  • Against its own predecessor it gives up 2.04 points for 41% fewer parameters. Yuanbao v1 4B is 1.652B larger (4.022B vs 2.370B) and 2.04 points ahead.

Any Δ that crosses a parameter boundary has to be read with the Params column: a row above this model is usually also larger. Only the two rows at 2.527B and 2.370B are like-for-like comparisons.

Limitations

  • One recovery run per target; no seed variability or significance estimate, so differences of a few tenths of a point are within run-to-run variation.
  • The five-panel average is a summary, not a per-panel bound: the largest panel loss here is on MTEB-Code (−2.70 versus the source).
  • Trained for rank

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms