{"id":30090,"date":"2026-12-02T18:14:57","date_gmt":"2026-12-02T09:14:57","guid":{"rendered":"https:\/\/localmodelwatch.tsuchitsuchi.com\/2026\/12\/02\/tencent-yuanbao-reranker-v1-5-0-4b-2\/"},"modified":"2026-12-04T11:17:13","modified_gmt":"2026-12-04T02:17:13","slug":"tencent-yuanbao-reranker-v1-5-0-4b-2","status":"publish","type":"post","link":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/12\/02\/tencent-yuanbao-reranker-v1-5-0-4b-2\/","title":{"rendered":"Tencent-Yuanbao-Reranker-v1.5-0.4B Text Reranking Model: 4GB+ VRAM"},"content":{"rendered":"<p><!-- lmw:facts --><\/p>\n<h2>At a Glance<\/h2>\n<div class=\"lmw-table-scroll\" tabindex=\"0\" style=\"overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;\">\n<table style=\"width:max-content;min-width:100%;border-collapse:collapse;\">\n<thead>\n<tr>\n<th>Item<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Repository<\/td>\n<td><a href=\"https:\/\/huggingface.co\/tencent\/Tencent-Yuanbao-Reranker-v1.5-0.4B\">tencent\/Tencent-Yuanbao-Reranker-v1.5-0.4B<\/a><\/td>\n<\/tr>\n<tr>\n<td>Family guide<\/td>\n<td><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/model-tencent-tencent-yuanbao-reranker-v1-5-en\/\">Tencent-Yuanbao-Reranker-v1.5 guide (2 articles)<\/a><\/td>\n<\/tr>\n<tr>\n<td>Publisher guide<\/td>\n<td><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/publisher-tencent-en\/\">Tencent: models and licenses<\/a><\/td>\n<\/tr>\n<tr>\n<td>Published<\/td>\n<td>2026-11-30<\/td>\n<\/tr>\n<tr>\n<td>License<\/td>\n<td>tencent-yuanbao-reranker-license<\/td>\n<\/tr>\n<tr>\n<td>Formats<\/td>\n<td><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/format-safetensors-en\/\">safetensors<\/a><\/td>\n<\/tr>\n<tr>\n<td>Source type<\/td>\n<td>Primary source (the publisher itself)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><em>Values determined by this site&#8217;s code when the information was collected. Dates are JST.<\/em><\/p>\n<p><!-- \/lmw:facts --><\/p>\n<h2>Overview<\/h2>\n<p>Tencent has released a text reranking model, <a href=\"https:\/\/huggingface.co\/tencent\/Tencent-Yuanbao-Reranker-v1.5-0.4B\">Tencent-Yuanbao-Reranker-v1.5-0.4B<\/a>.<\/p>\n<p>This model is a dense pointwise reranker created by applying structural pruning to the FFN width and layer depth of the existing &#8220;Yuanbao-Reranker v1&#8221; checkpoint, and then recovering accuracy using a reranking-oriented objective function across all source depths.<\/p>\n<p>It adopts the Qwen3 architecture and can be loaded via the standard <code>transformers<\/code> 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.<\/p>\n<h2>Specifications<\/h2>\n<ul>\n<li>Architecture: Qwen3ForCausalLM (Qwen3)<\/li>\n<li>Parameters: 0.410B (counting tied embeddings once)<\/li>\n<li>FFN intermediate size: 2560 (changed from 3072 in the original model)<\/li>\n<li>Number of layers: 18 (changed from 28 in the original model)<\/li>\n<li>Hidden size \/ head dimension: 1024 \/ 128<\/li>\n<li>Query \/ KV heads: 16 \/ 8<\/li>\n<li>Vocabulary size: 151,669<\/li>\n<li>Precision: bfloat16<\/li>\n<\/ul>\n<h2>Performance<\/h2>\n<p>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 \u00d7 100):<\/p>\n<div class=\"lmw-table-scroll\" tabindex=\"0\" style=\"overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;\">\n<p class=\"lmw-table-hint\" style=\"margin:0 0 4px;font-size:0.85em;opacity:0.7;\">\u2192 Scroll horizontally to see all columns<\/p>\n<table style=\"width:max-content;min-width:100%;border-collapse:collapse;\">\n<thead>\n<tr>\n<th style=\"text-align: left;\">Model<\/th>\n<th style=\"text-align: right;\">Params<\/th>\n<th style=\"text-align: right;\">CMTEB-R<\/th>\n<th style=\"text-align: right;\">MMTEB-R<\/th>\n<th style=\"text-align: right;\">BEIR<\/th>\n<th style=\"text-align: right;\">MLDR<\/th>\n<th style=\"text-align: right;\">MTEB-Code<\/th>\n<th style=\"text-align: right;\">Avg.<\/th>\n<th style=\"text-align: right;\">\u0394 vs this<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\">Yuanbao-Reranker v1.5 0.4B (this model, reference)<\/td>\n<td style=\"text-align: right;\">0.410<\/td>\n<td style=\"text-align: right;\">75.32<\/td>\n<td style=\"text-align: right;\">69.42<\/td>\n<td style=\"text-align: right;\">59.53<\/td>\n<td style=\"text-align: right;\">68.05<\/td>\n<td style=\"text-align: right;\">75.19<\/td>\n<td style=\"text-align: right;\">69.50<\/td>\n<td style=\"text-align: right;\">\u2014<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Yuanbao-Reranker v1 0.6B (published)<\/td>\n<td style=\"text-align: right;\">0.596<\/td>\n<td style=\"text-align: right;\">75.60<\/td>\n<td style=\"text-align: right;\">70.49<\/td>\n<td style=\"text-align: right;\">61.30<\/td>\n<td style=\"text-align: right;\">68.94<\/td>\n<td style=\"text-align: right;\">78.44<\/td>\n<td style=\"text-align: right;\">70.96<\/td>\n<td style=\"text-align: right;\">+1.46<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Qwen3-Reranker-0.6B (published)<\/td>\n<td style=\"text-align: right;\">0.596<\/td>\n<td style=\"text-align: right;\">71.43<\/td>\n<td style=\"text-align: right;\">65.61<\/td>\n<td style=\"text-align: right;\">59.61<\/td>\n<td style=\"text-align: right;\">66.89<\/td>\n<td style=\"text-align: right;\">73.03<\/td>\n<td style=\"text-align: right;\">67.32<\/td>\n<td style=\"text-align: right;\">\u22122.18<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Qwen3-Reranker-0.6B I+L, same 0.410B shape<\/td>\n<td style=\"text-align: right;\">0.410<\/td>\n<td style=\"text-align: right;\">74.33<\/td>\n<td style=\"text-align: right;\">68.88<\/td>\n<td style=\"text-align: right;\">59.15<\/td>\n<td style=\"text-align: right;\">67.75<\/td>\n<td style=\"text-align: right;\">75.37<\/td>\n<td style=\"text-align: right;\">69.10<\/td>\n<td style=\"text-align: right;\">\u22120.40<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Qwen3-Reranker-0.6B I+H+L, 0.382B<\/td>\n<td style=\"text-align: right;\">0.382<\/td>\n<td style=\"text-align: right;\">73.65<\/td>\n<td style=\"text-align: right;\">67.74<\/td>\n<td style=\"text-align: right;\">58.56<\/td>\n<td style=\"text-align: right;\">67.85<\/td>\n<td style=\"text-align: right;\">72.48<\/td>\n<td style=\"text-align: right;\">68.06<\/td>\n<td style=\"text-align: right;\">\u22121.44<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>The comparison data from the model card suggests the following trends:<\/p>\n<p>First, when compared to the baseline comparison target &#8220;Qwen3-Reranker-0.6B I+L&#8221; 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 &#8220;Qwen3-Reranker-0.6B&#8221; (0.596B, average 67.32), it outperforms it by 2.18 points in overall average despite having fewer parameters.<\/p>\n<p>On the other hand, compared to the predecessor model &#8220;Yuanbao-Reranker v1 0.6B&#8221; (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.<\/p>\n<p>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 \u22123.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.<\/p>\n<h2>Strengths and Use Cases<\/h2>\n<p>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).<\/p>\n<p>It adopts a pointwise evaluation approach, determining whether a candidate document satisfies the requirements given a search query and candidate document pair.<\/p>\n<p>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, &#8220;yes&#8221; and &#8220;no&#8221;, and performs scoring based on their difference. Therefore, invocation via the standard text generation <code>generate()<\/code> method is not intended, and the repository does not include the generation configuration file <code>generation_config.json<\/code>. It is strictly intended to be used as a reranker in a search pipeline rather than for dialogue or text generation purposes.<\/p>\n<p><!-- lmw:hardware --><\/p>\n<h2>Hardware Requirements<\/h2>\n<p><strong>Estimated requirements (calculated by Local Model Watch)<\/strong> \u2014 410M parameters<\/p>\n<div class=\"lmw-table-scroll\" tabindex=\"0\" style=\"overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;\">\n<table style=\"width:max-content;min-width:100%;border-collapse:collapse;\">\n<thead>\n<tr>\n<th>Your VRAM<\/th>\n<th>Quantization<\/th>\n<th>File size<\/th>\n<th>Est. memory needed<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>4GB (laptop iGPU \/ phone class)<\/td>\n<td>BF16<\/td>\n<td>0.8GB<\/td>\n<td>0.9GB<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><strong>Inference engine support<\/strong> (architecture name matched against each project&#8217;s own model registry in its source code, checked 2026-12-04): llama.cpp: registered, vLLM: registered, MLX (mlx-lm): not registered. &#8220;Not registered&#8221; means the name is absent from that registry today, not that the model cannot run.<\/p>\n<p><em>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&#8217;s authors. Compare with other models in our <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/vram-guide-en\/\">VRAM quick reference<\/a>. What the quantization names mean: <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/glossary-quantization-en\/\">glossary<\/a>.<\/em><\/p>\n<p><!-- \/lmw:hardware --><\/p>\n<p><!-- lmw:runnability --><\/p>\n<h2>Can You Run It Locally?<\/h2>\n<p>The publisher distributes this model as safetensors.<\/p>\n<p><strong>License \u2014 <code>tencent-yuanbao-reranker-license<\/code>:<\/strong> A custom license from the publisher. Check the original terms directly, including whether commercial use is permitted.<\/p>\n<p><em>Compiled by this site&#8217;s code from the published formats and the license field. License summaries are not legal advice \u2014 check the publisher&#8217;s original terms before relying on them.<\/em><\/p>\n<p><!-- \/lmw:runnability --><\/p>\n<p><!-- lmw:lab --><\/p>\n<h2>Our Own Measurements<\/h2>\n<h3>Measurements We Did Not Take<\/h3>\n<p>We have not confirmed that this site meets the commercial-use terms of this model&#8217;s license (<code>tencent-yuanbao-reranker-license<\/code>). Because this site carries advertising, we did not run the model (no CPU run, answers, quantization comparison, conversion or generation).<\/p>\n<p><!-- \/lmw:lab --><\/p>\n<h2>How to Get It<\/h2>\n<p>Model weights are distributed in <code>safetensors<\/code> format and are available from the Hugging Face model repository. The custom license <code>tencent-yuanbao-reranker-license<\/code> applies. Since access restrictions (<code>gated<\/code>) are not set, you can acquire them directly without completing a license agreement application procedure.<\/p>\n<p>It is compatible with the standard <code>transformers<\/code> library and can be loaded and executed using <code>AutoModelForCausalLM<\/code> and <code>AutoTokenizer<\/code>.<\/p>\n<p>You need to pay attention to the following points regarding the prompt structure and inference processing when using it:<\/p>\n<ul>\n<li><strong>Prompt template format<\/strong>: Instead of the standard Qwen3 format, you must use the layout dedicated to &#8220;Yuanbao-Reranker v1&#8221;. Specifically, after placing the system prompt, instruction, query, and document, you append a cue consisting of four newline characters (<code>\\n\\n\\n\\n<\/code>) immediately following the assistant header (making a total of five newline tokens combined with the header&#8217;s own newline). Using the standard Qwen3 template or similar will alter the output sequence and prevent accurate scores from being obtained.<\/li>\n<li><strong>Padding direction<\/strong>: When performing batch evaluation, be sure to specify left padding (<code>tokenizer.padding_side = \"left\"<\/code>). Using right padding will cause the model to incorrectly reference the logits of padding tokens at the final judgment position.<\/li>\n<li><strong>Score calculation logic<\/strong>: Retrieve the logits at the final token position, and apply the sigmoid function <code>torch.sigmoid()<\/code> to the difference <code>z_yes - z_no<\/code> between the token corresponding to &#8220;yes&#8221; (ID: 9693) and the token corresponding to &#8220;no&#8221; (ID: 2152) to calculate the relevance score.<\/li>\n<\/ul>\n<p>Here is an example code for scoring using <code>transformers<\/code>:<\/p>\n<pre><code class=\"language-python\">import torch\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\nmodel_id = &quot;tencent\/Tencent-Yuanbao-Reranker-v1.5-0.4B&quot;\ntokenizer = AutoTokenizer.from_pretrained(model_id)\nmodel = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map=&quot;cuda&quot;).eval()\n\nSYSTEM = (\n    &quot;Judge whether the Document meets the requirements based on the Query and the Instruct &quot;\n    'provided. Note that the answer can only be &quot;yes&quot; or &quot;no&quot;.'\n)\nDEFAULT_INSTRUCT = &quot;Given a web search query, retrieve relevant passages that answer the query&quot;\n\nYES_ID, NO_ID = 9693, 2152\nCUE = &quot;\\n&quot; * 4\n\ndef build_prompt(query: str, document: str, instruction: str = DEFAULT_INSTRUCT) -&gt; str:\n    return (\n        f&quot;&lt;|im_start|&gt;system\\n{SYSTEM}&lt;|im_end|&gt;\\n&quot;\n        f&quot;&lt;|im_start|&gt;user\\n: {instruction}\\n: {query}\\n: {document}&lt;|im_end|&gt;\\n&quot;\n        f&quot;&lt;|im_start|&gt;assistant\\n&quot; + CUE\n    )\n\n@torch.no_grad()\ndef score(query: str, documents: list[str], instruction: str = DEFAULT_INSTRUCT) -&gt; list[float]:\n    scores = []\n    for document in documents:\n        batch = tokenizer(\n            build_prompt(query, document, instruction),\n            add_special_tokens=False,\n            return_tensors=&quot;pt&quot;,\n        ).to(model.device)\n        logits = model(**batch, use_cache=False).logits[0, -1].float()\n        scores.append(torch.sigmoid(logits[YES_ID] - logits[NO_ID]).item())\n    return scores\n\ndocs = [&quot;Beijing is the capital of China.&quot;, &quot;Gravity attracts two bodies.&quot;]\nprint(score(&quot;what is the capital of china&quot;, docs))\n<\/code><\/pre>\n<p><!-- lmw:related --><\/p>\n<h2>Related Articles<\/h2>\n<ul>\n<li><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/12\/02\/tencent-yuanbao-reranker-v1-5-2b-2\/\">Tencent-Yuanbao-Reranker-v1.5-2B: 8GB+ VRAM<\/a><\/li>\n<li><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/11\/17\/tencent-releases-dspine-parallel-draft-model\/\">Qwen3-8B-DSpine-b16: 4GB+ VRAM<\/a><\/li>\n<li><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/11\/17\/tencent-releases-wevisone-vl-vision-language-models\/\">Tencent Releases WeVisOne-VL Vision Language Models<\/a><\/li>\n<li><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/11\/17\/tencent-youtu-parsing-omni\/\">Youtu-Parsing-Omni Omnimodal Analysis Model: 12GB+ VRAM<\/a><\/li>\n<\/ul>\n<p><!-- \/lmw:related --><\/p>\n<p><!-- lmw:next-steps --><\/p>\n<h2>What to Read Next<\/h2>\n<ul>\n<li><strong>Find models by VRAM<\/strong> (This model runs from the 4GB tier) \u2192 <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/vram-guide-8gb-en\/\">Other models that run on a 8GB GPU<\/a><\/li>\n<li><strong>Explore the same model family<\/strong> \u2192 <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/model-tencent-tencent-yuanbao-reranker-v1-5-en\/\">Tencent-Yuanbao-Reranker-v1.5 family overview (2 articles)<\/a><\/li>\n<li><strong>Formats this model is available in<\/strong> \u2192 <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/format-safetensors-en\/\">Safetensors format guide and models<\/a><\/li>\n<li><strong>Learn about the publisher<\/strong> \u2192 <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/publisher-tencent-en\/\">Tencent: models, licenses and articles<\/a><\/li>\n<\/ul>\n<p><!-- \/lmw:next-steps --><\/p>\n<h2>Sources<\/h2>\n<ul>\n<li><a href=\"https:\/\/huggingface.co\/tencent\/Tencent-Yuanbao-Reranker-v1.5-0.4B\">tencent\/Tencent-Yuanbao-Reranker-v1.5-0.4B<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Tencent has released Tencent-Yuanbao-Reranker-v1.5-0.4B, a lightweight text reranking model based on Qwen3 with structured pruning.<\/p>\n","protected":false},"author":1,"featured_media":30089,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[310],"tags":[375,6401,1172,6403,6405,759,1547,6407],"class_list":["post-30090","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-new-models","tag-qwen3-en","tag-reranker-en","tag-tencent-en","tag-tencent-yuanbao-reranker-v1-5-en","tag-tencent-yuanbao-reranker-v1-5-0-4b-en","tag-transformers-en","tag-verified","tag--en"],"lang":"en","translations":{"en":30090,"ja":30088},"_links":{"self":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts\/30090","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/comments?post=30090"}],"version-history":[{"count":3,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts\/30090\/revisions"}],"predecessor-version":[{"id":31893,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts\/30090\/revisions\/31893"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/media\/30089"}],"wp:attachment":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/media?parent=30090"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/categories?post=30090"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/tags?post=30090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}