Tencent-Yuanbao-Reranker-v1.5-0.4B Text Reranking Model: 4GB+ VRAM

At a Glance
| Item | Value |
|---|---|
| Repository | tencent/Tencent-Yuanbao-Reranker-v1.5-0.4B |
| Family guide | Tencent-Yuanbao-Reranker-v1.5 guide (2 articles) |
| Publisher guide | Tencent: models and licenses |
| Published | 2026-11-30 |
| License | tencent-yuanbao-reranker-license |
| Formats | safetensors |
| Source type | Primary source (the publisher itself) |
Values determined by this site’s code when the information was collected. Dates are JST.
Overview
Tencent has released a text reranking model, Tencent-Yuanbao-Reranker-v1.5-0.4B.
This model is a dense pointwise reranker created by applying structural pruning to the FFN width and layer depth of the existing “Yuanbao-Reranker v1" checkpoint, and then recovering accuracy using a reranking-oriented objective function across all source depths.
It adopts the Qwen3 architecture and can be loaded via the standard transformers library without requiring custom code, sparse kernels, or masks. The decoder FLOPs (at a context length T = 2048) remain at 59.21% and the parameter count at 68.84% of the original model, allowing it to run natively within existing Qwen3-compatible stacks while being lightweight.
Specifications
- Architecture: Qwen3ForCausalLM (Qwen3)
- Parameters: 0.410B (counting tied embeddings once)
- FFN intermediate size: 2560 (changed from 3072 in the original model)
- Number of layers: 18 (changed from 28 in the original model)
- Hidden size / head dimension: 1024 / 128
- Query / KV heads: 16 / 8
- Vocabulary size: 151,669
- Precision: bfloat16
Performance
Here is the comparison with other models based on the evaluation results published in the model card (reranking Top-100 candidates retrieved by Qwen3-Embedding-0.6B, MTEB v1.38.9, FP16 inference, nDCG@10 × 100):
→ Scroll horizontally to see all columns
| Model | Params | CMTEB-R | MMTEB-R | BEIR | MLDR | MTEB-Code | Avg. | Δ vs this |
|---|---|---|---|---|---|---|---|---|
| Yuanbao-Reranker v1.5 0.4B (this model, reference) | 0.410 | 75.32 | 69.42 | 59.53 | 68.05 | 75.19 | 69.50 | — |
| Yuanbao-Reranker v1 0.6B (published) | 0.596 | 75.60 | 70.49 | 61.30 | 68.94 | 78.44 | 70.96 | +1.46 |
| Qwen3-Reranker-0.6B (published) | 0.596 | 71.43 | 65.61 | 59.61 | 66.89 | 73.03 | 67.32 | −2.18 |
| Qwen3-Reranker-0.6B I+L, same 0.410B shape | 0.410 | 74.33 | 68.88 | 59.15 | 67.75 | 75.37 | 69.10 | −0.40 |
| Qwen3-Reranker-0.6B I+H+L, 0.382B | 0.382 | 73.65 | 67.74 | 58.56 | 67.85 | 72.48 | 68.06 | −1.44 |
The comparison data from the model card suggests the following trends:
First, when compared to the baseline comparison target “Qwen3-Reranker-0.6B I+L" pruned to the same 0.410B structure, it records an average score (Avg.) of 69.50, showing a 0.40-point higher score. Furthermore, compared to the published base “Qwen3-Reranker-0.6B" (0.596B, average 67.32), it outperforms it by 2.18 points in overall average despite having fewer parameters.
On the other hand, compared to the predecessor model “Yuanbao-Reranker v1 0.6B" (0.596B, average 70.96), it falls short by 1.46 points in the average score. As a trade-off for reducing the parameter count by approximately 31%, it slightly sacrifices overall quality.
Looking at individual metrics, it maintains solid scores across evaluation axes such as CMTEB-R (75.32), BEIR (59.53), and MLDR (68.05), but sees its largest drop in MTEB-Code (75.19) with a −3.25 decrease compared to the original model (78.44). According to the publishers, since this verification is based on a single execution, minor differences of a fraction of a point are considered to be within the margin of error per execution.
Strengths and Use Cases
This model is specifically designed for text reranking (Text Ranking / Cross-Encoder) tasks that re-evaluate the relevance between a search query and retrieved documents with high precision. It supports multilingual texts including English (en) and Chinese (zh).
It adopts a pointwise evaluation approach, determining whether a candidate document satisfies the requirements given a search query and candidate document pair.
As an important note for usage, this model is not a general chat language model for dialogue or long-form generation. Internally, the model compares the output probabilities (logits) of two specific tokens, “yes" and “no", and performs scoring based on their difference. Therefore, invocation via the standard text generation generate() method is not intended, and the repository does not include the generation configuration file generation_config.json. It is strictly intended to be used as a reranker in a search pipeline rather than for dialogue or text generation purposes.
Hardware Requirements
Estimated requirements (calculated by Local Model Watch) — 410M parameters
| Your VRAM | Quantization | File size | Est. memory needed |
|---|---|---|---|
| 4GB (laptop iGPU / phone class) | BF16 | 0.8GB | 0.9GB |
Inference engine support (architecture name matched against each project’s own model registry in its source code, checked 2026-12-04): llama.cpp: registered, vLLM: registered, MLX (mlx-lm): not registered. “Not registered" means the name is absent from that registry today, not that the model cannot run.
Memory estimates add a 20% runtime overhead (KV cache, etc.) to the actual size of the distributed files. Actual usage varies with context length, batch size and inference engine. These figures are computed by this site from file sizes, not published by the model’s authors. Compare with other models in our VRAM quick reference. What the quantization names mean: glossary.
Can You Run It Locally?
The publisher distributes this model as safetensors.
License — tencent-yuanbao-reranker-license: A custom license from the publisher. Check the original terms directly, including whether commercial use is permitted.
Compiled by this site’s code from the published formats and the license field. License summaries are not legal advice — check the publisher’s original terms before relying on them.
Our Own Measurements
Measurements We Did Not Take
We have not confirmed that this site meets the commercial-use terms of this model’s license (tencent-yuanbao-reranker-license). Because this site carries advertising, we did not run the model (no CPU run, answers, quantization comparison, conversion or generation).
How to Get It
Model weights are distributed in safetensors format and are available from the Hugging Face model repository. The custom license tencent-yuanbao-reranker-license applies. Since access restrictions (gated) are not set, you can acquire them directly without completing a license agreement application procedure.
It is compatible with the standard transformers library and can be loaded and executed using AutoModelForCausalLM and AutoTokenizer.
You need to pay attention to the following points regarding the prompt structure and inference processing when using it:
- Prompt template format: Instead of the standard Qwen3 format, you must use the layout dedicated to “Yuanbao-Reranker v1". Specifically, after placing the system prompt, instruction, query, and document, you append a cue consisting of four newline characters (
\n\n\n\n) immediately following the assistant header (making a total of five newline tokens combined with the header’s own newline). Using the standard Qwen3 template or similar will alter the output sequence and prevent accurate scores from being obtained. - Padding direction: When performing batch evaluation, be sure to specify left padding (
tokenizer.padding_side = "left"). Using right padding will cause the model to incorrectly reference the logits of padding tokens at the final judgment position. - Score calculation logic: Retrieve the logits at the final token position, and apply the sigmoid function
torch.sigmoid()to the differencez_yes - z_nobetween the token corresponding to “yes" (ID: 9693) and the token corresponding to “no" (ID: 2152) to calculate the relevance score.
Here is an example code for scoring using transformers:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "tencent/Tencent-Yuanbao-Reranker-v1.5-0.4B"
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
CUE = "\n" * 4
def build_prompt(query: str, document: str, instruction: str = DEFAULT_INSTRUCT) -> str:
return (
f"<|im_start|>system\n{SYSTEM}<|im_end|>\n"
f"<|im_start|>user\n: {instruction}\n: {query}\n: {document}<|im_end|>\n"
f"<|im_start|>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))
Related Articles
- Tencent-Yuanbao-Reranker-v1.5-2B: 8GB+ VRAM
- Qwen3-8B-DSpine-b16: 4GB+ VRAM
- Tencent Releases WeVisOne-VL Vision Language Models
- Youtu-Parsing-Omni Omnimodal Analysis Model: 12GB+ VRAM
What to Read Next
- Find models by VRAM (This model runs from the 4GB tier) → Other models that run on a 8GB GPU
- Explore the same model family → Tencent-Yuanbao-Reranker-v1.5 family overview (2 articles)
- Formats this model is available in → Safetensors format guide and models
- Learn about the publisher → Tencent: models, licenses and articles

