<?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[【实测】2×RX 7900 XTX 24GB：Strata（Qwen3.8-Flash-Next IQ3_S）与 Qwen3.8-27B（hipfire MTP）分卡并行，两端同时满载]]></title><description><![CDATA[<blockquote>
<p dir="auto"><strong>一句话总结（TL;DR）</strong></p>
<blockquote>
<p dir="auto"><strong>2×RX 7900 XTX 24GB</strong> 同机分卡：GPU0 跑 <strong>Strata</strong> <code>0.1.43</code>（Qwen3.8-Flash-Next IQ3_S，上下文 <code>261880</code>，约 256K），GPU1 跑 <strong>hipfire</strong> <code>v0.4.7</code>（Qwen3.8-27B，MTP K=3，测速档位 <code>128K</code>，<code>--max-seq 140000</code>），两端同时满载。<br />
<strong>并成功接入本地hermes和DSH</strong><br />
<img src="https://upload.lcz.me/uploads/ff138e3d-6d4c-433f-a763-f878ab2c5342.png" alt="ScreenShot_2026-11-21_185254_109.png" class="img-markdown  img-fluid" /></p>
</blockquote>
</blockquote>
<blockquote>
<blockquote>
<ul>
<li><strong>并行代价：</strong> 两端 prefill / decode / TTFT 都落在各自 solo 基线的 <code>96 ～ 102%</code>，未检出超出噪声（单轮 σ/mean≈<code>7.6%</code>）的差异</li>
<li><strong>Strata（256K）：</strong> prefill <code>3,166 tok/s</code>，decode <code>93.7 tok/s</code>，TTFT <code>82.9 秒</code></li>
<li><strong>27B（128K）：</strong> prefill <code>1,028 tok/s</code>，decode <code>80.4 tok/s</code>，TTFT <code>124.7 秒</code>；多轮对话第二轮起 TTFT 降到 <code>5.7 秒</code></li>
<li><strong>唯一可见代价：</strong> Strata 常驻时，27B 的 32K 档 prefill 低 <code>7 ～ 8%</code></li>
<li><strong>占用：</strong> GPU1 <code>24,126 / 24,576 MiB</code>，GPU0 <code>24,491 MiB</code>，双引擎常驻时主机可用内存约 <code>8.4 GiB</code></li>
</ul>
</blockquote>
<p dir="auto">测试 2026-11-21。</p>
<hr />
<h2>一、硬件环境与软件</h2>
<blockquote>
<p dir="auto"><strong>配置一句话：</strong> <code>i7-11700K</code> ＋ <code>2× RX 7900 XTX 24GB</code> ＋ <code>DDR4-3200 64GB</code> ＋ <code>PCIe 4.0 x8 + x8</code> ＋ <code>Ubuntu 24.04</code></p>
</blockquote>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项目</th>
<th>规格与配置</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>显卡</td>
<td>2× AMD <strong>RX 7900 XTX 24GB</strong>（gfx1100）</td>
<td>GPU0 <code>0000:03:00.0</code>，GPU1 <code>0000:06:00.0</code>，以 <code>rocm-smi --showbus</code> 为准，不要照抄 <code>/dev/dri/cardN</code></td>
</tr>
<tr>
<td>CPU</td>
<td>Intel <strong>i7-11700K</strong></td>
<td><code>8 核 16 线程</code></td>
</tr>
<tr>
<td>内存</td>
<td><strong>64 GiB DDR4-3200</strong></td>
<td>偏紧，见 §六</td>
</tr>
<tr>
<td>主板</td>
<td>MSI MPG Z490 GAMING CARBON WIFI</td>
<td>CPU 的 x16 拆成 x8/x8，每张卡有效带宽 <code>PCIe 4.0 x8</code></td>
</tr>
<tr>
<td>系统</td>
<td>Ubuntu <code>24.04.4</code> / ROCm <code>7.2.3</code></td>
<td>HIP <code>7.2.53211</code></td>
</tr>
<tr>
<td>Strata</td>
<td>rdna3 <code>strata-101-mmq</code> <code>0.1.43</code></td>
<td>模型 <code>qwen3.8-flash-next-iq3_s</code>，跑在 <strong>GPU0</strong></td>
</tr>
<tr>
<td>hipfire</td>
<td><code>v0.4.7</code>（commit <code>e04c8bc8</code>）</td>
<td>模型 <code>qwen3.8:27b-mq4-xts</code>（HFQM，<code>14,987,185,152 B</code>），跑在 <strong>GPU1</strong></td>
</tr>
</tbody>
</table>
<hr />
<h2>二、启动参数</h2>
<h3>1. Strata（配方 <code>configs/iq3-1gpu-recommended.json</code>，上下文 <code>261880</code>）</h3>
<pre><code class="language-bash">sg render -c "exec .venv/bin/python poster141_launch.py iq3-1gpu-recommended 8082 127.0.0.1"
</code></pre>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>参数</th>
<th>值</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>STRATA_HIPBLASLT_TUNING</code></td>
<td><code>100401-262k</code></td>
<td>须与运行时 hipBLASLt 版本匹配</td>
</tr>
<tr>
<td><code>HIPBLASLT_TENSILE_LIBPATH</code></td>
<td><code>/opt/rocm/lib/hipblaslt/library/gfx1100</code></td>
<td>ROCm 7.2.3 上的路径</td>
</tr>
<tr>
<td><code>--prefill</code></td>
<td><code>auto</code></td>
<td></td>
</tr>
<tr>
<td><code>--vram-reserve-mib</code></td>
<td><code>512</code></td>
<td></td>
</tr>
<tr>
<td><code>--pool-workers</code></td>
<td><code>12</code></td>
<td></td>
</tr>
<tr>
<td><code>--adapt-swaps</code></td>
<td><code>32</code></td>
<td></td>
</tr>
<tr>
<td><code>STRATA_PREFILL_CPU_SHARE</code> / <code>_MAX</code></td>
<td><code>0.6</code> / <code>4096</code></td>
<td></td>
</tr>
<tr>
<td><code>STRATA_PREFILL_RING</code></td>
<td><code>192</code></td>
<td></td>
</tr>
<tr>
<td><code>STRATA_SH_STREAM</code></td>
<td><code>0</code></td>
<td></td>
</tr>
<tr>
<td><code>STRATA_ADAPT_OVERLAP</code></td>
<td>不设</td>
<td></td>
</tr>
</tbody>
</table>
<h3>2. 27B（hipfire）</h3>
<pre><code class="language-bash">export HIP_VISIBLE_DEVICES=1
export HIPFIRE_PAGE_EVICTION=1
export HIPFIRE_PREFILL_MAX_BATCH=1024
export HIPFIRE_QWEN_PREAD_LOAD=1
export HIPFIRE_DPM_WARMUP_SECS=10
export HIPFIRE_MTP_K=3
export HIPFIRE_DFLASH_MODE=off     # MTP 臂必须关 DFlash
exec hipfire serve "$HOST:8090" \
    --model qwen3.8:27b-mq4-xts \
    --kv-mode q8 --kv-backend vmm \
    --max-seq 140000 --spec mtp --idle-timeout 0
</code></pre>
<p dir="auto">另试过 13 个 gfx1100 / verify / graph 相关环境变量，均未测出显著差异，未采用。</p>
<hr />
<h2>三、27B 参数取舍</h2>
<h3>1. MTP K=3</h3>
<blockquote>
<p dir="auto"><strong>结果：</strong> K=3 与 K=4 等价，K=2 在 128K 慢 <code>41%</code>；MTP 比自回归快 <code>2.14 ～ 2.27 倍</code></p>
</blockquote>
<p dir="auto">128K 档，同会话，每档 3 轮：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>K</th>
<th>prefill</th>
<th>decode</th>
<th>TTFT</th>
<th>decode 相对 K=3</th>
</tr>
</thead>
<tbody>
<tr>
<td>2</td>
<td><code>1027.8</code></td>
<td><code>47.1</code></td>
<td><code>124.68 秒</code></td>
<td><code>0.59×</code></td>
</tr>
<tr>
<td><strong>3</strong></td>
<td><code>1023.8</code></td>
<td><code>79.9</code></td>
<td><code>125.04 秒</code></td>
<td><code>1.00×</code></td>
</tr>
<tr>
<td>4</td>
<td><code>1028.3</code></td>
<td><code>79.5</code></td>
<td><code>124.67 秒</code></td>
<td><code>0.99×</code></td>
</tr>
</tbody>
</table>
<p dir="auto">K 只影响 decode，不影响 TTFT。32K 档 K=3：AR <code>44.6</code> → <strong>MTP <code>95.6</code>（2.14×）</strong> → DFlash <code>68.9</code>；100K 档 MTP/AR＝<code>2.27×</code>。</p>
<p dir="auto"><strong>引擎版本影响结论：</strong> 同一模型同一 harness，v0.4.2.1 上 DFlash 胜（<code>85.75</code> vs <code>73.25</code>），v0.4.7 上反转（MTP <code>101.9</code> vs DFlash <code>97.4</code>）。v0.4.7 相对旧版 MTP decode <code>+39%</code>，DFlash <code>+14%</code>。</p>
<h3>2. KV 用 q8 + vmm，不用 fwht3</h3>
<blockquote>
<p dir="auto"><strong>结果：</strong> fwht3 在 128K 同上下文下 decode 慢 <code>34%</code>、TTFT 多 <code>52%</code>，物理显存只省 <code>4 ～ 7%</code></p>
</blockquote>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>臂</th>
<th>KV</th>
<th>max_seq</th>
<th>上下文</th>
<th>prefill</th>
<th>decode</th>
<th>TTFT</th>
</tr>
</thead>
<tbody>
<tr>
<td>采用</td>
<td>q8</td>
<td><code>140000</code></td>
<td>128K</td>
<td><code>1030.1</code></td>
<td><code>76.8</code></td>
<td><code>124.27 秒</code></td>
</tr>
<tr>
<td>对照</td>
<td>fwht3</td>
<td><code>190000</code></td>
<td>128K</td>
<td><code>669.1</code></td>
<td><code>51.0</code></td>
<td><code>188.9 秒</code></td>
</tr>
<tr>
<td>对照</td>
<td>fwht3</td>
<td><code>195000</code></td>
<td><code>192174</code></td>
<td><code>488.9</code></td>
<td><code>38.3</code></td>
<td><code>393.08 秒</code></td>
</tr>
<tr>
<td>对照</td>
<td>fwht3</td>
<td><code>195000</code></td>
<td><code>193112</code></td>
<td>—</td>
<td>—</td>
<td>daemon 崩溃</td>
</tr>
</tbody>
</table>
<p dir="auto">fwht3@128K 对 q8@128K：prefill <code>−35%</code> / decode <code>−34%</code> / TTFT <code>+52%</code>；fwht3@192K 对 q8@128K：<code>−52.5%</code> / <code>−50%</code> / <code>+216%</code>。用 50% 的 decode 换 50% 的上下文，不划算。</p>
<p dir="auto">边际显存：q8 约 <code>0.028 MiB/token</code>，fwht3 约 <code>0.0194 MiB/token</code>。daemon 的 <code>own</code> 是 VA 预留记账，不等于物理显存。</p>
<p dir="auto"><code>--kv-backend vmm</code> 把 KV 放显存；llama.cpp 的 KVMem 放主机内存，会和 Strata 的 <code>46.84 GiB</code> 专家 arena 争内存，这是两套能共存的前提。</p>
<h3>3. 为什么 max_seq 取 140000（测速档位 128K）</h3>
<blockquote>
<p dir="auto"><strong>结果：</strong> 上下文涨 4 倍，decode 只掉 <code>21%</code>；128K 之上显存余量不足 <code>310 MiB</code>，不再上探</p>
</blockquote>
<p dir="auto"><strong>口径：</strong> <code>max_seq</code> 是引擎 KV 总容量（prompt + 输出 + 余量）；<code>128K</code> 是测速档位，约 <code>128,000 token</code>（实测 prompt <code>127,976</code>），不是 <code>131,072</code>。多轮对话里 T2 的 prompt 已到 <code>131,041</code>，所以 <code>max_seq</code> 要比档位大。</p>
<p dir="auto">MTP K=3 + q8 + max_seq <code>140000</code> 的上下文阶梯：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>上下文</th>
<th>prefill</th>
<th>decode</th>
<th>TTFT</th>
<th>decode vs 32K</th>
</tr>
</thead>
<tbody>
<tr>
<td>32K</td>
<td><code>2012.3</code></td>
<td><code>96.9</code></td>
<td><code>15.9 秒</code></td>
<td><code>1.00×</code></td>
</tr>
<tr>
<td>64K</td>
<td><code>1604.9</code></td>
<td><code>89.1</code></td>
<td><code>39.9 秒</code></td>
<td><code>0.92×</code></td>
</tr>
<tr>
<td>96K</td>
<td><code>1212.6</code></td>
<td><code>83.7</code></td>
<td><code>79.2 秒</code></td>
<td><code>0.86×</code></td>
</tr>
<tr>
<td>128K</td>
<td><code>1028.0</code></td>
<td><code>76.2</code></td>
<td><code>124.6 秒</code></td>
<td><code>0.79×</code></td>
</tr>
</tbody>
</table>
<p dir="auto">显存：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>候选</th>
<th>显存</th>
<th>TTFT</th>
<th>判定</th>
</tr>
</thead>
<tbody>
<tr>
<td>prompt <code>127976</code> / max_seq <code>140000</code></td>
<td><code>24,126 MiB</code>（98.2%，剩 <code>450 MiB</code>）</td>
<td><code>125.0 秒</code></td>
<td>采用</td>
</tr>
<tr>
<td>145K / max_seq <code>145000</code></td>
<td>98.8%（剩 <code>303 MiB</code>）</td>
<td><code>144.2 秒</code></td>
<td>余量偏小，不采用</td>
</tr>
<tr>
<td>145K / max_seq <code>150000</code></td>
<td><code>24,538 MiB</code>（99.85%，剩 <code>38 MiB</code>）</td>
<td><code>153.1 秒</code></td>
<td>余量过小，不采用</td>
</tr>
</tbody>
</table>
<p dir="auto">TTFT <code>124 秒</code> 是 128K 冷启价，多轮对话第二轮起降到 <code>5.72 秒</code>（见 §五 之 4）。</p>
<hr />
<h2>四、测速口径</h2>
<ul>
<li>指标取服务端自报：<code>timings.prefill_tok_s / decode_tok_s / ttft_ms</code>、<code>usage.prompt_tokens_details.cached_tokens</code></li>
<li>Strata：6 档（8K～<code>261880</code>），runs=2，冷提示，输出 <code>256 token</code>，temperature <code>0</code>。27B：temperature <code>0.7</code> / top_p <code>0.9</code>，每档多轮，逐轮记录</li>
<li>并发对照：27B 单独 / +Strata 空载 / 真并发，同场、每档 3 轮</li>
<li>跨批次 prefill 漂移 <code>±38%</code>、decode 漂移 <code>±7%</code>，跨批次比较不构成结论；下文的 "solo 基线" 部分来自归档批次，按 <code>±7%</code> 噪声带读</li>
<li>档位名是近似值：<code>128K</code> ≈ <code>128,000</code>，<code>256K</code> ≈ <code>261,880</code> token，以表中实际 token 数为准</li>
<li>必须同时看 tok/s 和 TTFT：27B 32K 档 decode <code>94 tok/s</code>，TTFT <code>16 秒</code>；128K 档 decode <code>80 tok/s</code>，TTFT <code>125 秒</code></li>
<li>测速期间禁止大文件磁盘写入（会污染 prefill）</li>
</ul>
<hr />
<h2>五、实测数据</h2>
<h3>1. Strata：solo vs 与 27B 真并发（六档）</h3>
<blockquote>
<p dir="auto"><strong>结果：</strong> prefill 16K 以上五档 <code>−1.9% ～ −0.1%</code>；decode 的单点差都在噪声带内，不作结论</p>
</blockquote>
<p dir="auto">格式：prefill / decode / TTFT。</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>档位</th>
<th>solo</th>
<th>并发</th>
<th>Δprefill</th>
<th>Δdecode</th>
</tr>
</thead>
<tbody>
<tr>
<td>8,192</td>
<td><code>2051.0 / 100.91 / 4.06s</code></td>
<td><code>2220.5 / 109.47 / 3.71s</code></td>
<td><code>+8.3%</code></td>
<td><code>+8.5%</code></td>
</tr>
<tr>
<td>16,384</td>
<td><code>3024.9 / 108.47 / 5.44s</code></td>
<td><code>3013.7 / 114.74 / 5.46s</code></td>
<td><code>−0.4%</code></td>
<td><code>+5.8%</code></td>
</tr>
<tr>
<td>32,768</td>
<td><code>3398.2 / 110.69 / 9.68s</code></td>
<td><code>3394.1 / 116.13 / 9.69s</code></td>
<td><code>−0.1%</code></td>
<td><code>+4.9%</code></td>
</tr>
<tr>
<td>65,536</td>
<td><code>3512.4 / 110.30 / 18.71s</code></td>
<td><code>3477.0 / 113.68 / 18.90s</code></td>
<td><code>−1.0%</code></td>
<td><code>+3.1%</code></td>
</tr>
<tr>
<td>128,000</td>
<td><code>3431.3 / 108.36 / 37.38s</code></td>
<td><code>3385.5 / 105.03 / 37.89s</code></td>
<td><code>−1.3%</code></td>
<td><code>−3.1%</code></td>
</tr>
<tr>
<td>261,880</td>
<td><code>3204.4 / 97.18 / 81.87s</code></td>
<td><code>3143.0 / 90.93 / 83.47s</code></td>
<td><code>−1.9%</code></td>
<td><code>−6.4%</code></td>
</tr>
</tbody>
</table>
<p dir="auto">8K 档基线自身 prefill 跨度 <code>±10%</code>，<code>+8.3%</code> 不算异常。256K 档 decode 的 <code>−6%</code> 在同会话对照中未复现。</p>
<p dir="auto">&lt;!-- 在这里插入图1：chart1-strata-six-tiers.png --&gt;</p>
<h3>2. 27B：单独 / +Strata 空载 / 真并发</h3>
<blockquote>
<p dir="auto"><strong>结果：</strong> decode 无可见影响；128K 档 prefill / TTFT 差异 ≤<code>0.2%</code>；32K 档 prefill 低 <code>7 ～ 8%</code></p>
</blockquote>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>臂</th>
<th>4K</th>
<th>32K</th>
<th>128K</th>
</tr>
</thead>
<tbody>
<tr>
<td>单独</td>
<td><code>2237.8 / 103.7 / 1.82s</code></td>
<td><code>2019.5 / 91.7 / 15.89s</code></td>
<td><code>1030.1 / 76.8 / 124.27s</code></td>
</tr>
<tr>
<td>+Strata 空载</td>
<td><code>2213.8 / 99.2 / 1.84s</code></td>
<td><code>1853.2 / 98.2 / 17.33s</code></td>
<td><code>1029.4 / 81.5 / 124.49s</code></td>
</tr>
<tr>
<td>真并发</td>
<td><code>2222.6 / 100.3 / 1.83s</code></td>
<td><code>1871.7 / 94.7 / 17.11s</code></td>
<td><code>1031.2 / 79.9 / 124.07s</code></td>
</tr>
</tbody>
</table>
<ul>
<li>32K 档 prefill 低 <code>7 ～ 8%</code>：同会话背靠背对照排除了会话漂移（后期单独跑 <code>2021.2</code>，与首次 <code>2019.5</code> 一致），判定与 Strata 常驻有关；机理只是推测（主机内存紧张下 KV 池扩容走主机侧页分配），未验证</li>
<li>真并发与 "Strata 空载" 无额外差距，未观察到两卡间的直接竞争</li>
</ul>
<p dir="auto">&lt;!-- 在这里插入图2：chart2-27b-three-tiers.png --&gt;</p>
<h3>3. 两端同时钉在最大上下文（生产启动方式）</h3>
<blockquote>
<p dir="auto"><strong>结果：</strong> Strata <code>@256K</code> 与 27B <code>@128K</code> 同时满载，两端各指标都在各自 solo 基线的 <code>96 ～ 102%</code></p>
</blockquote>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>指标</th>
<th>Strata @261880 · GPU0</th>
<th>27B @128000 · GPU1</th>
</tr>
</thead>
<tbody>
<tr>
<td>prefill</td>
<td><code>3166.18</code>（基线 98.8%）</td>
<td><code>1028.50</code>（基线 100.5%）</td>
</tr>
<tr>
<td>decode</td>
<td><code>93.69</code>（基线 96.4%）</td>
<td><code>80.40</code>（基线 100.6%）</td>
</tr>
<tr>
<td>TTFT</td>
<td><code>82.86 秒</code>（基线 101.2%）</td>
<td><code>124.65 秒</code>（基线 99.7%）</td>
</tr>
<tr>
<td>基线来源</td>
<td>归档 <code>3204.39 / 97.18 / 81.87s</code></td>
<td>独跑 <code>1023.80 / 79.90 / 125.04s</code></td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>说明：</strong> 27B 列为 3 轮均值，真正与 Strata 重叠的只有第 1 轮（重叠窗口约 <code>2 分 15 秒</code>）。27B 的 128K decode 各次独跑在 <code>76.2 ～ 80.6</code> 之间，所以 <code>100.6%</code> 只表示落在波动范围内。</p>
<p dir="auto">同会话、同轮位对照（n=1）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>指标</th>
<th>Strata 空闲</th>
<th>Strata 并发</th>
<th>比值</th>
</tr>
</thead>
<tbody>
<tr>
<td>prefill</td>
<td><code>1025.0</code></td>
<td><code>1025.3</code></td>
<td><code>1.0003×</code></td>
</tr>
<tr>
<td>decode</td>
<td><code>78.3</code></td>
<td><code>80.4</code></td>
<td><code>1.027×</code>（在噪声内）</td>
</tr>
<tr>
<td>TTFT</td>
<td><code>125029 ms</code></td>
<td><code>124848 ms</code></td>
<td><code>0.9985×</code></td>
</tr>
</tbody>
</table>
<ul>
<li>Strata 连续 8 轮 256K 满载期间跑 27B 的多轮复用探针：<code>cached_tokens</code> 与空闲态逐项相同，TTFT 差异 &lt;<code>0.5%</code></li>
<li>同期 Strata 8 轮：prefill <code>3133.60</code>（97.8%）、decode <code>95.20</code>（98.0%）、TTFT <code>83.72 秒</code>（102.3%），全程未崩</li>
<li>水位：GPU1 <code>24,126 / 24,576 MiB</code>；GPU0 <code>24,491 MiB</code>；主机 <code>MemAvailable</code> 双引擎常驻 <code>8.42 GiB</code>，并发时约 <code>7 GiB</code></li>
</ul>
<h3>4. 多轮复用（<code>/v1/chat/completions</code>）</h3>
<blockquote>
<p dir="auto"><strong>结果：</strong> 第二轮起 TTFT <code>124.43 秒 → 5.72 秒</code>（<code>21.8×</code>），<code>97.3%</code> 的 prompt 被复用</p>
</blockquote>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>轮次</th>
<th>形状</th>
<th>prompt</th>
<th>cached</th>
<th>TTFT</th>
</tr>
</thead>
<tbody>
<tr>
<td>T1</td>
<td>冷启 128K</td>
<td><code>127976</code></td>
<td><code>0</code></td>
<td><code>124.43 秒</code></td>
</tr>
<tr>
<td>T2</td>
<td>真实多轮</td>
<td><code>131041</code></td>
<td><code>127488</code></td>
<td><code>5.72 秒</code></td>
</tr>
<tr>
<td>T3</td>
<td>base + 3K</td>
<td><code>130962</code></td>
<td><code>127488</code></td>
<td><code>5.67 秒</code></td>
</tr>
<tr>
<td>T4</td>
<td>base 截到 120K 再加 3K</td>
<td><code>122996</code></td>
<td><code>119296</code></td>
<td><code>5.73 秒</code></td>
</tr>
<tr>
<td>T5</td>
<td>base 截到 60K</td>
<td><code>63044</code></td>
<td><code>0</code></td>
<td><code>42.83 秒</code></td>
</tr>
<tr>
<td>T6</td>
<td>同 T5</td>
<td><code>63044</code></td>
<td><code>61952</code></td>
<td><code>1.24 秒</code></td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>前提（缺一回落冷启）：</strong></p>
<ol>
<li>走 <code>/v1/chat/completions</code>；裸 <code>/v1/completions</code> 永远冷启</li>
<li>客户端带回完整历史（append 式多轮）</li>
<li>上一轮不能是超 KV 预算的失败请求，否则会话被清空（日志 <code>context full … resetting conversation</code>）</li>
</ol>
<p dir="auto">续跑窗口：checkpoint 每 <code>2048 token</code> 一个、环形保留 <code>8</code> 个，只有上一轮最后约 <code>16K token</code> 可续跑（T5 的分叉点在窗口外，所以冷启）。相关环境变量默认值都已正确，无需设置。测速里常看不到复用，是因为每轮换随机语料，LCP 恒为 <code>7</code>，分叉点远在窗口外，不是引擎没缓存。</p>
<p dir="auto">&lt;!-- 在这里插入图3：chart3-multiturn-ttft.png --&gt;</p>
<hr />
<h2>六、注意事项和踩坑</h2>
<h3>1. MTP 臂必须 <code>HIPFIRE_DFLASH_MODE=off</code></h3>
<ul>
<li><code>HIPFIRE_MTP_NGRAM=1</code> 会 HTTP 500</li>
<li><code>HIPFIRE_MTP_K=0</code>、<code>HIPFIRE_DFLASH_MODE=default</code> 是非法值</li>
</ul>
<h3>2. Strata 重启后头两个大请求 client TTFT 多 <code>82 ～ 85 秒</code></h3>
<p dir="auto">引擎 <code>prompt_ms</code> 不含这段，但完全计入客户端 TTFT：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>轮次</th>
<th>client TTFT</th>
<th>引擎 prompt_ms</th>
<th>差</th>
</tr>
</thead>
<tbody>
<tr>
<td>warmup（19 tok）</td>
<td><code>59.52 秒</code></td>
<td><code>0.34 秒</code></td>
<td><code>+59.2 秒</code></td>
</tr>
<tr>
<td>run 1</td>
<td><code>166.91 秒</code></td>
<td><code>82.26 秒</code></td>
<td><code>+84.7 秒</code></td>
</tr>
<tr>
<td>run 2</td>
<td><code>164.68 秒</code></td>
<td><code>82.28 秒</code></td>
<td><code>+82.4 秒</code></td>
</tr>
<tr>
<td>run 3</td>
<td><code>82.39 秒</code></td>
<td><code>82.25 秒</code></td>
<td><code>+0.14 秒</code></td>
</tr>
</tbody>
</table>
<p dir="auto">日志：</p>
<pre><code>strata generate: expert arena read unbuffered (0 of 64 sampled pages in the file cache; 9.3 GiB available, 0.0 GiB still to be taken by the arena, 46.8 GiB of files: the cache cannot keep them)
</code></pre>
<p dir="auto">第 3 轮恢复；并发时 Strata TTFT 为 <code>81.72 / 82.86 / 83.46 秒</code>，说明 27B 的 128K 请求没有把 arena 页缓存冲掉。这是重启的一次性效应，不是并发造成的。换 96/128 GiB 内存可能消除，未验证。</p>
<h3>3. 262K 下 Strata decode 偏低</h3>
<p dir="auto"><code>97.18 tok/s</code>（32K～128K 为 <code>108 ～ 111</code>），推测与 64 GiB 内存下 arena 难以常驻 page cache 有关，未做对照验证。</p>
<h3>4. 测速期间不要在机器上编译、下载、解压</h3>
<p dir="auto">大文件写入会污染 prefill。</p>
<hr />
<h2>七、未做到 / 不确定</h2>
<ol>
<li>§五 之 3 的真并发重叠窗口只有约 <code>2 分 15 秒</code>，且 solo 基线来自不同批次；要更硬的数据需跑更长的交替配对</li>
<li>27B 32K prefill 低 <code>7 ～ 8%</code> 的机理是推测</li>
<li>六档 decode 的并发趋势在噪声内，不作结论</li>
<li>27B 用的是 Python 模板合成语料。纯代码生成场景（DFlash 对重复度高的文本收益更大）请用真实 prompt 复测</li>
<li>82 秒冷启惩罚未在更大内存机器上验证；PCIe x8 与 x16 的差别未实测</li>
<li>只测速度，未评估输出质量</li>
</ol>
<hr />
<p dir="auto"><em>测试日期 2026-11-02 ~ 2026-11-21。所有数字都是这台电脑上实际跑出来的。原始数据（各阶段 JSON、引擎日志）都留着，需要可以提供。</em>&gt; <strong>一句话总结（TL;DR）</strong><br />
<strong>2×RX 7900 XTX 24GB</strong> 同机分卡：GPU0 跑 <strong>Strata</strong> <code>0.1.43</code>（Qwen3.8-Flash-Next IQ3_S，上下文 <code>256K</code>），GPU1 跑 <strong>hipfire</strong> <code>v0.4.7</code>（Qwen3.8-27B，MTP K=3，上下文 <code>128K</code>），两端同时满载。</p>
<ul>
<li><strong>并行代价：</strong> 两端 prefill / decode / TTFT 都落在各自 solo 基线的 <code>96 ～ 102%</code>，未检出超出噪声（单轮 σ/mean≈<code>7.6%</code>）的差异</li>
<li><strong>Strata（256K）：</strong> prefill <code>3,166 tok/s</code>，decode <code>93.7 tok/s</code>，TTFT <code>82.9 秒</code></li>
<li><strong>27B（128K）：</strong> prefill <code>1,028 tok/s</code>，decode <code>80.4 tok/s</code>，TTFT <code>124.7 秒</code>；多轮对话第二轮起 TTFT 降到 <code>5.7 秒</code></li>
<li><strong>唯一可见代价：</strong> Strata 常驻时，27B 的 32K 档 prefill 低 <code>7 ～ 8%</code></li>
<li><strong>占用：</strong> GPU1 <code>24,126 / 24,576 MiB</code>，GPU0 <code>24,491 MiB</code>，双引擎常驻时主机可用内存约 <code>8.4 GiB</code></li>
</ul>
</blockquote>
<p dir="auto">测试 2026-11-21。</p>
<hr />
<h2>一、硬件环境与软件</h2>
<blockquote>
<p dir="auto"><strong>配置一句话：</strong> <code>i7-11700K</code> ＋ <code>2× RX 7900 XTX 24GB</code> ＋ <code>DDR4-3200 64GB</code> ＋ <code>PCIe 4.0 x8 + x8</code> ＋ <code>Ubuntu 24.04</code></p>
</blockquote>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项目</th>
<th>规格与配置</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>显卡</td>
<td>2× AMD <strong>RX 7900 XTX 24GB</strong>（gfx1100）</td>
<td>GPU0 <code>0000:03:00.0</code>，GPU1 <code>0000:06:00.0</code>，以 <code>rocm-smi --showbus</code> 为准，不要照抄 <code>/dev/dri/cardN</code></td>
</tr>
<tr>
<td>CPU</td>
<td>Intel <strong>i7-11700K</strong></td>
<td><code>8 核 16 线程</code></td>
</tr>
<tr>
<td>内存</td>
<td><strong>64 GiB DDR4-3200</strong></td>
<td>偏紧，见 §六</td>
</tr>
<tr>
<td>主板</td>
<td>MSI MPG Z490 GAMING CARBON WIFI</td>
<td>CPU 的 x16 拆成 x8/x8，每张卡有效带宽 <code>PCIe 4.0 x8</code></td>
</tr>
<tr>
<td>系统</td>
<td>Ubuntu <code>24.04.4</code> / ROCm <code>7.2.3</code></td>
<td>HIP <code>7.2.53211</code></td>
</tr>
<tr>
<td>Strata</td>
<td>rdna3 <code>strata-101-mmq</code> <code>0.1.43</code></td>
<td>模型 <code>qwen3.8-flash-next-iq3_s</code>，跑在 <strong>GPU0</strong></td>
</tr>
<tr>
<td>hipfire</td>
<td><code>v0.4.7</code>（commit <code>e04c8bc8</code>）</td>
<td>模型 <code>qwen3.8:27b-mq4-xts</code>（HFQM，<code>14,987,185,152 B</code>），跑在 <strong>GPU1</strong></td>
</tr>
</tbody>
</table>
<hr />
<h2>二、启动参数</h2>
<h3>1. Strata（配方 <code>configs/iq3-1gpu-recommended.json</code>，上下文 <code>261880</code>）</h3>
<pre><code class="language-bash">sg render -c "exec .venv/bin/python poster141_launch.py iq3-1gpu-recommended 8082 127.0.0.1"
</code></pre>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>参数</th>
<th>值</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>STRATA_HIPBLASLT_TUNING</code></td>
<td><code>100401-262k</code></td>
<td>须与运行时 hipBLASLt 版本匹配</td>
</tr>
<tr>
<td><code>HIPBLASLT_TENSILE_LIBPATH</code></td>
<td><code>/opt/rocm/lib/hipblaslt/library/gfx1100</code></td>
<td>ROCm 7.2.3 上的路径</td>
</tr>
<tr>
<td><code>--prefill</code></td>
<td><code>auto</code></td>
<td></td>
</tr>
<tr>
<td><code>--vram-reserve-mib</code></td>
<td><code>512</code></td>
<td></td>
</tr>
<tr>
<td><code>--pool-workers</code></td>
<td><code>12</code></td>
<td></td>
</tr>
<tr>
<td><code>--adapt-swaps</code></td>
<td><code>32</code></td>
<td></td>
</tr>
<tr>
<td><code>STRATA_PREFILL_CPU_SHARE</code> / <code>_MAX</code></td>
<td><code>0.6</code> / <code>4096</code></td>
<td></td>
</tr>
<tr>
<td><code>STRATA_PREFILL_RING</code></td>
<td><code>192</code></td>
<td></td>
</tr>
<tr>
<td><code>STRATA_SH_STREAM</code></td>
<td><code>0</code></td>
<td></td>
</tr>
<tr>
<td><code>STRATA_ADAPT_OVERLAP</code></td>
<td>不设</td>
<td></td>
</tr>
</tbody>
</table>
<h3>2. 27B（hipfire）</h3>
<pre><code class="language-bash">export HIP_VISIBLE_DEVICES=1
export HIPFIRE_PAGE_EVICTION=1
export HIPFIRE_PREFILL_MAX_BATCH=1024
export HIPFIRE_QWEN_PREAD_LOAD=1
export HIPFIRE_DPM_WARMUP_SECS=10
export HIPFIRE_MTP_K=3
export HIPFIRE_DFLASH_MODE=off     # MTP 臂必须关 DFlash
exec hipfire serve "$HOST:8090" \
    --model qwen3.8:27b-mq4-xts \
    --kv-mode q8 --kv-backend vmm \
    --max-seq 140000 --spec mtp --idle-timeout 0
</code></pre>
<p dir="auto">另试过 13 个 gfx1100 / verify / graph 相关环境变量，均未测出显著差异，未采用。</p>
<hr />
<h2>三、27B 参数取舍</h2>
<h3>1. MTP K=3</h3>
<blockquote>
<p dir="auto"><strong>结果：</strong> K=3 与 K=4 等价，K=2 在 128K 慢 <code>41%</code>；MTP 比自回归快 <code>2.14 ～ 2.27 倍</code></p>
</blockquote>
<p dir="auto">128K 档，同会话，每档 3 轮：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>K</th>
<th>prefill</th>
<th>decode</th>
<th>TTFT</th>
<th>decode 相对 K=3</th>
</tr>
</thead>
<tbody>
<tr>
<td>2</td>
<td><code>1027.8</code></td>
<td><code>47.1</code></td>
<td><code>124.68 秒</code></td>
<td><code>0.59×</code></td>
</tr>
<tr>
<td><strong>3</strong></td>
<td><code>1023.8</code></td>
<td><code>79.9</code></td>
<td><code>125.04 秒</code></td>
<td><code>1.00×</code></td>
</tr>
<tr>
<td>4</td>
<td><code>1028.3</code></td>
<td><code>79.5</code></td>
<td><code>124.67 秒</code></td>
<td><code>0.99×</code></td>
</tr>
</tbody>
</table>
<p dir="auto">K 只影响 decode，不影响 TTFT。32K 档 K=3：AR <code>44.6</code> → <strong>MTP <code>95.6</code>（2.14×）</strong> → DFlash <code>68.9</code>；100K 档 MTP/AR＝<code>2.27×</code>。</p>
<p dir="auto"><strong>引擎版本影响结论：</strong> 同一模型同一 harness，v0.4.2.1 上 DFlash 胜（<code>85.75</code> vs <code>73.25</code>），v0.4.7 上反转（MTP <code>101.9</code> vs DFlash <code>97.4</code>）。v0.4.7 相对旧版 MTP decode <code>+39%</code>，DFlash <code>+14%</code>。</p>
<h3>2. KV 用 q8 + vmm，不用 fwht3</h3>
<blockquote>
<p dir="auto"><strong>结果：</strong> fwht3 在 128K 同上下文下 decode 慢 <code>34%</code>、TTFT 多 <code>52%</code>，物理显存只省 <code>4 ～ 7%</code></p>
</blockquote>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>臂</th>
<th>KV</th>
<th>max_seq</th>
<th>上下文</th>
<th>prefill</th>
<th>decode</th>
<th>TTFT</th>
</tr>
</thead>
<tbody>
<tr>
<td>采用</td>
<td>q8</td>
<td><code>140000</code></td>
<td>128K</td>
<td><code>1030.1</code></td>
<td><code>76.8</code></td>
<td><code>124.27 秒</code></td>
</tr>
<tr>
<td>对照</td>
<td>fwht3</td>
<td><code>190000</code></td>
<td>128K</td>
<td><code>669.1</code></td>
<td><code>51.0</code></td>
<td><code>188.9 秒</code></td>
</tr>
<tr>
<td>对照</td>
<td>fwht3</td>
<td><code>195000</code></td>
<td><code>192174</code></td>
<td><code>488.9</code></td>
<td><code>38.3</code></td>
<td><code>393.08 秒</code></td>
</tr>
<tr>
<td>对照</td>
<td>fwht3</td>
<td><code>195000</code></td>
<td><code>193112</code></td>
<td>—</td>
<td>—</td>
<td>daemon 崩溃</td>
</tr>
</tbody>
</table>
<p dir="auto">fwht3@128K 对 q8@128K：prefill <code>−35%</code> / decode <code>−34%</code> / TTFT <code>+52%</code>；fwht3@192K 对 q8@128K：<code>−52.5%</code> / <code>−50%</code> / <code>+216%</code>。用 50% 的 decode 换 50% 的上下文，不划算。</p>
<p dir="auto">边际显存：q8 约 <code>0.028 MiB/token</code>，fwht3 约 <code>0.0194 MiB/token</code>。daemon 的 <code>own</code> 是 VA 预留记账，不等于物理显存。</p>
<p dir="auto"><code>--kv-backend vmm</code> 把 KV 放显存；llama.cpp 的 KVMem 放主机内存，会和 Strata 的 <code>46.84 GiB</code> 专家 arena 争内存，这是两套能共存的前提。</p>
<h3>3. 为什么是 128K / max_seq 140000</h3>
<blockquote>
<p dir="auto"><strong>结果：</strong> 上下文涨 4 倍，decode 只掉 <code>21%</code>；128K 之上显存余量不足 <code>310 MiB</code>，不再上探</p>
</blockquote>
<p dir="auto">MTP K=3 + q8 + max_seq <code>140000</code> 的上下文阶梯：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>上下文</th>
<th>prefill</th>
<th>decode</th>
<th>TTFT</th>
<th>decode vs 32K</th>
</tr>
</thead>
<tbody>
<tr>
<td>32K</td>
<td><code>2012.3</code></td>
<td><code>96.9</code></td>
<td><code>15.9 秒</code></td>
<td><code>1.00×</code></td>
</tr>
<tr>
<td>64K</td>
<td><code>1604.9</code></td>
<td><code>89.1</code></td>
<td><code>39.9 秒</code></td>
<td><code>0.92×</code></td>
</tr>
<tr>
<td>96K</td>
<td><code>1212.6</code></td>
<td><code>83.7</code></td>
<td><code>79.2 秒</code></td>
<td><code>0.86×</code></td>
</tr>
<tr>
<td>128K</td>
<td><code>1028.0</code></td>
<td><code>76.2</code></td>
<td><code>124.6 秒</code></td>
<td><code>0.79×</code></td>
</tr>
</tbody>
</table>
<p dir="auto">显存：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>候选</th>
<th>显存</th>
<th>TTFT</th>
<th>判定</th>
</tr>
</thead>
<tbody>
<tr>
<td>128K / max_seq <code>140000</code></td>
<td><code>24,126 MiB</code>（98.2%，剩 <code>450 MiB</code>）</td>
<td><code>125.0 秒</code></td>
<td>采用</td>
</tr>
<tr>
<td>145K / max_seq <code>145000</code></td>
<td>98.8%（剩 <code>303 MiB</code>）</td>
<td><code>144.2 秒</code></td>
<td>余量偏小，不采用</td>
</tr>
<tr>
<td>145K / max_seq <code>150000</code></td>
<td><code>24,538 MiB</code>（99.85%，剩 <code>38 MiB</code>）</td>
<td><code>153.1 秒</code></td>
<td>余量过小，不采用</td>
</tr>
</tbody>
</table>
<p dir="auto">TTFT <code>124 秒</code> 是 128K 冷启价，多轮对话第二轮起降到 <code>5.72 秒</code>（见 §五 之 4）。</p>
<hr />
<h2>四、测速口径</h2>
<ul>
<li>指标取服务端自报：<code>timings.prefill_tok_s / decode_tok_s / ttft_ms</code>、<code>usage.prompt_tokens_details.cached_tokens</code></li>
<li>Strata：6 档（8K～<code>261880</code>），runs=2，冷提示，输出 <code>256 token</code>，temperature <code>0</code>。27B：temperature <code>0.7</code> / top_p <code>0.9</code>，每档多轮，逐轮记录</li>
<li>并发对照：27B 单独 / +Strata 空载 / 真并发，同场、每档 3 轮</li>
<li>跨批次 prefill 漂移 <code>±38%</code>、decode 漂移 <code>±7%</code>，跨批次比较不构成结论；下文的 "solo 基线" 部分来自归档批次，按 <code>±7%</code> 噪声带读</li>
<li>必须同时看 tok/s 和 TTFT：27B 32K 档 decode <code>94 tok/s</code>，TTFT <code>16 秒</code>；128K 档 decode <code>80 tok/s</code>，TTFT <code>125 秒</code></li>
<li>测速期间禁止大文件磁盘写入（会污染 prefill）</li>
</ul>
<hr />
<h2>五、实测数据</h2>
<h3>1. Strata：solo vs 与 27B 真并发（六档）</h3>
<blockquote>
<p dir="auto"><strong>结果：</strong> prefill 16K 以上五档 <code>−1.9% ～ −0.1%</code>；decode 的单点差都在噪声带内，不作结论</p>
</blockquote>
<p dir="auto">格式：prefill / decode / TTFT。</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>档位</th>
<th>solo</th>
<th>并发</th>
<th>Δprefill</th>
<th>Δdecode</th>
</tr>
</thead>
<tbody>
<tr>
<td>8,192</td>
<td><code>2051.0 / 100.91 / 4.06s</code></td>
<td><code>2220.5 / 109.47 / 3.71s</code></td>
<td><code>+8.3%</code></td>
<td><code>+8.5%</code></td>
</tr>
<tr>
<td>16,384</td>
<td><code>3024.9 / 108.47 / 5.44s</code></td>
<td><code>3013.7 / 114.74 / 5.46s</code></td>
<td><code>−0.4%</code></td>
<td><code>+5.8%</code></td>
</tr>
<tr>
<td>32,768</td>
<td><code>3398.2 / 110.69 / 9.68s</code></td>
<td><code>3394.1 / 116.13 / 9.69s</code></td>
<td><code>−0.1%</code></td>
<td><code>+4.9%</code></td>
</tr>
<tr>
<td>65,536</td>
<td><code>3512.4 / 110.30 / 18.71s</code></td>
<td><code>3477.0 / 113.68 / 18.90s</code></td>
<td><code>−1.0%</code></td>
<td><code>+3.1%</code></td>
</tr>
<tr>
<td>128,000</td>
<td><code>3431.3 / 108.36 / 37.38s</code></td>
<td><code>3385.5 / 105.03 / 37.89s</code></td>
<td><code>−1.3%</code></td>
<td><code>−3.1%</code></td>
</tr>
<tr>
<td>261,880</td>
<td><code>3204.4 / 97.18 / 81.87s</code></td>
<td><code>3143.0 / 90.93 / 83.47s</code></td>
<td><code>−1.9%</code></td>
<td><code>−6.4%</code></td>
</tr>
</tbody>
</table>
<p dir="auto">8K 档基线自身 prefill 跨度 <code>±10%</code>，<code>+8.3%</code> 不算异常。256K 档 decode 的 <code>−6%</code> 在同会话对照中未复现。</p>
<p dir="auto"><img src="https://upload.lcz.me/uploads/4596af65-30b5-4e79-9847-885667c8c2d9.png" alt="chart1-strata-six-tiers.png" class="img-markdown  img-fluid" /></p>
<h3>2. 27B：单独 / +Strata 空载 / 真并发</h3>
<blockquote>
<p dir="auto"><strong>结果：</strong> decode 无可见影响；128K 档 prefill / TTFT 差异 ≤<code>0.2%</code>；32K 档 prefill 低 <code>7 ～ 8%</code></p>
</blockquote>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>臂</th>
<th>4K</th>
<th>32K</th>
<th>128K</th>
</tr>
</thead>
<tbody>
<tr>
<td>单独</td>
<td><code>2237.8 / 103.7 / 1.82s</code></td>
<td><code>2019.5 / 91.7 / 15.89s</code></td>
<td><code>1030.1 / 76.8 / 124.27s</code></td>
</tr>
<tr>
<td>+Strata 空载</td>
<td><code>2213.8 / 99.2 / 1.84s</code></td>
<td><code>1853.2 / 98.2 / 17.33s</code></td>
<td><code>1029.4 / 81.5 / 124.49s</code></td>
</tr>
<tr>
<td>真并发</td>
<td><code>2222.6 / 100.3 / 1.83s</code></td>
<td><code>1871.7 / 94.7 / 17.11s</code></td>
<td><code>1031.2 / 79.9 / 124.07s</code></td>
</tr>
</tbody>
</table>
<ul>
<li>32K 档 prefill 低 <code>7 ～ 8%</code>：同会话背靠背对照排除了会话漂移（后期单独跑 <code>2021.2</code>，与首次 <code>2019.5</code> 一致），判定与 Strata 常驻有关；机理只是推测（主机内存紧张下 KV 池扩容走主机侧页分配），未验证</li>
<li>真并发与 "Strata 空载" 无额外差距，未观察到两卡间的直接竞争</li>
</ul>
<p dir="auto"><img src="https://upload.lcz.me/uploads/d81deccb-8c27-48a4-8ca6-04b0877f51e8.png" alt="chart2-27b-three-tiers.png" class="img-markdown  img-fluid" /></p>
<h3>3. 两端同时钉在最大上下文（生产启动方式）</h3>
<blockquote>
<p dir="auto"><strong>结果：</strong> Strata <code>@256K</code> 与 27B <code>@128K</code> 同时满载，两端各指标都在各自 solo 基线的 <code>96 ～ 102%</code></p>
</blockquote>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>指标</th>
<th>Strata @261880 · GPU0</th>
<th>27B @128000 · GPU1</th>
</tr>
</thead>
<tbody>
<tr>
<td>prefill</td>
<td><code>3166.18</code>（基线 98.8%）</td>
<td><code>1028.50</code>（基线 100.5%）</td>
</tr>
<tr>
<td>decode</td>
<td><code>93.69</code>（基线 96.4%）</td>
<td><code>80.40</code>（基线 100.6%）</td>
</tr>
<tr>
<td>TTFT</td>
<td><code>82.86 秒</code>（基线 101.2%）</td>
<td><code>124.65 秒</code>（基线 99.7%）</td>
</tr>
<tr>
<td>基线来源</td>
<td>归档 <code>3204.39 / 97.18 / 81.87s</code></td>
<td>独跑 <code>1023.80 / 79.90 / 125.04s</code></td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>说明：</strong> 27B 列为 3 轮均值，真正与 Strata 重叠的只有第 1 轮（重叠窗口约 <code>2 分 15 秒</code>）。27B 的 128K decode 各次独跑在 <code>76.2 ～ 80.6</code> 之间，所以 <code>100.6%</code> 只表示落在波动范围内。</p>
<p dir="auto">同会话、同轮位对照（n=1）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>指标</th>
<th>Strata 空闲</th>
<th>Strata 并发</th>
<th>比值</th>
</tr>
</thead>
<tbody>
<tr>
<td>prefill</td>
<td><code>1025.0</code></td>
<td><code>1025.3</code></td>
<td><code>1.0003×</code></td>
</tr>
<tr>
<td>decode</td>
<td><code>78.3</code></td>
<td><code>80.4</code></td>
<td><code>1.027×</code>（在噪声内）</td>
</tr>
<tr>
<td>TTFT</td>
<td><code>125029 ms</code></td>
<td><code>124848 ms</code></td>
<td><code>0.9985×</code></td>
</tr>
</tbody>
</table>
<ul>
<li>Strata 连续 8 轮 256K 满载期间跑 27B 的多轮复用探针：<code>cached_tokens</code> 与空闲态逐项相同，TTFT 差异 &lt;<code>0.5%</code></li>
<li>同期 Strata 8 轮：prefill <code>3133.60</code>（97.8%）、decode <code>95.20</code>（98.0%）、TTFT <code>83.72 秒</code>（102.3%），全程未崩</li>
<li>水位：GPU1 <code>24,126 / 24,576 MiB</code>；GPU0 <code>24,491 MiB</code>；主机 <code>MemAvailable</code> 双引擎常驻 <code>8.42 GiB</code>，并发时约 <code>7 GiB</code></li>
</ul>
<h3>4. 多轮复用（<code>/v1/chat/completions</code>）</h3>
<blockquote>
<p dir="auto"><strong>结果：</strong> 第二轮起 TTFT <code>124.43 秒 → 5.72 秒</code>（<code>21.8×</code>），<code>97.3%</code> 的 prompt 被复用</p>
</blockquote>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>轮次</th>
<th>形状</th>
<th>prompt</th>
<th>cached</th>
<th>TTFT</th>
</tr>
</thead>
<tbody>
<tr>
<td>T1</td>
<td>冷启 128K</td>
<td><code>127976</code></td>
<td><code>0</code></td>
<td><code>124.43 秒</code></td>
</tr>
<tr>
<td>T2</td>
<td>真实多轮</td>
<td><code>131041</code></td>
<td><code>127488</code></td>
<td><code>5.72 秒</code></td>
</tr>
<tr>
<td>T3</td>
<td>base + 3K</td>
<td><code>130962</code></td>
<td><code>127488</code></td>
<td><code>5.67 秒</code></td>
</tr>
<tr>
<td>T4</td>
<td>base 截到 120K 再加 3K</td>
<td><code>122996</code></td>
<td><code>119296</code></td>
<td><code>5.73 秒</code></td>
</tr>
<tr>
<td>T5</td>
<td>base 截到 60K</td>
<td><code>63044</code></td>
<td><code>0</code></td>
<td><code>42.83 秒</code></td>
</tr>
<tr>
<td>T6</td>
<td>同 T5</td>
<td><code>63044</code></td>
<td><code>61952</code></td>
<td><code>1.24 秒</code></td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>前提（缺一回落冷启）：</strong></p>
<ol>
<li>走 <code>/v1/chat/completions</code>；裸 <code>/v1/completions</code> 永远冷启</li>
<li>客户端带回完整历史（append 式多轮）</li>
<li>上一轮不能是超 KV 预算的失败请求，否则会话被清空（日志 <code>context full … resetting conversation</code>）</li>
</ol>
<p dir="auto">续跑窗口：checkpoint 每 <code>2048 token</code> 一个、环形保留 <code>8</code> 个，只有上一轮最后约 <code>16K token</code> 可续跑（T5 的分叉点在窗口外，所以冷启）。相关环境变量默认值都已正确，无需设置。测速里常看不到复用，是因为每轮换随机语料，LCP 恒为 <code>7</code>，分叉点远在窗口外，不是引擎没缓存。</p>
<p dir="auto"><img src="https://upload.lcz.me/uploads/d757911d-a76d-43eb-891c-07f29f1fd979.png" alt="chart3-multiturn-ttft.png" class="img-markdown  img-fluid" /></p>
<hr />
<h2>六、注意事项和踩坑</h2>
<h3>1. MTP 臂必须 <code>HIPFIRE_DFLASH_MODE=off</code></h3>
<ul>
<li><code>HIPFIRE_MTP_NGRAM=1</code> 会 HTTP 500</li>
<li><code>HIPFIRE_MTP_K=0</code>、<code>HIPFIRE_DFLASH_MODE=default</code> 是非法值</li>
</ul>
<h3>2. Strata 重启后头两个大请求 client TTFT 多 <code>82 ～ 85 秒</code></h3>
<p dir="auto">引擎 <code>prompt_ms</code> 不含这段，但完全计入客户端 TTFT：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>轮次</th>
<th>client TTFT</th>
<th>引擎 prompt_ms</th>
<th>差</th>
</tr>
</thead>
<tbody>
<tr>
<td>warmup（19 tok）</td>
<td><code>59.52 秒</code></td>
<td><code>0.34 秒</code></td>
<td><code>+59.2 秒</code></td>
</tr>
<tr>
<td>run 1</td>
<td><code>166.91 秒</code></td>
<td><code>82.26 秒</code></td>
<td><code>+84.7 秒</code></td>
</tr>
<tr>
<td>run 2</td>
<td><code>164.68 秒</code></td>
<td><code>82.28 秒</code></td>
<td><code>+82.4 秒</code></td>
</tr>
<tr>
<td>run 3</td>
<td><code>82.39 秒</code></td>
<td><code>82.25 秒</code></td>
<td><code>+0.14 秒</code></td>
</tr>
</tbody>
</table>
<p dir="auto">日志：</p>
<pre><code>strata generate: expert arena read unbuffered (0 of 64 sampled pages in the file cache; 9.3 GiB available, 0.0 GiB still to be taken by the arena, 46.8 GiB of files: the cache cannot keep them)
</code></pre>
<p dir="auto">第 3 轮恢复；并发时 Strata TTFT 为 <code>81.72 / 82.86 / 83.46 秒</code>，说明 27B 的 128K 请求没有把 arena 页缓存冲掉。这是重启的一次性效应，不是并发造成的。换 96/128 GiB 内存可能消除，未验证。</p>
<h3>3. 262K 下 Strata decode 偏低</h3>
<p dir="auto"><code>97.18 tok/s</code>（32K～128K 为 <code>108 ～ 111</code>），推测与 64 GiB 内存下 arena 难以常驻 page cache 有关，未做对照验证。</p>
<h3>4. 测速期间不要在机器上编译、下载、解压</h3>
<p dir="auto">大文件写入会污染 prefill。</p>
<hr />
<h2>七、未做到 / 不确定</h2>
<ol>
<li>§五 之 3 的真并发重叠窗口只有约 <code>2 分 15 秒</code>，且 solo 基线来自不同批次；要更硬的数据需跑更长的交替配对</li>
<li>27B 32K prefill 低 <code>7 ～ 8%</code> 的机理是推测</li>
<li>六档 decode 的并发趋势在噪声内，不作结论</li>
<li>27B 用的是 Python 模板合成语料。纯代码生成场景（DFlash 对重复度高的文本收益更大）请用真实 prompt 复测</li>
<li>82 秒冷启惩罚未在更大内存机器上验证；PCIe x8 与 x16 的差别未实测</li>
<li>只测速度，未评估输出质量</li>
</ol>
<hr />
<p dir="auto"><em>测试日期 Ω2026-11-21。所有数字都是这台电脑上实际跑出来的。原始数据（各阶段 JSON、引擎日志）都留着，需要可以提供。</em></p>
]]></description><link>https://lcz.me/topic/3247</link><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 03:12:00 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/3247.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 21 Nov 2026 10:58:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 【实测】2×RX 7900 XTX 24GB：Strata（Qwen3.8-Flash-Next IQ3_S）与 Qwen3.8-27B（hipfire MTP）分卡并行，两端同时满载 on Sun, 22 Nov 2026 10:41:36 GMT]]></title><description><![CDATA[<p dir="auto">相当不错的数据，Strata的并发本质上还是聪明的队列机制，它不是真并发，实时性要求不高的话，单卡能开1个长会话，2个短会话就很有生产力了。双卡显存大，但是没内存也不行，这个模型权重很大。你的问题应该是内存容量还是小了，双卡优势发挥不出来。</p>
]]></description><link>https://lcz.me/post/35226</link><guid isPermaLink="true">https://lcz.me/post/35226</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Sun, 22 Nov 2026 10:41:36 GMT</pubDate></item><item><title><![CDATA[Reply to 【实测】2×RX 7900 XTX 24GB：Strata（Qwen3.8-Flash-Next IQ3_S）与 Qwen3.8-27B（hipfire MTP）分卡并行，两端同时满载 on Sun, 22 Nov 2026 10:38:47 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /> 版主审定：本帖设为<strong>优秀</strong>，作者 <strong>+3 积分</strong>奖励，继续加油！</p>
<blockquote>
<p dir="auto">奖励凭证：优秀 +3 分 · 编号 e3247-1885-1</p>
</blockquote>
]]></description><link>https://lcz.me/post/35225</link><guid isPermaLink="true">https://lcz.me/post/35225</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Sun, 22 Nov 2026 10:38:47 GMT</pubDate></item><item><title><![CDATA[Reply to 【实测】2×RX 7900 XTX 24GB：Strata（Qwen3.8-Flash-Next IQ3_S）与 Qwen3.8-27B（hipfire MTP）分卡并行，两端同时满载 on Sun, 22 Nov 2026 07:06:29 GMT]]></title><description><![CDATA[<p dir="auto">我对你的Ashan双子座这个app很感兴趣，能来源吗？哈哈</p>
]]></description><link>https://lcz.me/post/35184</link><guid isPermaLink="true">https://lcz.me/post/35184</guid><dc:creator><![CDATA[fantasy2026]]></dc:creator><pubDate>Sun, 22 Nov 2026 07:06:29 GMT</pubDate></item></channel></rss>