<?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[湊熱鬧：W7800 48GB 跑 Strata Qwen3.8-Flash-Next：262K 上下文，解码 69–77 tok/s]]></title><description><![CDATA[<blockquote>
<p dir="auto">社区里 7900XTX / RX 7900 系的作业已经很多，我补一张 <strong>Radeon PRO W7800 48GB</strong> 的实测。<br />
方法完全照抄 Strata 官方 repo 里 RTX 5090 / 2×MI50 那两份社区 benchmark（同一个 <code>benchmark.py</code>、同样的合成 prompt、greedy、256 token 上限、每档 3 次取中位数），所以数字可以直接横向比。<br />
这台机器不是测试台，是我们 DSH 编码 agent 每天 24 小时在用的生产机。</p>
</blockquote>
<p dir="auto"><img src="https://upload.lcz.me/uploads/f16f382c-b6e6-46e2-96d0-b1895cd787e7.png" alt="1b3983fa-d024-45cb-b907-820faa058b6b.png" class="img-markdown  img-fluid" /></p>
<h2>一、硬件（一清二楚）</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项目</th>
<th>型号 / 实测值</th>
</tr>
</thead>
<tbody>
<tr>
<td>GPU</td>
<td><strong>AMD Radeon PRO W7800 48GB</strong>（gfx1100，70 CU，PCIe x16，BDF 03:00.0）</td>
</tr>
<tr>
<td>CPU</td>
<td>AMD Ryzen 5 7500F（6 核 12 线程）</td>
</tr>
<tr>
<td>内存</td>
<td>32 GB DDR5（系统报告 30.8 GiB）</td>
</tr>
<tr>
<td>SSD</td>
<td>WD_BLACK SN7100 1TB NVMe（专家表 PLE 与 mmap 专家都放这里）</td>
</tr>
<tr>
<td>主板</td>
<td>ASUS TUF GAMING B850I WIFI NEO</td>
</tr>
<tr>
<td>系统</td>
<td>Ubuntu 24.04.4 LTS，kernel 7.0.0-38-generic</td>
</tr>
</tbody>
</table>
<pre><code>代码文本
</code></pre>
<h2>二、软件与配置</h2>
<ul>
<li>引擎：<strong>Strata 0.1.49.2</strong>（HIP 构建，gfx1100；hipBLASLt 按 gfx1100 调优表）</li>
<li>模型：<strong>Qwen3.8-Flash-Next-GSQ-RCO，IQ3_S 量化</strong>（两个 GGUF 分片）</li>
<li>上下文：<strong>262,144</strong></li>
<li>KV：<strong>int8</strong>，<code>--kv-resident 32768</code>（每层 32K 个 KV 单元常驻显存，其余从内存流式读）</li>
<li>专家：<code>--mmap-experts --resident-cpu-experts</code> + 专家画像预填，expert cache auto → <strong>20,154 槽 / 38.40 GiB 显存</strong>，命中率接近满</li>
<li>投机解码：<strong>MTP（rt draft），<code>--spec 3 --spec-min-p 0.7</code></strong></li>
<li>其他：<code>--pool-workers 5</code>、<code>--vram-reserve-mib 1024</code>、vision 开、<code>parallel 2</code>、temperature 0</li>
</ul>
<p dir="auto">一句话概括这套配置的思路：<strong>48GB 显存把「热点专家 + 32K 常驻 KV」全部吃下，剩下的专家和 PLE 表挂在内存/NVMe，靠画像预填把 PCIe 往返藏起来。</strong> 这就是 48GB 专业卡对比 32GB 消费卡的意义——IQ3_S 这个量化档位不用做任何取舍。</p>
<h2>三、结果（3 次中位数，[min–max]）</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="text-align:right">Prompt</th>
<th style="text-align:right">复用</th>
<th style="text-align:right">Prefill tok/s</th>
<th style="text-align:right">Decode tok/s</th>
<th style="text-align:right">TTFT</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:right">4,096</td>
<td style="text-align:right">0</td>
<td style="text-align:right">1,533 [1,524–1,542]</td>
<td style="text-align:right"><strong>77.1</strong> [75.6–79.0]</td>
<td style="text-align:right">2.7 s</td>
</tr>
<tr>
<td style="text-align:right">32,768</td>
<td style="text-align:right">0</td>
<td style="text-align:right">1,878 [1,876–1,884]</td>
<td style="text-align:right"><strong>73.2</strong> [73.1–74.8]</td>
<td style="text-align:right">17.5 s</td>
</tr>
<tr>
<td style="text-align:right">128,000</td>
<td style="text-align:right">0</td>
<td style="text-align:right">1,814 [1,810–1,817]</td>
<td style="text-align:right"><strong>68.8</strong> [67.0–70.1]</td>
<td style="text-align:right">70.6 s</td>
</tr>
</tbody>
</table>
<p dir="auto">要点：</p>
<ul>
<li><strong>prefill 1.5–1.9K tok/s</strong>：128K 长 prompt 约 70 秒读完。对 agent 工作流来说，一次大上下文重建的代价在一分钟级别，可以接受。</li>
<li><strong>decode 从 77 到 69</strong>：上下文从 4K 涨到 128K，解码只降约 11%——常驻 KV + 画像预填的专家缓存把衰减压平了。</li>
<li>投机解码接受率（引擎自报）：4K 127/158、32K 129/161、128K 117/158，约 <strong>75–80%</strong>。</li>
</ul>
<h2>四、引擎逐字日志 + 大海捞针</h2>
<p dir="auto"><img src="figures/fig3-terminal.png" alt="终端实录" class="img-markdown  img-fluid" /></p>
<p dir="auto"><code>needle_bench</code>（32K / 128K，深度 10% / 50% / 90%）<strong>6/6 全部找到</strong>，128K 最深处 36 秒。262K 上下文不是摆设，是真的能读进去。</p>
<h2>五、为什么是 256K 而不是 384K——两个配置我们都跑过</h2>
<p dir="auto">48GB 装不下全套专家（46.85 GiB），所以 ctx 开多大，本质是 <strong>KV 和专家槽在抢同一块显存</strong>。我们 10 月初把生产开到 393,216（q4_0 KV），跑了两周，10-19 主动切回 262,144（int8 KV + WMMA + PLE 表挂 NVMe）。同一引擎（0.1.45）、同一台机、只改配置的 A/B：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>指标</th>
<th style="text-align:right">384K + q4_0，parallel 2</th>
<th style="text-align:right">256K + int8，parallel 2</th>
<th style="text-align:right">变化</th>
</tr>
</thead>
<tbody>
<tr>
<td>32K prefill</td>
<td style="text-align:right">1,181</td>
<td style="text-align:right"><strong>2,038</strong></td>
<td style="text-align:right"><strong>+73%</strong></td>
</tr>
<tr>
<td>131K prefill</td>
<td style="text-align:right">1,258</td>
<td style="text-align:right"><strong>1,709</strong></td>
<td style="text-align:right"><strong>+36%</strong></td>
</tr>
<tr>
<td>32K decode</td>
<td style="text-align:right">60.5</td>
<td style="text-align:right"><strong>63.4</strong></td>
<td style="text-align:right">+5%</td>
</tr>
<tr>
<td>131K decode</td>
<td style="text-align:right">58.8</td>
<td style="text-align:right">59.1</td>
<td style="text-align:right">持平</td>
</tr>
</tbody>
</table>
<p dir="auto">结论对社区可能反直觉：<strong>在 48GB 的 RDNA3 卡上，把 ctx 从 384K 砍到 256K，prefill 快了七成，decode 还略涨。</strong> 省下来的显存喂给专家缓存和 int8 KV 的 WMMA 快路径，比多出来的 131K 上下文额度值钱得多——agent 工作流里 256K 已经够用，而 prefill 速度是每次上下文重建都要交的税。</p>
<h2>六、诚实边界</h2>
<ul>
<li>单机、单量化档、合成 prompt，只说明这套配置下的速度，不代表答案质量，也不代表其他负载。</li>
<li><strong>污染披露</strong>：第一轮 4K 有 2 次 run 解码只有 ~36 tok/s——当时我们自己的 DSH agent 正在同一引擎上干活（<code>parallel 2</code> 共享）。这两次已剔除，表中 4K 用的是补跑的干净数据（另 1 次 cache 命中导致 prefill 作废，也剔除）。跑分期间引擎不是独占的，这点社区报告里没人写，我写出来。</li>
<li>对比参考（同一方法、别人公开的机器）：RTX 5090 32GB IQ2_XS 解码 179/176/165；2×MI50 16GB IQ1_M 解码 50/48/46。量化档不同，只当量级参照。</li>
</ul>
<h2>七、复现要点</h2>
<pre><code class="language-bash"># 服务端（Strata repo 内）
./build-hip-0148/strata --pack packs/iq3_s \
  --native &lt;IQ3_S shard1&gt; --ple-gguf &lt;IQ3_S shard2&gt; \
  --mmap-experts --resident-cpu-experts --expert-profile data/expert-profile.bin \
  --expert-cache auto --prefill auto \
  --spec 3 --spec-min-p 0.7 --mtp mtp/rt \
  --max-context 262144 --kv int8 --kv-resident 32768 \
  --pool-workers 5 --vram-reserve-mib 1024 --vision \
  --rope-scaling yarn --rope-scale 1.5

# 客户端：社区同款 benchmark.py（nonce 前置防 cache 复用）
python3 benchmark.py --targets 4096,32768,128000 --runs 3
</code></pre>
<blockquote>
<p dir="auto">社区里 7900XTX / RX 7900 系的作业已经很多，我补一张 <strong>Radeon PRO W7800 48GB</strong> 的实测。<br />
方法完全照抄 Strata 官方 repo 里 RTX 5090 / 2×MI50 那两份社区 benchmark（同一个 <code>benchmark.py</code>、同样的合成 prompt、greedy、256 token 上限、每档 3 次取中位数），所以数字可以直接横向比。<br />
这台机器不是测试台，是我们 DSH 编码 agent 每天 24 小时在用的生产机。</p>
</blockquote>
<p dir="auto"><img src="https://upload.lcz.me/uploads/00211cc6-af61-4b90-89f0-d3cc4e5002e5.png" alt="fcfc4c03-ae1b-413d-a8a7-43718ab79264.png" class="img-markdown  img-fluid" /></p>
<h2>一、硬件（一清二楚）</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项目</th>
<th>型号 / 实测值</th>
</tr>
</thead>
<tbody>
<tr>
<td>GPU</td>
<td><strong>AMD Radeon PRO W7800 48GB</strong>（gfx1100，70 CU，PCIe x16，BDF 03:00.0）</td>
</tr>
<tr>
<td>CPU</td>
<td>AMD Ryzen 5 7500F（6 核 12 线程）</td>
</tr>
<tr>
<td>内存</td>
<td>32 GB DDR5（系统报告 30.8 GiB）</td>
</tr>
<tr>
<td>SSD</td>
<td>WD_BLACK SN7100 1TB NVMe（专家表 PLE 与 mmap 专家都放这里）</td>
</tr>
<tr>
<td>主板</td>
<td>ASUS TUF GAMING B850I WIFI NEO</td>
</tr>
<tr>
<td>系统</td>
<td>Ubuntu 24.04.4 LTS，kernel 7.0.0-38-generic</td>
</tr>
</tbody>
</table>
<pre><code>代码文本
</code></pre>
<h2>二、软件与配置</h2>
<ul>
<li>引擎：<strong>Strata 0.1.49.2</strong>（HIP 构建，gfx1100；hipBLASLt 按 gfx1100 调优表）</li>
<li>模型：<strong>Qwen3.8-Flash-Next-GSQ-RCO，IQ3_S 量化</strong>（两个 GGUF 分片）</li>
<li>上下文：<strong>262,144</strong></li>
<li>KV：<strong>int8</strong>，<code>--kv-resident 32768</code>（每层 32K 个 KV 单元常驻显存，其余从内存流式读）</li>
<li>专家：<code>--mmap-experts --resident-cpu-experts</code> + 专家画像预填，expert cache auto → <strong>20,154 槽 / 38.40 GiB 显存</strong>，命中率接近满</li>
<li>投机解码：<strong>MTP（rt draft），<code>--spec 3 --spec-min-p 0.7</code></strong></li>
<li>其他：<code>--pool-workers 5</code>、<code>--vram-reserve-mib 1024</code>、vision 开、<code>parallel 2</code>、temperature 0</li>
</ul>
<p dir="auto">一句话概括这套配置的思路：<strong>48GB 显存把「热点专家 + 32K 常驻 KV」全部吃下，剩下的专家和 PLE 表挂在内存/NVMe，靠画像预填把 PCIe 往返藏起来。</strong> 这就是 48GB 专业卡对比 32GB 消费卡的意义——IQ3_S 这个量化档位不用做任何取舍。</p>
<h2>三、结果（3 次中位数，[min–max]）</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="text-align:right">Prompt</th>
<th style="text-align:right">复用</th>
<th style="text-align:right">Prefill tok/s</th>
<th style="text-align:right">Decode tok/s</th>
<th style="text-align:right">TTFT</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:right">4,096</td>
<td style="text-align:right">0</td>
<td style="text-align:right">1,533 [1,524–1,542]</td>
<td style="text-align:right"><strong>77.1</strong> [75.6–79.0]</td>
<td style="text-align:right">2.7 s</td>
</tr>
<tr>
<td style="text-align:right">32,768</td>
<td style="text-align:right">0</td>
<td style="text-align:right">1,878 [1,876–1,884]</td>
<td style="text-align:right"><strong>73.2</strong> [73.1–74.8]</td>
<td style="text-align:right">17.5 s</td>
</tr>
<tr>
<td style="text-align:right">128,000</td>
<td style="text-align:right">0</td>
<td style="text-align:right">1,814 [1,810–1,817]</td>
<td style="text-align:right"><strong>68.8</strong> [67.0–70.1]</td>
<td style="text-align:right">70.6 s</td>
</tr>
</tbody>
</table>
<p dir="auto">要点：</p>
<ul>
<li><strong>prefill 1.5–1.9K tok/s</strong>：128K 长 prompt 约 70 秒读完。对 agent 工作流来说，一次大上下文重建的代价在一分钟级别，可以接受。</li>
<li><strong>decode 从 77 到 69</strong>：上下文从 4K 涨到 128K，解码只降约 11%——常驻 KV + 画像预填的专家缓存把衰减压平了。</li>
<li>投机解码接受率（引擎自报）：4K 127/158、32K 129/161、128K 117/158，约 <strong>75–80%</strong>。</li>
</ul>
<h2>四、引擎逐字日志 + 大海捞针</h2>
<p dir="auto"><code>needle_bench</code>（32K / 128K，深度 10% / 50% / 90%）<strong>6/6 全部找到</strong>，128K 最深处 36 秒。262K 上下文不是摆设，是真的能读进去。</p>
<h2>五、为什么是 256K 而不是 384K——两个配置我们都跑过</h2>
<p dir="auto">48GB 装不下全套专家（46.85 GiB），所以 ctx 开多大，本质是 <strong>KV 和专家槽在抢同一块显存</strong>。我们 10 月初把生产开到 393,216（q4_0 KV），跑了两周，10-19 主动切回 262,144（int8 KV + WMMA + PLE 表挂 NVMe）。同一引擎（0.1.45）、同一台机、只改配置的 A/B：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>指标</th>
<th style="text-align:right">384K + q4_0，parallel 2</th>
<th style="text-align:right">256K + int8，parallel 2</th>
<th style="text-align:right">变化</th>
</tr>
</thead>
<tbody>
<tr>
<td>32K prefill</td>
<td style="text-align:right">1,181</td>
<td style="text-align:right"><strong>2,038</strong></td>
<td style="text-align:right"><strong>+73%</strong></td>
</tr>
<tr>
<td>131K prefill</td>
<td style="text-align:right">1,258</td>
<td style="text-align:right"><strong>1,709</strong></td>
<td style="text-align:right"><strong>+36%</strong></td>
</tr>
<tr>
<td>32K decode</td>
<td style="text-align:right">60.5</td>
<td style="text-align:right"><strong>63.4</strong></td>
<td style="text-align:right">+5%</td>
</tr>
<tr>
<td>131K decode</td>
<td style="text-align:right">58.8</td>
<td style="text-align:right">59.1</td>
<td style="text-align:right">持平</td>
</tr>
</tbody>
</table>
<p dir="auto">结论对社区可能反直觉：<strong>在 48GB 的 RDNA3 卡上，把 ctx 从 384K 砍到 256K，prefill 快了七成，decode 还略涨。</strong> 省下来的显存喂给专家缓存和 int8 KV 的 WMMA 快路径，比多出来的 131K 上下文额度值钱得多——agent 工作流里 256K 已经够用，而 prefill 速度是每次上下文重建都要交的税。</p>
<h2>六、诚实边界</h2>
<ul>
<li>单机、单量化档、合成 prompt，只说明这套配置下的速度，不代表答案质量，也不代表其他负载。</li>
<li><strong>污染披露</strong>：第一轮 4K 有 2 次 run 解码只有 ~36 tok/s——当时我们自己的 DSH agent 正在同一引擎上干活（<code>parallel 2</code> 共享）。这两次已剔除，表中 4K 用的是补跑的干净数据（另 1 次 cache 命中导致 prefill 作废，也剔除）。跑分期间引擎不是独占的，这点社区报告里没人写，我写出来。</li>
<li>对比参考（同一方法、别人公开的机器）：RTX 5090 32GB IQ2_XS 解码 179/176/165；2×MI50 16GB IQ1_M 解码 50/48/46。量化档不同，只当量级参照。</li>
</ul>
<h2>七、复现要点</h2>
<pre><code class="language-bash"># 服务端（Strata repo 内）
./build-hip-0148/strata --pack packs/iq3_s \
  --native &lt;IQ3_S shard1&gt; --ple-gguf &lt;IQ3_S shard2&gt; \
  --mmap-experts --resident-cpu-experts --expert-profile data/expert-profile.bin \
  --expert-cache auto --prefill auto \
  --spec 3 --spec-min-p 0.7 --mtp mtp/rt \
  --max-context 262144 --kv int8 --kv-resident 32768 \
  --pool-workers 5 --vram-reserve-mib 1024 --vision \
  --rope-scaling yarn --rope-scale 1.5

# 客户端：社区同款 benchmark.py（nonce 前置防 cache 复用）
python3 benchmark.py --targets 4096,32768,128000 --runs 3
</code></pre>
]]></description><link>https://lcz.me/topic/2606</link><generator>RSS for Node</generator><lastBuildDate>Tue, 24 Nov 2026 09:03:50 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/2606.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 Oct 2026 15:18:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 湊熱鬧：W7800 48GB 跑 Strata Qwen3.8-Flash-Next：262K 上下文，解码 69–77 tok/s on Wed, 28 Oct 2026 04:20:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%E6%87%92%E4%BA%BA%E7%83%98%E5%9F%B9" aria-label="Profile: 懒人烘培">@<bdi>懒人烘培</bdi></a> <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f64f.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--pray" style="height:1.4em;width:auto;vertical-align:middle" title="🙏" alt="🙏" /><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f3fb.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--skin-tone-2" style="height:1.4em;width:auto;vertical-align:middle" title="🏻" alt="🏻" /><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f64f.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--pray" style="height:1.4em;width:auto;vertical-align:middle" title="🙏" alt="🙏" /><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f3fb.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--skin-tone-2" style="height:1.4em;width:auto;vertical-align:middle" title="🏻" alt="🏻" /></p>
]]></description><link>https://lcz.me/post/28602</link><guid isPermaLink="true">https://lcz.me/post/28602</guid><dc:creator><![CDATA[Wing Wah Law]]></dc:creator><pubDate>Wed, 28 Oct 2026 04:20:48 GMT</pubDate></item><item><title><![CDATA[Reply to 湊熱鬧：W7800 48GB 跑 Strata Qwen3.8-Flash-Next：262K 上下文，解码 69–77 tok/s on Wed, 28 Oct 2026 04:19:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> 是我懶了<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f605.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--sweat_smile" style="height:1.4em;width:auto;vertical-align:middle" title="😅" alt="😅" />明天會更好<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f64f.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--pray" style="height:1.4em;width:auto;vertical-align:middle" title="🙏" alt="🙏" /><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f3fb.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--skin-tone-2" style="height:1.4em;width:auto;vertical-align:middle" title="🏻" alt="🏻" /></p>
]]></description><link>https://lcz.me/post/28601</link><guid isPermaLink="true">https://lcz.me/post/28601</guid><dc:creator><![CDATA[Wing Wah Law]]></dc:creator><pubDate>Wed, 28 Oct 2026 04:19:33 GMT</pubDate></item><item><title><![CDATA[Reply to 湊熱鬧：W7800 48GB 跑 Strata Qwen3.8-Flash-Next：262K 上下文，解码 69–77 tok/s on Wed, 28 Oct 2026 02:30:35 GMT]]></title><description><![CDATA[<p dir="auto">又增加了一款显卡的实测数据。</p>
]]></description><link>https://lcz.me/post/28563</link><guid isPermaLink="true">https://lcz.me/post/28563</guid><dc:creator><![CDATA[懒人烘培]]></dc:creator><pubDate>Wed, 28 Oct 2026 02:30:35 GMT</pubDate></item><item><title><![CDATA[Reply to 湊熱鬧：W7800 48GB 跑 Strata Qwen3.8-Flash-Next：262K 上下文，解码 69–77 tok/s on Wed, 28 Oct 2026 01:20:29 GMT]]></title><description><![CDATA[<p dir="auto">图我不知道改的对不对，下次发帖注意，发帖后确认自己的帖子是否可以正常阅读。</p>
]]></description><link>https://lcz.me/post/28533</link><guid isPermaLink="true">https://lcz.me/post/28533</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Wed, 28 Oct 2026 01:20:29 GMT</pubDate></item></channel></rss>