<?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[Qwen3.8-双R9700部署与评测全记录（一共测试了 4 个模型，分 4 轮进行。）]]></title><description><![CDATA[<h1>Qwen3.8 双 R9700 部署与评测全记录（一共测试了 4 个模型，分 4 轮进行。）</h1>
<hr />
<p dir="auto">年龄大了，懒！（太晚、太累！就不上图了，关键是操作不好并已被警告两次）直接贴结果及上作业大家一起交流学习，不喜也请手下留情（本人小白）。<br />
首先感谢：<br />
锤哥提供的学习平台和Bunsei大佬的帖子及各位同仁，有一部分都是借鉴了各位的帖子做的部署。</p>
<hr />
<p dir="auto"><strong>覆盖范围</strong>：硬件核查 → 方案调研 → 模型下载与校验 → 方案① 部署 → 端口迁移 → 多轮基准测试（44 题 / 65 题 / 210 题）→ 统计结论与建议</p>
<hr />
<h2>目录</h2>
<ol>
<li>服务器硬件与软件清单（实测）</li>
<li>方案调研与选型（含参考来源）</li>
<li>文件下载与完整性校验</li>
<li>方案① 部署：Radiance + Qwen3.8-27B-FP8（TP2）</li>
<li>端口迁移与端口规划</li>
<li>模型清单扩充（MXFP4 下载、BF16 不可得）</li>
<li>重点模型详解：qwen3.8-next-flash-fp8-iq4r-moe.rad</li>
<li>第一轮：A/B 对比（FP8 vs MXFP4，10 题）</li>
<li>第二轮：全模型基准 v1（4 模型 × 44 题 + 速度）</li>
<li>评测框架设计（严格版）</li>
<li>第三轮：严格评测 v1（65 题，Bootstrap CI）</li>
<li>第四轮：Phase-2 精细评测（210 题，配对统计）</li>
<li>统计结论汇总（三轮合并）</li>
<li>部署建议与选型</li>
<li>附录 A：脚本与命令清单</li>
<li>附录 B：文件与路径索引</li>
<li>附录 C：错误、坑与修正记录</li>
</ol>
<hr />
<h2>1. 服务器硬件与软件清单（实测）</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项目</th>
<th>实测值</th>
</tr>
</thead>
<tbody>
<tr>
<td>GPU</td>
<td>2× AMD Radeon AI PRO R9700（gfx1201 / RDNA4），每卡 32 GB，合计 <strong>64 GB</strong></td>
</tr>
<tr>
<td>CPU</td>
<td>Intel Core Ultra 7 265K（20 核 / 28 线程，无 AVX-512 → AVX2）</td>
</tr>
<tr>
<td>主板</td>
<td>技嘉 Z890 AERO G</td>
</tr>
<tr>
<td>内存</td>
<td>62 GiB DDR + 39 GiB swap</td>
</tr>
<tr>
<td>磁盘</td>
<td>NVMe 915 GB（根分区 <code>nvme0n1p2</code>），起始余量 487 GB</td>
</tr>
<tr>
<td>系统</td>
<td>Ubuntu 24.04，kernel 7.0.0-38，amdgpu 驱动 7.1.9，ROCm 7.1（<code>/opt/rocm</code>）</td>
</tr>
<tr>
<td>容器</td>
<td>Docker + Compose；镜像 <code>stilldeadcode/radiance</code>（初始 1.8.1，后升级 1.11.0）</td>
</tr>
<tr>
<td>网络</td>
<td>PCIe 探测 28.6 GB/s host→device；双卡 P2P 正常</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>关键约束</strong>：64 GB 显存 &lt; Flash-Next 权重体积（FP8 约 122 GB），因此 125B 模型必须「显存 + 主机内存 + NVMe」三级放置。</p>
<hr />
<h2>2. 方案调研与选型（含参考来源）</h2>
<h3>2.1 候选引擎对比</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>引擎</th>
<th>适配 gfx1201</th>
<th>结论</th>
</tr>
</thead>
<tbody>
<tr>
<td>官方 vLLM / SGLang</td>
<td>仅官方支持 CDNA（MI 系列）</td>
<td>不可直接用于 RDNA4</td>
</tr>
<tr>
<td>llama.cpp + ROCm</td>
<td>有已知显存分配 bug（llama.cpp #26208）</td>
<td>本机实测 Q8_0 仅 18.9 tok/s，弃用</td>
</tr>
<tr>
<td><strong>Radiance</strong>（StillDeadcode）</td>
<td>专为 R9700 手写 libr4d kernel</td>
<td><strong>采用</strong>（27B 与 Flash-Next 均支持）</td>
</tr>
<tr>
<td><strong>Strata</strong>（GGUF 专家流式）</td>
<td>支持</td>
<td><strong>采用</strong>（Flash-Next IQ3_S 路线）</td>
</tr>
</tbody>
</table>
<h3>2.2 关键参考</h3>
<ul>
<li>Radiance 引擎仓库：<a href="https://codeberg.org/StillDeadcode/radiance" rel="nofollow ugc">https://codeberg.org/StillDeadcode/radiance</a>（v1.11.0，模型配方 + compose）</li>
<li>vLLM-Radiance（已弃用并入 radiance）：<a href="https://codeberg.org/StillDeadcode/vllm-radiance" rel="nofollow ugc">https://codeberg.org/StillDeadcode/vllm-radiance</a></li>
<li>双 R9700 实测帖（130–210 tok/s、pin digest 教训）：<a href="https://lcz.me/topic/1668">https://lcz.me/topic/1668</a></li>
<li>Qwen3.8-27B 部署决策矩阵（NVIDIA 侧）：<a href="https://github.com/tonyd2wild/Qwen3.8-27B-3090-Cookbook" rel="nofollow ugc">https://github.com/tonyd2wild/Qwen3.8-27B-3090-Cookbook</a></li>
<li>27B vLLM GPU 梯队：<a href="https://www.orcarouter.ai/zh-CN/blog/qwen-3-8-27b-vllm" rel="nofollow ugc">https://www.orcarouter.ai/zh-CN/blog/qwen-3-8-27b-vllm</a></li>
<li>Strata 引擎报道：<a href="https://gigazine.net/gsc_news/en/20261005-strata-local-ai" rel="nofollow ugc">https://gigazine.net/gsc_news/en/20261005-strata-local-ai</a></li>
<li>GSQ-RCO 量化模型卡：<a href="https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF" rel="nofollow ugc">https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF</a></li>
<li>llama.cpp gfx1201 显存 bug：<a href="https://github.com/ggml-org/llama.cpp/issues/26208" rel="nofollow ugc">https://github.com/ggml-org/llama.cpp/issues/26208</a></li>
</ul>
<h3>2.3 选型结论（精度 &gt; 稳定 &gt; 速度）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>模型</th>
<th>方案</th>
<th>理由</th>
</tr>
</thead>
<tbody>
<tr>
<td>Qwen3.8-27B-FP8</td>
<td>Radiance，TP2，<code>.rad</code> 官方 FP8</td>
<td>精度≈BF16，gfx1201 唯一成熟 vLLM 系栈</td>
</tr>
<tr>
<td>Flash-Next IQ3_S</td>
<td>Strata（GGUF 专家流式）</td>
<td>125B 唯一能在 64GB 显存高速跑的路线</td>
</tr>
</tbody>
</table>
<hr />
<h2>3. 文件下载与完整性校验</h2>
<h3>3.1 引擎镜像（digest 固定）</h3>
<pre><code class="language-bash">docker pull stilldeadcode/radiance:1.11.0@sha256:7595a64234e84a59fa2141acc35456d53370430980880b5cb3df83370b2d903a
docker tag stilldeadcode/radiance@sha256:7595a642…903a stilldeadcode/radiance:1.11.0
</code></pre>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项</th>
<th>值</th>
</tr>
</thead>
<tbody>
<tr>
<td>镜像</td>
<td><code>stilldeadcode/radiance:1.11.0</code></td>
</tr>
<tr>
<td>digest</td>
<td><code>sha256:7595a64234e84a59fa2141acc35456d53370430980880b5cb3df83370b2d903a</code></td>
</tr>
<tr>
<td>大小</td>
<td>616 MB（standalone C++/HIP 引擎，非 Python vLLM）</td>
</tr>
</tbody>
</table>
<h3>3.2 模型文件</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>文件</th>
<th>体积</th>
<th>SHA256</th>
<th>来源</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>qwen3.8-27b-fp8.rad</code></td>
<td>30,783,856,640 B</td>
<td><code>626ab844…cb1d</code>（与 HF 一致）</td>
<td>HF <code>StillDeadcode/qwen3.8-27b-fp8</code></td>
</tr>
<tr>
<td><code>qwen3.8-next-flash-fp8-iq4r-moe.rad</code></td>
<td>121,969,901,568 B</td>
<td>—</td>
<td>HF <code>StillDeadcode/qwen3.8-next-flash-fp8-iq4r-moe</code></td>
</tr>
<tr>
<td><code>qwen3.8-27b-mxfp4.rad</code></td>
<td>19,377,119,232 B</td>
<td><code>a4908940…df4f8</code>（与 HF 一致）</td>
<td>HF <code>StillDeadcode/qwen3.8-27b-mxfp4</code></td>
</tr>
<tr>
<td>Flash-Next IQ3_S GGUF（2 分片 + mmproj）</td>
<td>81 GB</td>
<td>—</td>
<td>本地 <code>~/models/gsq-rco-iq3s/</code></td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>下载经验</strong>：hf-mirror + curl 单线程约 3–7 MB/s；改用 <code>aria2c -x16 -s16</code> 后达 25–50 MB/s。注意 aria2 稀疏预分配会导致「文件大小已满但实际未完」，<strong>必须以 SHA256 校验为准</strong>。</p>
<h3>3.3 重要发现</h3>
<ul>
<li><code>StillDeadcode/qwen3.8-27b-bf16</code> 仓库 <strong>返回 401（不存在/未公开）</strong> → BF16 路线不可行，除非自转权重。</li>
<li>官方 compose 目录 <code>deploy/compose/</code> 已同步到本地 <code>~/radiance/staging-1.11/compose/</code>。</li>
</ul>
<hr />
<h2>4. 方案① 部署：Radiance + Qwen3.8-27B-FP8（TP2）</h2>
<h3>4.1 启动命令</h3>
<pre><code class="language-bash">cd ~/radiance/compose
export RADIANCE_IMAGE='stilldeadcode/radiance@sha256:7595a642…903a'
export PORT=8000
docker compose -f qwen3.8-27b-fp8.yaml up -d
</code></pre>
<p dir="auto">容器内实际参数：</p>
<pre><code>--model /models/qwen3.8-27b-fp8.rad
--host :: --port 8000 --api-key 
--tp 2 --max-num-seqs 32 --max-model-len 200000 --kv-cache-dtype fp8
</code></pre>
<h3>4.2 显存预算（引擎自报）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项</th>
<th>每卡</th>
</tr>
</thead>
<tbody>
<tr>
<td>卡总显存</td>
<td>31.86 GiB</td>
</tr>
<tr>
<td>静态权重</td>
<td>13.81 GiB</td>
</tr>
<tr>
<td>KV cache（fp8）</td>
<td>16.91 GiB</td>
</tr>
<tr>
<td>无主/预留</td>
<td>96 MiB</td>
</tr>
</tbody>
</table>
<ul>
<li>可容纳 <strong>4 个 200K 满长会话</strong>同时存在</li>
<li>token embedding 放主机内存（每 rank 1.18 GiB），显存留给 KV/专家</li>
</ul>
<h3>4.3 实测性能（部署当日）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>场景</th>
<th>结果</th>
</tr>
</thead>
<tbody>
<tr>
<td>冷启动到就绪</td>
<td>约 30 s（加载 30 GiB 权重 8.8 s）</td>
</tr>
<tr>
<td>生成 500 token</td>
<td>141.3 tok/s，TTFT 0.04 s</td>
</tr>
<tr>
<td>8K prompt</td>
<td>prefill ≈ 3422 tok/s</td>
</tr>
<tr>
<td>31K prompt</td>
<td>prefill ≈ 3280 tok/s（前缀缓存命中 7808）</td>
</tr>
<tr>
<td>4 路并发</td>
<td>聚合 206 tok/s</td>
</tr>
<tr>
<td>内存占用</td>
<td>容器 RSS 约 10.7 GiB（系统总用 15 GiB）</td>
</tr>
</tbody>
</table>
<hr />
<h2>5. 端口迁移与端口规划</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>服务</th>
<th>端口</th>
<th>状态</th>
</tr>
</thead>
<tbody>
<tr>
<td>Strata（Flash-Next IQ3_S）</td>
<td>8080</td>
<td>已停止，端口空出</td>
</tr>
<tr>
<td><strong>Radiance 27B-FP8</strong></td>
<td><strong>8000</strong></td>
<td>运行中（healthy）</td>
</tr>
<tr>
<td>vllm-console</td>
<td>8090</td>
<td>运行中（原指向 8080，迁移后需改 <code>VLLM_URL</code>）</td>
</tr>
</tbody>
</table>
<p dir="auto">迁移方式：用 compose 变量覆盖 <code>PORT=8000</code>，<strong>未改任何配置文件</strong>。</p>
<hr />
<h2>6. 模型清单扩充（MXFP4 下载、BF16 不可得）</h2>
<ul>
<li>下载 <code>qwen3.8-27b-mxfp4.rad</code>（19.4 GB，Quark AWQ MXFP4 + W4A8，含 DFlash2 recipe）</li>
<li>校验：SHA256 <code>a4908940…</code> 与 HF 完全一致</li>
<li>BF16：官方仓库 401，放弃</li>
</ul>
<hr />
<h2>7. 重点模型详解：qwen3.8-next-flash-fp8-iq4r-moe.rad</h2>
<blockquote>
<p dir="auto">这是四份模型里唯一「Pareto 最优」的那个，也是唯一需要三级放置（显存 + 主机池 + 磁盘）的。本节把模型本体、部署方案和选它的理由补全。</p>
</blockquote>
<h3>7.1 它是什么（模型）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项</th>
<th>内容</th>
</tr>
</thead>
<tbody>
<tr>
<td>基座</td>
<td>Qwen/Qwen3.8-Flash-Next（125B 级 MoE，训练上下文 262,144，服务按 200K 放）</td>
</tr>
<tr>
<td>容器</td>
<td>单文件 <code>.rad</code>，<strong>113.6 GiB</strong>（121,969,901,568 字节），LFS oid <code>0af5e962…</code></td>
</tr>
<tr>
<td>获取</td>
<td>HF <code>StillDeadcode/qwen3.8-next-flash-fp8-iq4r-moe</code>（镜像源 hf-mirror）</td>
</tr>
<tr>
<td>配套</td>
<td><code>qwen4exp-w4nl64-i8-hc8m.recipe</code>（转换配方，可复现）</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>四段式混合精度</strong>（不是单一量化，这是它能同时兼顾精度与速度的关键）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>部件</th>
<th>精度</th>
<th>具体做法</th>
</tr>
</thead>
<tbody>
<tr>
<td>路由专家（主体）</td>
<td><strong>4-bit codebook</strong></td>
<td>先做 128 点 Walsh–Hadamard 旋转，再查 16 级非均匀码本；每 64 个权重一个 E4M3 scale；码字由 GPTQ（1000 万 token 校准 + 逐专家 down-projection Hessian）选出，再经 3 轮坐标下降精修</td>
</tr>
<tr>
<td>保护专家（10 个）</td>
<td><strong>bf16</strong></td>
<td>按"占本层 down 输入能量 ≥3% 且 ≥3 倍其路由占比"挑选；例如 layer 47 的 expert 445 以 0.4% 路由占比独占该层 64% 能量，必须保精度</td>
</tr>
<tr>
<td>主干（attention / delta-net / shared-expert / lm_head）</td>
<td><strong>int8 W8A8</strong></td>
<td>每 128 列一个 scale，按最小误差搜索</td>
</tr>
<tr>
<td>超连接混合矩阵、MTP 头 fc</td>
<td><strong>E4M3</strong></td>
<td>逐组 scale</td>
</tr>
<tr>
<td>视觉塔</td>
<td><strong>bf16</strong></td>
<td>支持图片 / 视频输入</td>
</tr>
<tr>
<td>投机解码</td>
<td><strong>MTP head（depth 3）</strong></td>
<td>官方默认深度，内置无需外挂 drafter</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>官方质量基准</strong>（对 bf16 全词表 KL，约 75K 位置，覆盖聊天/工具/代码）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>口径</th>
<th>mean KL</th>
<th>median</th>
<th>p99</th>
<th>top-1 一致率</th>
</tr>
</thead>
<tbody>
<tr>
<td>全部 token</td>
<td>0.0789</td>
<td>0.0037</td>
<td>1.65</td>
<td>92.85%</td>
</tr>
<tr>
<td>文本与助手轮次</td>
<td>0.0239</td>
<td>0.0029</td>
<td>0.32</td>
<td>94.57%</td>
</tr>
<tr>
<td>参照：第二个 bf16 实现</td>
<td>0.0399</td>
<td>0.0013</td>
<td>0.82</td>
<td>95.13%</td>
</tr>
</tbody>
</table>
<blockquote>
<p dir="auto">关键解读：4bit 专家的偏差（0.0789）与"两个 bf16 实现之间的差异"（0.0399）同一量级——<strong>量化损失没有超出实现噪声</strong>。这也是我们在 210 题上测不出它与 bf16 级模型的显著差异的原因。</p>
</blockquote>
<h3>7.2 部署方案</h3>
<p dir="auto"><strong>前置条件</strong>：主机需约 <strong>32 GB 空闲内存</strong>（官方要求；本机 62 GB 满足）；双卡必须空闲（与其它模型互斥）。</p>
<p dir="auto"><strong>实际启动命令</strong>（本地 <code>~/radiance/staging-1.11/compose/flashnext.yaml</code>，已用于全部评测）：</p>
<pre><code class="language-bash">cd ~/radiance/compose
export RADIANCE_IMAGE='stilldeadcode/radiance@sha256:7595a642…903a'
export PORT=8000
docker compose --env-file .env -f ~/radiance/staging-1.11/compose/flashnext.yaml up -d
</code></pre>
<p dir="auto">容器内完整参数：</p>
<pre><code>--model /models/qwen3.8-next-flash-fp8-iq4r-moe.rad
--host :: --port 8000 --api-key 
--tp 2 --tp-wire wht6
--max-num-seqs 8 --max-model-len 200000
--placement expert_tiered
--host-pool-mib 12288 --gpu-headroom-mib 96
--kv-cache-dtype fp8
--prefix-cache-mib 4096
--num-speculative-tokens 3
--max-num-batched-tokens 2048
</code></pre>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>参数</th>
<th>作用</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>--tp 2</code></td>
<td>双卡张量并行（每卡一份专家子集）</td>
</tr>
<tr>
<td><code>--tp-wire wht6</code></td>
<td>RDNA4 专用的 all-reduce 实现（wht6 走主机内存，省显存）</td>
</tr>
<tr>
<td><code>--placement expert_tiered</code></td>
<td><strong>专家分层放置</strong>：热的放显存、冷的放主机池，按访问频次动态调整</td>
</tr>
<tr>
<td><code>--host-pool-mib 12288</code></td>
<td>主机固定池 12 GiB（pinned，避免页换出）</td>
</tr>
<tr>
<td><code>--gpu-headroom-mib 96</code></td>
<td>每卡预留 96 MiB 给驱动/临时缓冲</td>
</tr>
<tr>
<td><code>--kv-cache-dtype fp8</code></td>
<td>KV 用 FP8，省一半显存换更长上下文/更高并发</td>
</tr>
<tr>
<td><code>--prefix-cache-mib 4096</code></td>
<td>前缀缓存 4 GiB（重复系统提示词/长文档二次命中）</td>
</tr>
<tr>
<td><code>--num-speculative-tokens 3</code></td>
<td>MTP 投机深度 3</td>
</tr>
<tr>
<td><code>--max-num-seqs 8</code></td>
<td>并发上限 8（专家流式需要余量，比 27B 的 32 小）</td>
</tr>
<tr>
<td><code>--max-num-batched-tokens 2048</code></td>
<td>每步批处理 token 上限，控制显存峰值</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>显存预算（引擎启动时实测，每卡）</strong>：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项</th>
<th>每卡</th>
</tr>
</thead>
<tbody>
<tr>
<td>卡总显存</td>
<td>31.86 GiB</td>
</tr>
<tr>
<td>claimable（可分配）</td>
<td>30.31 GiB</td>
</tr>
<tr>
<td>static weights（各 rank 自有分片）</td>
<td>3.58 GiB</td>
</tr>
<tr>
<td>专家（elastic 中占 66%）</td>
<td>17.74 GiB</td>
</tr>
<tr>
<td><strong>vram_weights 合计</strong></td>
<td><strong>21.32 GiB</strong></td>
</tr>
<tr>
<td><strong>KV cache（fp8）</strong></td>
<td><strong>8.50 GiB</strong>（空闲时最多 7.62 GiB 借给专家）</td>
</tr>
<tr>
<td>主机固定池</td>
<td>12 GiB + 606 MiB（token embedding / 视觉塔）</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>三级放置</strong>：<code>VRAM 21.3 GiB/卡（专家热集）→ 主机池 12 GiB（温集）→ 磁盘页缓存（冷集）</code>。这是 125B 在 64 GB 显存上跑起来的唯一方式；官方另外提供了 BF16 参考配方（335 GiB，<code>--weights-disk-tier</code>，单步数十秒），只用于校准，不是生产配置。</p>
<p dir="auto"><strong>实测性能（本机三轮测试汇总）</strong>：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>指标</th>
<th>数值</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>每 token 成本</td>
<td><strong>6.07 ms</strong>（≈164.7 tok/s）</td>
<td>线性拟合 64/256/1024 token</td>
</tr>
<tr>
<td>单流 64 token 延迟</td>
<td>P95 0.457 s</td>
<td>100 轮 × 3 会话</td>
</tr>
<tr>
<td>256 / 1024 token 延迟</td>
<td>P95 1.429 s / 1.417 s</td>
<td>长输出不劣化</td>
</tr>
<tr>
<td>prefill 8K / 32K</td>
<td>≈6068 / 5816 tok/s</td>
<td>引擎日志 ttft 反推</td>
</tr>
<tr>
<td>96K 上下文检索</td>
<td>14.5 s 完成</td>
<td>4 个模型里最快</td>
</tr>
<tr>
<td>并发 1 / 2 / 4 / 8</td>
<td>150 / 277 / 473 / <strong>767 tok/s</strong></td>
<td>近线性扩展</td>
</tr>
<tr>
<td>精度（210 题）</td>
<td><strong>95.24%</strong>（CI 91.5–97.4）</td>
<td>四模型最高档</td>
</tr>
<tr>
<td>显存/内存占用</td>
<td>21.3 GiB/卡 + 12 GiB 主机池</td>
<td>容器 RSS 约 10.7 GiB</td>
</tr>
</tbody>
</table>
<blockquote>
<p dir="auto">与官方基准交叉验证：官方称"每 decode 步约 15 ms、每步接受 ~2.4 token"→ 折合 6.25 ms/token；我们实测 6.07 ms/token，<strong>吻合</strong>。</p>
</blockquote>
<h3>7.3 为什么选它（理由）</h3>
<p dir="auto"><strong>① 精度：两轮独立测试都排第一，且差异不显著</strong></p>
<ul>
<li>210 题：95.24%，McNemar 对 Strata（94.76）p=1.0、对 27B 系 q=0.25（不显著）</li>
<li>官方 KL 0.0789 与"双 bf16 实现差异" 0.0399 同量级 → 4bit 专家损失被实现噪声掩盖</li>
<li>关键：<strong>它没有为了速度牺牲精度</strong>，而 27B-FP8 是"保真度高但模型本身弱"</li>
</ul>
<p dir="auto"><strong>② 速度：每 token 6.07 ms，是 27B-FP8 的 2.1 倍、Strata 的 2.3 倍</strong></p>
<ul>
<li>同为 Qwen3.8-Flash-Next，Strata 跑 IQ3_S 是 13.88 ms/token，Radiance 跑 IQ4_R 是 6.07 ms</li>
<li>差距来自引擎（手写 RDNA4 kernel + 批处理调度 + MTP 投机）而非模型</li>
</ul>
<p dir="auto"><strong>③ 并发：唯一能撑多人的</strong></p>
<ul>
<li>8 路并发 767 tok/s（1→8 提升 5.1×）；Strata 在 8 路时仍是 69 tok/s（零扩展），P95 从 0.86 s 恶化到 14.8 s</li>
</ul>
<p dir="auto"><strong>④ 显存适配：64 GB 显存 + 12 GB 主机池就能跑 125B</strong></p>
<ul>
<li>专家分层放置让"显存装不下的 100 GB"变成"按访问频次流动"</li>
<li>代价是主机内存：需 ~32 GB 空闲（本机 62 GB 可满足，但同时跑其他任务会吃紧）</li>
</ul>
<p dir="auto"><strong>⑤ 工程性：radiance 原生容器</strong></p>
<ul>
<li>单个 <code>.rad</code> 文件，recipe 可复现，MTP + vision 内置，OpenAI 兼容（tools / 结构化输出 / image_url / 视频）</li>
<li>无需外挂 drafter（避免"drafter 配错导致接受率崩"的坑）</li>
</ul>
<p dir="auto"><strong>⑥ 与其它三个方案的取舍</strong></p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>方案</th>
<th>精度</th>
<th>速度</th>
<th>并发</th>
<th>主机内存</th>
<th>结论</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>本模型（IQ4_R / Radiance）</strong></td>
<td>95.24%</td>
<td>6.07 ms/token</td>
<td>767 tok/s@8</td>
<td>~12 GB 池 + 32 GB 需求</td>
<td><strong>主力</strong></td>
</tr>
<tr>
<td>Flash-Next IQ3_S（Strata）</td>
<td>94.76%</td>
<td>13.88 ms/token</td>
<td>69 tok/s（无扩展）</td>
<td>47 GB arena</td>
<td>单人交互</td>
</tr>
<tr>
<td>27B-FP8</td>
<td>92.86%</td>
<td>12.77 ms/token</td>
<td>365 tok/s@8</td>
<td>极少</td>
<td>合规复现</td>
</tr>
<tr>
<td>27B-MXFP4</td>
<td>92.38%</td>
<td>9.31 ms/token</td>
<td>469 tok/s@8</td>
<td>极少</td>
<td>小显存备选</td>
</tr>
<tr>
<td>BF16 参考配方（335 GiB）</td>
<td>100%（基准）</td>
<td>单步数十秒</td>
<td>—</td>
<td>需 300+ GB</td>
<td>仅校准</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>⑦ 代价与风险（必须写明）</strong></p>
<ol>
<li><strong>主机内存门槛</strong>：需 ~32 GB 空闲；机器上还跑其他服务时要先腾内存</li>
<li><strong>互斥性</strong>：吃满双卡，与其它三个模型不能同时在线</li>
<li><strong>首次加载慢</strong>：113.6 GiB 从 NVMe 读入，冷启动约 2–4 分钟（有页缓存后明显更快）</li>
<li><strong>长尾损失</strong>：官方 KL 的 p99 = 1.65，意味着约 1% 的位置偏差较大；对罕见知识/生僻术语可能比 bf16 弱</li>
<li><strong>参数敏感</strong>：<code>--host-pool-mib</code> 给小了会频繁回读磁盘，给大了挤压系统内存；<code>--expert-vs-cache-ratio</code>（官方 0.82）影响热专家比例</li>
<li><strong>镜像必须 pin digest</strong>：<code>:latest</code> 曾静默回归导致投机解码失效</li>
</ol>
<h3>7.4 结论</h3>
<blockquote>
<p dir="auto"><strong>在"精度最高、稳定、速度快"的三条排序下，它是唯一同时满足的选项</strong>：精度最高档（95.24%，且与其它模型统计等价）、每 token 最快（6.07 ms）、并发最好（767 tok/s@8）、长上下文最快（96K 用 14.5 s）。算术题上 86% 与 Strata 并列最高，弥补了 27B 系 78% 的短板。</p>
</blockquote>
<p dir="auto"><strong>推荐作为默认生产模型</strong>；保留 27B-MXFP4 作为"显存/内存紧张时"的降级方案，Strata IQ3_S 作为"单人流式交互"的备选。</p>
<p dir="auto"><strong>切换命令</strong>：</p>
<pre><code class="language-bash">bash ~/radiance/bench/sb_engine.sh flashnext    # 切到本模型
bash ~/radiance/bench/sb_engine.sh mxfp4        # 切到轻量备选
bash ~/radiance/bench/sb_engine.sh stop         # 全部停止
</code></pre>
<h2>8. 第一轮：A/B 对比（FP8 vs MXFP4，10 题）</h2>
<p dir="auto">设置：关闭思考、temperature=0、同一题集（数学/代码/事实/逻辑/JSON/幻觉/翻译/抽取/工具/写作）</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>题</th>
<th>FP8 耗时/token</th>
<th>MXFP4 耗时/token</th>
<th>加速</th>
</tr>
</thead>
<tbody>
<tr>
<td>精确计算</td>
<td>5.60 s / 700</td>
<td>2.23 s / 536</td>
<td>×2.51</td>
</tr>
<tr>
<td>Dijkstra 代码</td>
<td>9.10 s / 1200</td>
<td>5.18 s / 1200</td>
<td>×1.76</td>
</tr>
<tr>
<td>红楼梦事实</td>
<td>4.86 s / 400</td>
<td>3.41 s / 400</td>
<td>×1.43</td>
</tr>
<tr>
<td>蒙提霍尔</td>
<td>4.43 s / 500</td>
<td>3.11 s / 500</td>
<td>×1.42</td>
</tr>
<tr>
<td>严格 JSON</td>
<td>0.19 s / 25</td>
<td>0.16 s / 34</td>
<td>×1.19</td>
</tr>
<tr>
<td>幻觉陷阱</td>
<td>2.82 s / 400</td>
<td>2.03 s / 400</td>
<td>×1.39</td>
</tr>
<tr>
<td>成语翻译</td>
<td>3.43 s / 400</td>
<td>2.75 s / 400</td>
<td>×1.25</td>
</tr>
<tr>
<td>数字抽取</td>
<td>0.88 s / 169</td>
<td>0.70 s / 194</td>
<td>×1.26</td>
</tr>
<tr>
<td>工具调用</td>
<td>0.31 s / 39</td>
<td>0.33 s / 39</td>
<td>×0.94</td>
</tr>
<tr>
<td>中文写作</td>
<td>3.18 s / 156</td>
<td>2.05 s / 156</td>
<td>×1.55</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>质量观察</strong>：MXFP4 在算术题上完整解出（排序→居中 128.50→五折→满减），FP8 陷入"优惠顺序"讨论被截断；FP8 引用了一条疑似编造的《红楼梦》程甲本原文，MXFP4 未编造。其余持平。</p>
<hr />
<h2>9. 第二轮：全模型基准 v1（4 模型 × 44 题 + 速度）</h2>
<h3>8.1 精度（44 题）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>模型</th>
<th>总分</th>
<th>算术</th>
<th>知识</th>
<th>JSON</th>
<th>工具</th>
<th>抽取</th>
<th>代码</th>
</tr>
</thead>
<tbody>
<tr>
<td>Flash-Next IQ4_R</td>
<td><strong>100%</strong></td>
<td>8/8</td>
<td>20/20</td>
<td>5/5</td>
<td>3/3</td>
<td>5/5</td>
<td>3/3</td>
</tr>
<tr>
<td>Strata IQ3_S</td>
<td><strong>100%</strong></td>
<td>8/8</td>
<td>20/20</td>
<td>5/5</td>
<td>3/3</td>
<td>5/5</td>
<td>3/3</td>
</tr>
<tr>
<td>27B MXFP4</td>
<td>97.7%</td>
<td>8/8</td>
<td>19/20</td>
<td>5/5</td>
<td>3/3</td>
<td>5/5</td>
<td>3/3</td>
</tr>
<tr>
<td>27B FP8</td>
<td>93.2%</td>
<td>7/8</td>
<td>18/20</td>
<td>5/5</td>
<td>3/3</td>
<td>5/5</td>
<td>3/3</td>
</tr>
</tbody>
</table>
<h3>8.2 速度</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项目</th>
<th>Flash-Next</th>
<th>MXFP4</th>
<th>FP8</th>
<th>Strata</th>
</tr>
</thead>
<tbody>
<tr>
<td>短生成</td>
<td>160.5</td>
<td>146.5</td>
<td>105.2</td>
<td>75.5</td>
</tr>
<tr>
<td>中生成</td>
<td>168.2</td>
<td>136.4</td>
<td>115.4</td>
<td>80.1</td>
</tr>
<tr>
<td>长生成 2000</td>
<td>156.8</td>
<td>116.9</td>
<td>74.2</td>
<td>73.9</td>
</tr>
<tr>
<td>4 路并发（聚合）</td>
<td>408.6</td>
<td>289.7</td>
<td>214.3</td>
<td>71.5</td>
</tr>
<tr>
<td>prefill 8K</td>
<td>6068</td>
<td>3448</td>
<td>3345</td>
<td>2391</td>
</tr>
<tr>
<td>prefill 32K</td>
<td>5816</td>
<td>3308</td>
<td>3212</td>
<td>3529</td>
</tr>
</tbody>
</table>
<p dir="auto">长上下文 96K 检索：四模型全部通过，耗时 14.5 / 21.3 / 33.6 / 34.1 s。</p>
<p dir="auto"><strong>第一轮结论</strong>：Flash-Next IQ4_R 综合最优（精度满分 + 最快）。</p>
<hr />
<h2>10. 评测框架设计（严格版）</h2>
<h3>9.1 从 CV 模板到 LLM 的等价映射</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>CV 模板字段</th>
<th>本方案定义</th>
</tr>
</thead>
<tbody>
<tr>
<td>数据集/标注</td>
<td>冻结测试集 JSONL（内置判分器，SHA256 指纹）</td>
</tr>
<tr>
<td>mAP/Top-1/mIoU</td>
<td>准确率 + 宏类均 + MCQ 宏 F1 + Bootstrap/Wilson CI</td>
</tr>
<tr>
<td>CUDA Event</td>
<td>引擎服务端 <code>timings</code>（ttft_ms / predicted_per_second）+ 客户端 SSE 时间戳 + 引擎日志三方交叉验证</td>
</tr>
<tr>
<td>batch/输入尺寸</td>
<td>max_model_len=200000，batch=1 与并发 1/2/4/8</td>
</tr>
<tr>
<td>TensorRT FP16/INT8</td>
<td>FP8 / MXFP4(W4A8) / IQ4_R / IQ3_S</td>
</tr>
</tbody>
</table>
<h3>9.2 公平性控制清单（8 条）</h3>
<ol>
<li>同一测试集（SHA256 版本号）</li>
<li>同一提示词模板（题干写死）</li>
<li>同一解码参数（temperature=0、关闭 thinking、固定 max_tokens）</li>
<li>同一判分脚本</li>
<li>无其他负载（评测前清空容器、确认 GPU 空闲）</li>
<li>固定随机种子（bootstrap seed=20261023/20261024）</li>
<li>引擎镜像 digest 锁定</li>
<li>固定顺序：切引擎 → 健康检查 → 预热 → 测量</li>
</ol>
<h3>9.3 速度测量协议</h3>
<ul>
<li>预热 20 轮丢弃 → 正式 100 轮（或 30/10 轮）→ 3 个独立会话</li>
<li>报告均值 / 中位数 / P95 / 标准差 + 会话间 σ</li>
<li>三个计时口径互相印证（实测客户端 80.27 vs 服务端 80.3 tok/s，偏差 0.04%）</li>
</ul>
<h3>9.4 三个计时陷阱（已处理）</h3>
<ol>
<li><code>read(8192)</code> 缓冲导致 TTFT 失真 → 改 <code>readline()</code> 逐行</li>
<li>引擎把多 token 合进一个 chunk → token 数必须取 <code>usage.completion_tokens</code></li>
<li>thinking token 计入延迟 → 统一 <code>reasoning_effort=none</code></li>
</ol>
<h3>9.5 一致性检查（Polygraphy 等价）</h3>
<ul>
<li>50 条固定上下文的 top-5 logprobs → top-1 一致率 + KL 散度 + NaN/Inf</li>
<li>20 条生成文本 → 完全一致率 + 字符相似度</li>
</ul>
<hr />
<h2>11. 第三轮：严格评测 v1（65 题，Bootstrap CI）</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>模型</th>
<th>准确率 %</th>
<th>95% CI</th>
<th>宏类均</th>
<th>MCQ F1</th>
<th>P95 延迟</th>
<th>decode</th>
</tr>
</thead>
<tbody>
<tr>
<td>Flash-Next IQ4_R</td>
<td>98.5</td>
<td>[95.4, 100.0]</td>
<td>97.5</td>
<td>1.000</td>
<td>0.458 s</td>
<td>152.0</td>
</tr>
<tr>
<td>27B MXFP4</td>
<td>96.9</td>
<td>[92.3, 100.0]</td>
<td>97.0</td>
<td>0.967</td>
<td>0.585 s</td>
<td>116.7</td>
</tr>
<tr>
<td>Strata IQ3_S</td>
<td>96.9</td>
<td>[92.3, 100.0]</td>
<td>95.5</td>
<td>1.000</td>
<td>0.915 s</td>
<td>74.1</td>
</tr>
<tr>
<td>27B FP8</td>
<td>92.3</td>
<td>[86.2, 98.5]</td>
<td>91.9</td>
<td>0.938</td>
<td>0.882 s</td>
<td>76.7</td>
</tr>
</tbody>
</table>
<ul>
<li>所有两两 CI 重叠 → 不宣称显著</li>
<li>会话间 σ ≤ 0.001 s（&lt;0.3%），测量稳定</li>
<li>一致性：MXFP4 vs FP8 top-1 70%、KL 0.43 nats、NaN/Inf=0</li>
<li>修正记录：<code>hal_03</code> 关键词过窄、<code>hal_04</code> 题目歧义（排除）、多语言判分大小写、并发吞吐误发 200 并发 → 均已修复并重测</li>
</ul>
<hr />
<h2>12. 第四轮：Phase-2 精细评测（210 题，配对统计）</h2>
<h3>11.1 测试集 v2.1（210 题）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>类别</th>
<th>题数</th>
<th>判分</th>
</tr>
</thead>
<tbody>
<tr>
<td>arith</td>
<td>50</td>
<td>程序生成、答案由代码计算</td>
</tr>
<tr>
<td>knowledge</td>
<td>40</td>
<td>字母匹配（含"只输出字母"指令）</td>
</tr>
<tr>
<td>json</td>
<td>20</td>
<td>解析 + 类型校验</td>
</tr>
<tr>
<td>extract</td>
<td>25</td>
<td>模板生成 + 精确匹配</td>
</tr>
<tr>
<td>code</td>
<td>15</td>
<td>执行单元测试</td>
</tr>
<tr>
<td>instruction</td>
<td>20</td>
<td>字数/行数/纯英文/后缀/大写等</td>
</tr>
<tr>
<td>tool</td>
<td>8</td>
<td>函数名 + 必填参数</td>
</tr>
<tr>
<td>hallucination</td>
<td>10</td>
<td>必须承认"不存在"</td>
</tr>
<tr>
<td>longctx</td>
<td>12</td>
<td>3 深度 × 2 位置 × 2 事实</td>
</tr>
<tr>
<td>order_stability</td>
<td>10</td>
<td>选项顺序置换后重新作答</td>
</tr>
</tbody>
</table>
<p dir="auto">指纹：<code>testset_v2.jsonl</code> v2.1，SHA256 <code>d9ab810535e0d92880ae005f10018848a4bd6c2c6760c63f1b7617145d22cd3d</code></p>
<h3>11.2 精度结果</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>模型</th>
<th>准确率 %</th>
<th>Wilson 95% CI</th>
<th>宏类均</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>Flash-Next IQ4_R</strong></td>
<td><strong>95.24</strong></td>
<td>[91.46, 97.39]</td>
<td><strong>97.1</strong></td>
</tr>
<tr>
<td>Strata IQ3_S</td>
<td>94.76</td>
<td>[90.87, 97.05]</td>
<td>95.3</td>
</tr>
<tr>
<td>27B FP8</td>
<td>92.86</td>
<td>[88.55, 95.62]</td>
<td>95.3</td>
</tr>
<tr>
<td>27B MXFP4</td>
<td>92.38</td>
<td>[87.98, 95.26]</td>
<td>94.3</td>
</tr>
</tbody>
</table>
<h3>11.3 配对检验（McNemar 精确 + BH-FDR）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>对比</th>
<th>仅 A 对</th>
<th>仅 B 对</th>
<th>差值 pp</th>
<th>差值 95% CI</th>
<th>p</th>
<th>FDR q</th>
<th>判定</th>
</tr>
</thead>
<tbody>
<tr>
<td>FP8 vs MXFP4</td>
<td>2</td>
<td>1</td>
<td>+0.48</td>
<td>(−0.95, +1.90)</td>
<td>1.000</td>
<td>1.000</td>
<td>等价</td>
</tr>
<tr>
<td>FP8 vs Flash-Next</td>
<td>1</td>
<td>6</td>
<td>−2.38</td>
<td>(−4.76, 0.00)</td>
<td>0.125</td>
<td>0.250</td>
<td>不显著</td>
</tr>
<tr>
<td>FP8 vs Strata</td>
<td>1</td>
<td>5</td>
<td>−1.90</td>
<td>(−4.29, 0.00)</td>
<td>0.219</td>
<td>0.328</td>
<td>不显著</td>
</tr>
<tr>
<td>MXFP4 vs Flash-Next</td>
<td>1</td>
<td>7</td>
<td>−2.86</td>
<td>(−5.71, −0.48)</td>
<td>0.070</td>
<td>0.250</td>
<td>不显著（倾向 125B）</td>
</tr>
<tr>
<td>MXFP4 vs Strata</td>
<td>1</td>
<td>6</td>
<td>−2.38</td>
<td>(−4.76, 0.00)</td>
<td>0.125</td>
<td>0.250</td>
<td>不显著</td>
</tr>
<tr>
<td>Flash-Next vs Strata</td>
<td>4</td>
<td>3</td>
<td>+0.48</td>
<td>(−1.90, +2.86)</td>
<td>1.000</td>
<td>1.000</td>
<td>等价</td>
</tr>
</tbody>
</table>
<h3>11.4 分类准确率</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>类别</th>
<th>FP8</th>
<th>MXFP4</th>
<th>Flash-Next</th>
<th>Strata</th>
</tr>
</thead>
<tbody>
<tr>
<td>arith (50)</td>
<td>78.0</td>
<td>78.0</td>
<td><strong>86.0</strong></td>
<td><strong>86.0</strong></td>
</tr>
<tr>
<td>knowledge (40)</td>
<td>100</td>
<td>100</td>
<td>100</td>
<td>100</td>
</tr>
<tr>
<td>json (20)</td>
<td>100</td>
<td>100</td>
<td>100</td>
<td>100</td>
</tr>
<tr>
<td>extract (25)</td>
<td>100</td>
<td>100</td>
<td>100</td>
<td>100</td>
</tr>
<tr>
<td>code (15)</td>
<td>100</td>
<td>100</td>
<td>100</td>
<td>100</td>
</tr>
<tr>
<td>instruction (20)</td>
<td>85.0</td>
<td>85.0</td>
<td>85.0</td>
<td><strong>90.0</strong></td>
</tr>
<tr>
<td>hallucination (10)</td>
<td>90.0</td>
<td>80.0</td>
<td><strong>100</strong></td>
<td>90.0</td>
</tr>
<tr>
<td>tool (8)</td>
<td>100</td>
<td>100</td>
<td>100</td>
<td>87.5</td>
</tr>
<tr>
<td>longctx (12)</td>
<td>100</td>
<td>100</td>
<td>100</td>
<td>100</td>
</tr>
<tr>
<td>order_stability (10)</td>
<td>100</td>
<td>100</td>
<td>100</td>
<td>100</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>唯一稳定差异</strong>：算术，125B（86%）&gt; 27B（78%），5 题独对 / 0 题独错，p=0.0625。</p>
<h3>11.5 顺序偏置</h3>
<p dir="auto">4 个模型位置敏感率全部 <strong>0%</strong>（10/10 一致且全对）。</p>
<h3>11.6 速度：延迟线性模型</h3>
<p dir="auto"><code>延迟 = 固定开销 + 每 token 成本 × N</code></p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>模型</th>
<th>固定开销</th>
<th>每 token 成本</th>
<th>隐含 decode</th>
<th>64 tok P95</th>
<th>256 tok P95</th>
<th>1024 tok P95</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>Flash-Next IQ4_R</strong></td>
<td>66 ms</td>
<td><strong>6.07 ms</strong></td>
<td><strong>164.7 tok/s</strong></td>
<td>0.457 s</td>
<td>1.429 s</td>
<td>1.417 s</td>
</tr>
<tr>
<td>27B MXFP4</td>
<td>−12 ms</td>
<td>9.31 ms</td>
<td>107.4 tok/s</td>
<td>0.584 s</td>
<td>1.944 s</td>
<td>1.944 s</td>
</tr>
<tr>
<td>27B FP8</td>
<td>58 ms</td>
<td>12.77 ms</td>
<td>78.3 tok/s</td>
<td>0.883 s</td>
<td>3.292 s</td>
<td>3.944 s</td>
</tr>
<tr>
<td>Strata IQ3_S</td>
<td>58 ms</td>
<td>13.88 ms</td>
<td>72.1 tok/s</td>
<td>0.958 s</td>
<td>3.607 s</td>
<td>6.161 s</td>
</tr>
</tbody>
</table>
<h3>11.7 并发扩展（聚合 tok/s）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>并发</th>
<th>FP8</th>
<th>MXFP4</th>
<th>Flash-Next</th>
<th>Strata</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>77.8</td>
<td>114.0</td>
<td>149.8</td>
<td>69.1</td>
</tr>
<tr>
<td>2</td>
<td>145.4</td>
<td>198.1</td>
<td>277.0</td>
<td>69.1</td>
</tr>
<tr>
<td>4</td>
<td>214.9</td>
<td>309.8</td>
<td>473.2</td>
<td>68.9</td>
</tr>
<tr>
<td>8</td>
<td>364.6</td>
<td>469.3</td>
<td><strong>767.4</strong></td>
<td>69.3</td>
</tr>
</tbody>
</table>
<p dir="auto">Strata <strong>1→8 并发吞吐恒定 69 tok/s</strong>（无 batching），P95 从 0.86 s 恶化到 14.8 s。</p>
<h3>11.8 Pareto 前沿</h3>
<p dir="auto"><strong>Flash-Next IQ4_R 唯一前沿</strong>：精度最高档、每 token 最快（6.07 ms）、8 并发吞吐最高（767 tok/s）。其余三个模型均被支配。</p>
<hr />
<h2>13. 统计结论汇总（三轮合并）</h2>
<ol>
<li><strong>精度差异不显著</strong>：65 题（CI 全重叠）与 210 题（McNemar + FDR，q ≥ 0.25）两轮独立验证，四模型真实差距不超过约 5 个百分点。</li>
<li><strong>唯一能力差异在算术</strong>：125B 系 86% vs 27B 系 78%（5:0 独对，p=0.0625），数学密集任务选 125B。</li>
<li><strong>FP8 被 MXFP4 严格支配</strong>：精度等价（p=1.0），但 MXFP4 每 token 便宜 27%（9.31 vs 12.77 ms）。</li>
<li><strong>Strata 的瓶颈是引擎</strong>：精度并列，但并发零扩展（69 tok/s 恒定），只适合单人交互。</li>
<li><strong>低比特未伤能力</strong>：4bit 专家（IQ4_R）的 125B 仍最高分；MXFP4(4bit) 与 FP8 等价。</li>
<li><strong>无明显位置偏置</strong>：四模型均 0% 位置敏感。</li>
</ol>
<hr />
<h2>14. 部署建议与选型</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>场景</th>
<th>推荐</th>
<th>依据</th>
</tr>
</thead>
<tbody>
<tr>
<td>默认生产（多人 / API 服务）</td>
<td><strong>Flash-Next IQ4_R</strong>（radiance :8000）</td>
<td>精度最高档 + 6.07 ms/token + 767 tok/s@8并发</td>
</tr>
<tr>
<td>数学 / 计算密集</td>
<td><strong>Flash-Next IQ4_R</strong>（或 Strata）</td>
<td>算术 86% vs 78%，5:0 独对</td>
</tr>
<tr>
<td>单人交互 / 极简部署</td>
<td>Strata IQ3_S（:8080）</td>
<td>精度等价，但吞吐恒定 69 tok/s</td>
</tr>
<tr>
<td>显存 / 内存紧张</td>
<td>27B MXFP4（19.4 GB）</td>
<td>精度与 FP8 等价，速度快 27%</td>
</tr>
<tr>
<td>合规要求"官方权重"</td>
<td>27B FP8</td>
<td>唯一理由，无性能优势</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>不推荐</strong>将 27B-FP8 作为主力：与 MXFP4 精度等价却慢 27%，与 125B 精度无显著差异却慢 2.1 倍。</p>
<p dir="auto"><strong>部署运维要点</strong></p>
<ul>
<li>镜像必须 pin digest（<code>:latest</code> 曾静默回归导致投机解码失效）</li>
<li>启动后 grep <code>SpecDecoding</code> 验收接受率（正常 75–91%）</li>
<li>两个模型不能同时跑（都吃满双卡）；建议做成切换脚本</li>
<li>开机自启：<code>strata-iq3s.service</code> 仍 enabled，若让 radiance 常驻需禁用，避免重启抢卡</li>
</ul>
<hr />
<h2>15. 附录 A：脚本与命令清单</h2>
<h3>A.1 引擎切换（<code>~/radiance/bench/sb_engine.sh</code>）</h3>
<pre><code class="language-bash">bash sb_engine.sh fp8|mxfp4|flashnext|strata|stop
</code></pre>
<h3>A.2 基准套件（<code>~/radiance/bench/</code>，第一轮）</h3>
<pre><code class="language-bash">SB_BASE=http://127.0.0.1:8000 SB_MODEL=qwen35 python3 sb_quality.py fp8_27b
SB_BASE=http://127.0.0.1:8000 SB_MODEL=qwen35 python3 sb_speed.py   fp8_27b
SB_BASE=http://127.0.0.1:8000 SB_MODEL=qwen35 python3 sb_long.py    fp8_27b
bash sb_run_all.sh
</code></pre>
<h3>A.3 严格评测框架（<code>~/radiance/bench2/</code>）</h3>
<pre><code class="language-bash">python3 make_testset.py                 # v1.0.1 冻结测试集（65 题计分）
python3 eval_quality.py --label X --base ... --model ...
python3 eval_speed.py --label X --session 1 --rounds 100 --warmup 20 --tokens 64
python3 eval_consistency.py collect/compare
python3 report.py results
bash run_all4.sh                        # 4 模型全量
</code></pre>
<h3>A.4 Phase-2（210 题配对统计）</h3>
<pre><code class="language-bash">python3 make_testset2.py                # v2.1，210 题
python3 eval_quality2.py --label X --base ... --model ...
python3 eval_speed2.py   --label X --base ... --model ...
python3 rescore2.py      --label X --cat knowledge --base ... --model ...
python3 stats_compare.py results2       # McNemar + BH-FDR + Pareto
bash run_phase2.sh
</code></pre>
<h3>A.5 服务调用示例</h3>
<pre><code class="language-bash">curl http://127.0.0.1:8000/v1/chat/completions \
  -H 'Authorization: Bearer ' \
  -H 'Content-Type: application/json' \
  -d '{"model":"qwen35","messages":[{"role":"user","content":"你好"}],"max_tokens":128}'
</code></pre>
<hr />
<h2>16. 附录 B：文件与路径索引</h2>
<h3>服务器（192.168.67.202）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>路径</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>~/radiance/models/</code></td>
<td>三份 <code>.rad</code> + recipe + README</td>
</tr>
<tr>
<td><code>~/radiance/compose/</code></td>
<td>compose 与 <code>.env</code>（PORT、API KEY、GID）</td>
</tr>
<tr>
<td><code>~/radiance/staging-1.11/compose/</code></td>
<td>官方 1.11 全套 yaml</td>
</tr>
<tr>
<td><code>~/radiance/bench/</code></td>
<td>第一轮套件（sb_*.py, sb_engine.sh）</td>
</tr>
<tr>
<td><code>~/radiance/bench2/</code></td>
<td>严格框架 + Phase-2（results2/、stats.json、日志）</td>
</tr>
<tr>
<td><code>~/Strata/</code>、<code>~/Strata-data/</code></td>
<td>Strata 引擎与 pack/MTP</td>
</tr>
<tr>
<td><code>~/models/gsq-rco-iq3s/IQ3_S/</code></td>
<td>Flash-Next IQ3_S GGUF（81 GB）</td>
</tr>
</tbody>
</table>
<h3>本地（Windows）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>路径</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>D:\2026.10.18\init\Qwen3.8-双R9700部署方案.md</code></td>
<td>初始部署方案</td>
</tr>
<tr>
<td><code>D:\2026.10.18\init\Qwen3.8-全模型基准测试报告.md</code></td>
<td>第一轮报告</td>
</tr>
<tr>
<td><code>D:\2026.10.18\init\Qwen3.8-严格基准评测报告-v1.md</code></td>
<td>第三轮报告</td>
</tr>
<tr>
<td><code>D:\2026.10.18\init\Qwen3.8-Phase2-精细评测报告.md</code></td>
<td>第四轮报告</td>
</tr>
<tr>
<td><code>D:\2026.10.18\init\bench2\</code></td>
<td>评测框架源码</td>
</tr>
</tbody>
</table>
<hr />
<h2>17. 附录 C：错误、坑与修正记录</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>问题</th>
<th>现象</th>
<th>修正</th>
</tr>
</thead>
<tbody>
<tr>
<td>PowerShell 剥离内层引号</td>
<td>远端命令管道被拆成多条命令</td>
<td>改为本地写脚本 + <code>scp</code> + <code>bash</code> 执行</td>
</tr>
<tr>
<td>PowerShell 传 CRLF 给远端 bash</td>
<td>行尾多出 <code>\r</code>，路径/命令异常</td>
<td>脚本一律 LF，复杂命令走文件</td>
</tr>
<tr>
<td>aria2 稀疏预分配</td>
<td>文件大小已满但实际只下 54%</td>
<td>以 SHA256 为准，等进程退出再校验</td>
</tr>
<tr>
<td>hf 官方 BF16 仓库 401</td>
<td>无法下载 BF16</td>
<td>改用 MXFP4 做对照</td>
</tr>
<tr>
<td><code>:latest</code> 镜像静默回归</td>
<td>投机解码接受率掉到 0.1%</td>
<td>全部改用 digest 固定</td>
</tr>
<tr>
<td>流式读取缓冲</td>
<td>TTFT 被高估到接近总延迟</td>
<td><code>readline()</code> 逐行读取</td>
</tr>
<tr>
<td>chunk 合并 token</td>
<td>客户端计数偏低</td>
<td>用 <code>usage.completion_tokens</code></td>
</tr>
<tr>
<td>thinking token 计入延迟</td>
<td>短回答慢得不合理</td>
<td><code>reasoning_effort=none</code></td>
</tr>
<tr>
<td>判分大小写敏感</td>
<td><code>Artificial Intelligence</code> 被判错</td>
<td>判分统一 lower()</td>
</tr>
<tr>
<td>幻觉题关键词过窄</td>
<td>模型答对却被判错</td>
<td>关键词扩充 + 定向重测</td>
</tr>
<tr>
<td>歧义题</td>
<td><code>hal_04</code> 依赖不确定事实</td>
<td>排除计分（65 题）</td>
</tr>
<tr>
<td>知识题缺格式指令</td>
<td>模型输出整段文字无法判字母</td>
<td>v2.0→v2.1 补指令并重测 40 题</td>
</tr>
<tr>
<td>并发吞吐误发 200 请求</td>
<td>标称 4 并发实际 200</td>
<td>改为逐波 4 路，重测全部</td>
</tr>
</tbody>
</table>
<hr />
<p dir="auto"><strong>结束</strong>。本文件由对话全过程的部署与评测记录整理而成，所有数字均标注了对应的硬件、引擎版本、量化模式、输入参数与预热协议；不同轮次之间因样本量与统计方法不同，不能直接横向比较绝对值，应以每轮内部的配对检验为准。</p>
]]></description><link>https://lcz.me/topic/2539</link><generator>RSS for Node</generator><lastBuildDate>Sun, 25 Oct 2026 02:01:15 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/2539.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Oct 2026 19:06:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qwen3.8-双R9700部署与评测全记录（一共测试了 4 个模型，分 4 轮进行。） on Fri, 23 Oct 2026 20:14:11 GMT]]></title><description><![CDATA[<p dir="auto">非常好，列出了适合生产的模型，27B FP8是最早出来的，，性价比不高很正常。<br />
上图啊，你不上提帖子质量怎么行。警告你是出于规矩，你别告诉我你图片上传都搞不定，那别人怎么相信你的数据啊。这.....论坛上传图片，这不是基本操作吗？置顶鼓励下，老骨头都不容易。尤其这么详细的测试帖子，我看完了......</p>
]]></description><link>https://lcz.me/post/27188</link><guid isPermaLink="true">https://lcz.me/post/27188</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Fri, 23 Oct 2026 20:14:11 GMT</pubDate></item><item><title><![CDATA[Reply to Qwen3.8-双R9700部署与评测全记录（一共测试了 4 个模型，分 4 轮进行。） on Fri, 23 Oct 2026 19:19:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bunsei" aria-label="Profile: Bunsei">@<bdi>Bunsei</bdi></a> 好的，谢谢你的帖子！你们竟然都睡得那么晚<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f632.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--astonished" style="height:1.4em;width:auto;vertical-align:middle" title=":astonished:" alt="😲" /> ，困了，撑不住了。</p>
]]></description><link>https://lcz.me/post/27182</link><guid isPermaLink="true">https://lcz.me/post/27182</guid><dc:creator><![CDATA[Magic629]]></dc:creator><pubDate>Fri, 23 Oct 2026 19:19:24 GMT</pubDate></item><item><title><![CDATA[Reply to Qwen3.8-双R9700部署与评测全记录（一共测试了 4 个模型，分 4 轮进行。） on Fri, 23 Oct 2026 19:20:58 GMT]]></title><description><![CDATA[<p dir="auto">如果平台好一些，这个引擎预填充速度能够一下9K。<br />
<img src="https://upload.lcz.me/uploads/2baf6308-1878-41e9-a2ed-365465a492df.jpeg" alt="image.jpeg" class="img-markdown  img-fluid" /></p>
]]></description><link>https://lcz.me/post/27181</link><guid isPermaLink="true">https://lcz.me/post/27181</guid><dc:creator><![CDATA[Bunsei]]></dc:creator><pubDate>Fri, 23 Oct 2026 19:20:58 GMT</pubDate></item></channel></rss>