<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[给 Qwen4-35B-A3B 的“邪修”模块做横评：Looped T=3 在代码题上 +10 个点，数学没赚到]]></title><description><![CDATA[<h1>给 Qwen4-35B-A3B 的“邪修”模块做横评：Looped T=3 在代码题上 +10 个点，数学没赚到</h1>
<p dir="auto">这两天 Qwen4-35B-A3B 出了两个“邪修”消息：一个是 22.8 MB 的 Looped 适配器，宣称 LiveCodeBench 从 48.3% 涨到 66.7%；另一个说理科数学 +7.1%、思考 token 少 26%。都不用重下模型，只加一个小模块。</p>
<p dir="auto">听着很香，但这种数字得自己跑一遍才算数。我搭了个横向测试台，把官方 Strata、Looped T=3、tqLLM 三条路线放在同一张 4080 SUPER 32G 上，同一套题、同一套判分跑了一轮。</p>
<h2>怎么测的</h2>
<ul>
<li>平台在 NAS 上，一个引擎一个适配器：OpenAI 兼容的（tqLLM、llama.cpp）直接打 HTTP，Strata 的 <code>strata-q4-lite</code> 走它自己的行协议；题库、判分、结果落盘都独立，可断点续跑。</li>
<li>两套题：LiveCodeBench v6 取前 60 题（LeetCode 函数题 + AtCoder 标准输入输出题，公开+私有用例都跑）；AIME 2024 全 30 题。</li>
<li>判分不是看答案像不像：代码题真的起子进程执行，函数题跑 <code>Solution</code> 的全部用例，竞赛题逐条喂 stdin 比 stdout；数学题抽最后答案比对。</li>
<li>温度 0，单序列，4096 输出上限，超时 4 分钟判失败。三个引擎同一批题、同一顺序。</li>
</ul>
<h2>结果</h2>
<p dir="auto">LiveCodeBench v6（60 题）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>引擎</th>
<th style="text-align:right">通过</th>
<th style="text-align:right">pass@1</th>
<th style="text-align:right">解码 tok/s</th>
<th style="text-align:right">中位输出 token</th>
</tr>
</thead>
<tbody>
<tr>
<td>Strata + Looped T=3 + MTP</td>
<td style="text-align:right">34/60</td>
<td style="text-align:right"><strong>56.7%</strong></td>
<td style="text-align:right">112.1</td>
<td style="text-align:right">2,149</td>
</tr>
<tr>
<td>Strata 官方 Balanced Q4</td>
<td style="text-align:right">28/60</td>
<td style="text-align:right">46.7%</td>
<td style="text-align:right">124.1</td>
<td style="text-align:right">1,376</td>
</tr>
<tr>
<td>tqLLM Q4XL</td>
<td style="text-align:right">28/60</td>
<td style="text-align:right">46.7%</td>
<td style="text-align:right">208.7</td>
<td style="text-align:right">607</td>
</tr>
</tbody>
</table>
<p dir="auto">AIME 2024（30 题）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>引擎</th>
<th style="text-align:right">通过</th>
<th style="text-align:right">pass@1</th>
<th style="text-align:right">解码 tok/s</th>
<th style="text-align:right">中位输出 token</th>
</tr>
</thead>
<tbody>
<tr>
<td>Strata 官方 Balanced Q4</td>
<td style="text-align:right">21/30</td>
<td style="text-align:right"><strong>70.0%</strong></td>
<td style="text-align:right">125.6</td>
<td style="text-align:right">2,111</td>
</tr>
<tr>
<td>Strata + Looped T=3 + MTP</td>
<td style="text-align:right">19/30</td>
<td style="text-align:right">63.3%</td>
<td style="text-align:right">118.5</td>
<td style="text-align:right">2,853</td>
</tr>
<tr>
<td>tqLLM Q4XL</td>
<td style="text-align:right">18/30</td>
<td style="text-align:right">60.0%</td>
<td style="text-align:right">219.3</td>
<td style="text-align:right">3,092</td>
</tr>
</tbody>
</table>
<p dir="auto"><img src="https://upload.lcz.me/uploads/3e22198d-9d19-4d0b-815a-8fd0c671dfdc.png" alt="三条路线在 LCB 与 AIME 上的 pass@1" class="img-markdown  img-fluid" /></p>
<h2>怎么读这些数</h2>
<p dir="auto"><strong>代码题上，Loop 的方向是对的。</strong> 同一份权重、同一个 pack、同一批题，只多挂一个 22.8 MB 适配器、中间 16 层跑 3 遍，通过数从 28 涨到 34。逐题配对看：Loop 独赢 7 题，官方独赢 1 题——方向很干净。</p>
<p dir="auto"><strong>但 +10 个点还不到统计显著。</strong> 60 题样本下做 McNemar 精确检验，p≈0.07；95% 置信区间大概 ±12 个点。也就是说“Loop 更好”这个结论目前是“很可能”，不是“板上钉钉”。想要 5 个点以内的误差，得上全量 175 题甚至多轮。</p>
<p dir="auto"><strong>数学上没有赚到，反而略低。</strong> AIME 30 题：官方 21，Loop 19，配对检验 p≈0.69，属于噪声范围。至少可以说：这个适配器不是“万能增强”，它的训练目标明显偏代码。</p>
<p dir="auto"><strong>样本一小，结论会翻。</strong> 我们最早只取 LeetCode 那 23 道函数题，结果是官方 52.2%、Loop 39.1%，方向完全相反；换成 60 题混合（含 AtCoder）才翻正。这也是为什么论坛上“我测了 +20”和“我测了 -10”能同时存在——题库、判分、输出上限，任何一个不同都能改结论。</p>
<h2>速度账</h2>
<p dir="auto">Loop 不是白送的：解码从 124 掉到 112 tok/s（−10%），中位输出 token 从 1,376 涨到 2,149（+56%）。代码题整体耗时从 1,083 秒涨到 1,340 秒（+24%）。用不用，取决于你更在乎通过率还是响应速度。</p>
<p dir="auto">tqLLM 那行是另一条路：GGUF + 自己的引擎，解码 209–219 tok/s，几乎是 Strata 的两倍；但它的模板和后端跟 Strata 不同，中位输出只有 607 token，所以只拿它比速度，不拿它比质量。</p>
<h2>模块和下载地址</h2>
<ul>
<li><strong>Looped 适配器</strong>（Titus，22.8 MB）：<a href="https://huggingface.co/sliderforthewin/Looped-Qwen4-35B-A3B" rel="nofollow ugc">https://huggingface.co/sliderforthewin/Looped-Qwen4-35B-A3B</a> ，revision <code>7b08957</code>，文件 <code>ckpt_best_alesha_v3.safetensors</code> 加同名 <code>.json</code>（730 个张量，104.6 MB）</li>
<li><strong>配套仓库</strong>（vLLM 插件、Mac MLX 一键脚本、训练启动器）：<a href="https://github.com/jasontitus/loopedqwen-next" rel="nofollow ugc">https://github.com/jasontitus/loopedqwen-next</a></li>
<li><strong>能加载这个适配器的 Strata q4-lite 引擎</strong>：<a href="https://github.com/aiordanescu/Strata" rel="nofollow ugc">https://github.com/aiordanescu/Strata</a> ，分支 <code>qwen4-titus-loop</code>（基于 v0.2.27）</li>
<li><strong>Strata 官方 pack</strong>（Balanced 22.6 GB / Compact 11.5 GB / Ultra 28 GB，另有 PLE、MTP、Vision）：<a href="https://huggingface.co/strata-engine/Qwen4-35B-A3B-Strata" rel="nofollow ugc">https://huggingface.co/strata-engine/Qwen4-35B-A3B-Strata</a></li>
<li><strong>Strata 上游控制端 v0.2.27</strong>：<a href="https://github.com/Niko1221/Strata/releases/tag/v0.2.27" rel="nofollow ugc">https://github.com/Niko1221/Strata/releases/tag/v0.2.27</a></li>
<li><strong>tqLLM 2.0.0</strong>：<a href="https://github.com/turbo-tan/tqllm" rel="nofollow ugc">https://github.com/turbo-tan/tqllm</a> ，镜像 <code>ghcr.io/turbo-tan/tqllm:2.0.0</code></li>
</ul>
<p dir="auto">这次实际用的是：Balanced pack + PLE Q4（11.5 GB）+ MTP（375 MB）+ Titus 适配器 T=3；tqLLM 侧是 UD-Q4_K_XL 两分片。</p>
<h2>几个坑</h2>
<ol>
<li><strong>判分必须真执行。</strong> 用“代码看起来对不对”判分，Loop 这种多跑几遍的模型会被高估；我们全部起子进程跑用例。</li>
<li><strong>思考模式要统一。</strong> 同样是 Qwen4，服务端开不开 reasoning、模板怎么注入，输出能差一倍；对照时要把这条写清楚。</li>
<li><strong>超时和死循环会拖垮整批。</strong> 模型写出 <code>while True</code> 的代码很常见，单题没有时间预算，一批能卡一晚上；我们给每题 4 分钟硬超时。</li>
<li><strong>量化会掺进来。</strong> 这次用的是 Balanced（Q4 级）pack 和 UD-Q4_K_XL；推文的 +18.3 大概率是 FP8/BF16 环境，不能直接对齐。</li>
</ol>
<h2>结论</h2>
<ul>
<li>想让 Qwen4-35B-A3B 写代码更稳：<strong>Looped T=3 值得挂</strong>，我们这轮 +10 个点、方向一致，代价是慢 10%、token 多一半。</li>
<li>主要拿它做数学/理科：<strong>这轮没看到收益</strong>，官方权重反而略高，建议再等更大样本或多轮。</li>
<li>追速度：tqLLM 仍是这台机器上最快的路线（209 tok/s vs 112），质量同档。</li>
<li>平台和原始结果都在 NAS <code>/vol1/qwen4-bench</code>（题库、判分、runner、report 全在里面），跑一遍就能复现；下一步把 LCB 补到全量 175 题，再看 p 值。</li>
</ul>
<hr />
<p dir="auto">数据口径：RTX 4080 SUPER 32G，驱动 580.142；Strata 用 v0.2.27 q4-lite 分支 + Balanced pack + PLE Q4 + MTP，Looped 用 Titus <code>ckpt_best_alesha_v3</code>（T=3）；tqLLM 2.0.0 + UD-Q4_K_XL。温度 0、单序列、4096 输出上限。</p>
]]></description><link>https://lcz.me/topic/3596</link><generator>RSS for Node</generator><lastBuildDate>Sun, 06 Dec 2026 22:11:04 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/3596.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 06 Dec 2026 05:20:22 GMT</pubDate><ttl>60</ttl></channel></rss>