<?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[双 3090 NVLink 从vLLM 换到 SGLang 跑 Qwen3.8-27B:实测 108 t/s,262K 上下文全开]]></title><description><![CDATA[<p dir="auto">双 3090 NVLink 从 vLLM 换到 SGLang 跑 Qwen3.8-27B：实测 108 t/s，262K 上下文全开</p>
<p dir="auto">之前在论坛发过一篇双 3090 跑 Qwen3.6 的帖子（vLLM 世代，p50 大概 61 t/s）。板主说要我试试看sglang , 之前试了一直没成功。 今天花了一些时间，这几个月把整套东西迁到了 SGLang，顺便换上了 Qwen3.8-27B 的 AWQ 去审查版，速度翻了一截，踩了一堆坑，整理出来给大家参考，也请各位大神帮忙看看还有什么优化空间。</p>
<h2>一句话结论</h2>
<p dir="auto"><strong>双 3090 + NVLink + SGLang 0.5.18 + Qwen3.8-27B AWQ W4A16 + EAGLE 投机解码，常规对话 88 t/s，中文散文 178 t/s，accept rate 0.95，262K 上下文全开无压力。比之前 vLLM + Qwen3.6 世代快了约 40%。</strong></p>
<h2>硬件配置</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项目</th>
<th>内容</th>
</tr>
</thead>
<tbody>
<tr>
<td>GPU</td>
<td>2× RTX 3090 24GB（NVLink 4-link，56.25 GB/s/方向）</td>
</tr>
<tr>
<td>CPU / RAM</td>
<td>Core Ultra 285K / 64GB DDR5</td>
</tr>
<tr>
<td>系统</td>
<td>Ubuntu 26.04，CUDA 13</td>
</tr>
<tr>
<td>引擎</td>
<td>SGLang 0.5.18（pip editable）</td>
</tr>
<tr>
<td>模型</td>
<td>twolven/Qwen3.8-27B-abliterated-AWQ-MTP（18.7GB + MTP head 849MB）</td>
</tr>
</tbody>
</table>
<h2>为什么从 vLLM 换到 SGLang</h2>
<p dir="auto">三个原因：</p>
<ol>
<li><strong>Radix cache</strong>：多轮对话的前缀复用，第二轮起 prefill 基本免费</li>
<li><strong>EAGLE 投机解码整合度</strong>：Qwen3.8 的 MTP head 直接用 EAGLE 跑，accept rate 实测 0.95（accept len 3.85，接近官方 DFlash2 验证水平）</li>
<li><strong>官方 Cookbook</strong>：SGLang 官方文档现在有 Qwen3.8-27B 专属部署指南（<a href="http://docs.sglang.io/cookbook/autoregressive/Qwen/Qwen3.8-27B%EF%BC%89%EF%BC%8C%E7%85%A7%E7%9D%80%E8%B0%83%E5%B0%B1%E8%A1%8C" rel="nofollow ugc">docs.sglang.io/cookbook/autoregressive/Qwen/Qwen3.8-27B），照着调就行</a></li>
</ol>
<h2>现役启动参数（可直接抄）</h2>
<pre><code class="language-bash">python3 -m sglang.launch_server \
  --model-path /path/to/twolven-Qwen3.8-27B-abliterated-AWQ-MTP \
  --served-model-name qwen3.8-27b \
  --tp-size 2 \
  --trust-remote-code \
  --mem-fraction-static 0.94 \
  --kv-cache-dtype fp8_e5m2 \
  --chunked-prefill-size 2048 \
  --max-prefill-tokens 8192 \
  --max-running-requests 2 \
  --enable-cache-report \
  --mamba-track-interval 2048 \
  --speculative-algorithm EAGLE \
  --speculative-num-steps 3 \
  --speculative-eagle-topk 1 \
  --speculative-num-draft-tokens 4 \
  --reasoning-parser qwen3 \
  --tool-call-parser qwen3_coder
</code></pre>
<p dir="auto">几个关键点：</p>
<ul>
<li><strong>EAGLE 3/1/4</strong> 是官方 Cookbook 的 MTP 推荐配方（NEXTN 就是 EAGLE 的 alias，同一个算法）</li>
<li><code>--kv-cache-dtype fp8_e5m2</code> 只压 KV cache，不碰权重——3090 是 Ampere 架构，<strong>没有原生 FP8 硬件</strong>，FP8 权重量化在 30 系上是假命题（白皮书里 GA102 Tensor Core 只有 FP16/BF16/TF32/INT8/INT4）</li>
<li>权重走 <strong>AWQ W4A16 group128</strong>，单用户解码是带宽瓶颈，W4 读一半字节 = 2 倍速，AWQ 还保护 1% 关键权重</li>
</ul>
<h2>实测数据（附测法）</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>场景</th>
<th>速度</th>
<th>测法</th>
</tr>
</thead>
<tbody>
<tr>
<td>常规对话（游记创作）</td>
<td><strong>88 t/s</strong></td>
<td>600 tokens 输出计时，3 次取中位</td>
</tr>
<tr>
<td>中文散文</td>
<td><strong>178 t/s</strong></td>
<td>2048 tokens 输出</td>
</tr>
<tr>
<td>工具调用</td>
<td><strong>3.2–4.2s 完整轮</strong></td>
<td>带 tool schema 的完整往返</td>
</tr>
<tr>
<td>多轮 radix 命中</td>
<td>第二轮 2.77s</td>
<td>同前缀第二轮含 300 tokens 输出</td>
</tr>
<tr>
<td>思考档 medium</td>
<td>6.1 ms/tok</td>
<td>reasoning_effort 三档实测，medium 是甜点</td>
</tr>
</tbody>
</table>
<h2>踩过的坑（省你几天时间）</h2>
<ol>
<li><strong>模板坑</strong>：上游模型的 chat template 有工具调用陷阱（静默丢 tool 定义），换 froggeric/Qwen-Fixed-Chat-Templates 的 v22.4 解决</li>
<li><strong>parser 必设</strong>：<code>--reasoning-parser qwen3 --tool-call-parser qwen3_coder</code> 不设的话 thinking 标签会污染输出</li>
<li><strong>MTP head 必须与主权重同源</strong>：试过一个 obliterated 版（借了别的 abliterated 模型的 MTP head），EAGLE accept 直接崩，速度掉到 47 t/s——比不开投机还慢</li>
<li><strong>HiCache 别乱开</strong>：单 agent 场景 L2 命中≈0，开着输出速度砍半（论坛里也有同测）；多 agent 共享前缀的生产线再考虑</li>
<li><strong>模型切换走 systemd</strong>：SSH 后台启动的进程断线会被 SIGHUP 干掉</li>
<li><strong>30 系别折腾 FP8/NVFP4</strong>：都是给 Hopper/Blackwell 的<strong>bolded text</strong></li>
</ol>
<h2>现在的问题，想请大神指点</h2>
<ol>
<li>mamba 系参数（<code>mamba-full-memory-ratio</code> 等）在 TP=2 双卡下的最佳值，官方 calculator 是单卡口径，双卡怎么算？</li>
<li>HiCache 在「多 agent 并发」场景的实测，谁跑过？命中率和速度折损大概什么量级？</li>
<li>还有没有比 EAGLE K=3 更好的投机解码配置？</li>
</ol>
<p dir="auto">数据都附了测法，欢迎复现打脸。配置有任何问题也请直接说，谢谢各位。</p>
]]></description><link>https://lcz.me/topic/1366</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 22:53:40 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/1366.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 Aug 2026 14:54:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 双 3090 NVLink 从vLLM 换到 SGLang 跑 Qwen3.8-27B:实测 108 t/s,262K 上下文全开 on Sat, 05 Sep 2026 10:59:39 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> 没错 感谢建议 实装后 目前主力是DFlash2 在另一篇贴文内 就不转过来了 感谢推荐</p>
]]></description><link>https://lcz.me/post/16024</link><guid isPermaLink="true">https://lcz.me/post/16024</guid><dc:creator><![CDATA[starryskyknight]]></dc:creator><pubDate>Sat, 05 Sep 2026 10:59:39 GMT</pubDate></item><item><title><![CDATA[Reply to 双 3090 NVLink 从vLLM 换到 SGLang 跑 Qwen3.8-27B:实测 108 t/s,262K 上下文全开 on Sat, 05 Sep 2026 09:53:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/starryskyknight" aria-label="Profile: starryskyknight">@<bdi>starryskyknight</bdi></a> DFlash或者DSpark会更有前途，因为工作原理有差距，它草稿模型先工作，主模型验证，这样很多时候连显卡风扇都不转。</p>
]]></description><link>https://lcz.me/post/16014</link><guid isPermaLink="true">https://lcz.me/post/16014</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Sat, 05 Sep 2026 09:53:13 GMT</pubDate></item><item><title><![CDATA[Reply to 双 3090 NVLink 从vLLM 换到 SGLang 跑 Qwen3.8-27B:实测 108 t/s,262K 上下文全开 on Fri, 04 Sep 2026 18:24:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/leon-y" aria-label="Profile: Leon-Y">@<bdi>Leon-Y</bdi></a> 感谢分享!同为双 3090 NVLink,你的 260W 功率墙下 MTP 单路 162-168 t/s 已经很猛了。我们刚从 MTP 换到 DFLASH2,用同口径数据做个对照:</p>
<p dir="auto"><strong>唯一干净的同口径(单路端到端):</strong></p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>场景</th>
<th>你的(SGLang 0.5.18 + MTP)</th>
<th>我们的(dev507 + DFLASH2)</th>
</tr>
</thead>
<tbody>
<tr>
<td>中文散文</td>
<td>77-85 t/s</td>
<td>85.4 t/s</td>
</tr>
</tbody>
</table>
<p dir="auto">中文散文我们只赢 5-10%——中文可预测性低是共同天花板,DFLASH2 在这类场景优势不大,这和你的观察一致。</p>
<p dir="auto"><strong>高可预测场景(口径不同,仅供参考):</strong></p>
<ul>
<li>你:数字计数单路 decode 162-168 / JSON 168 / Python 130</li>
<li>我们:JSON 并发 280.5(峰 303.7)/ Python 并发 254 / 短 prompt 单路 297.3</li>
</ul>
<p dir="auto">我们没测「数字计数单路 decode」这个口径,不能直接比。但 DFLASH2 一次接受的 token 数(代码场景平均 6.69)比 MTP 3 token 高一倍多,越可预测的场景差距越大。</p>
<p dir="auto"><strong>三个差异点:</strong></p>
<ol>
<li>引擎代差:dev507 是 dev 分支,比 0.5.18 稳定版多了 DFLASH2 等一大票新特性</li>
<li>你的 260W 甜点(260→162 vs 300→170 只差 5%)很有价值,涡轮卡控温控噪刚需</li>
<li>我们没功率限制,满血跑</li>
</ol>
<p dir="auto">欢迎来 1502 帖子交流,那边有我们 DFLASH2 完整部署踩坑记录,以及「DFLASH 牺牲视觉」的实测辟谣(视觉任务思考开/关的 A/B 数据都有)。</p>
]]></description><link>https://lcz.me/post/15894</link><guid isPermaLink="true">https://lcz.me/post/15894</guid><dc:creator><![CDATA[starryskyknight]]></dc:creator><pubDate>Fri, 04 Sep 2026 18:24:23 GMT</pubDate></item><item><title><![CDATA[Reply to 双 3090 NVLink 从vLLM 换到 SGLang 跑 Qwen3.8-27B:实测 108 t/s,262K 上下文全开 on Fri, 04 Sep 2026 13:23:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/starryskyknight" aria-label="Profile: starryskyknight">@<bdi>starryskyknight</bdi></a><br />
我这边 162 是单路口径，而且单路下测出来跨度很大：</p>
<p dir="auto">内容	单路解码<br />
数字计数（高可预测）	~162-168 t/s<br />
JSON/结构化	~168 t/s<br />
Python 代码	~130 t/s<br />
英文/中英混合	~98-102 t/s<br />
中文散文（典型）	~77-85 t/s</p>
]]></description><link>https://lcz.me/post/15856</link><guid isPermaLink="true">https://lcz.me/post/15856</guid><dc:creator><![CDATA[Leon Y]]></dc:creator><pubDate>Fri, 04 Sep 2026 13:23:17 GMT</pubDate></item><item><title><![CDATA[Reply to 双 3090 NVLink 从vLLM 换到 SGLang 跑 Qwen3.8-27B:实测 108 t/s,262K 上下文全开 on Thu, 03 Sep 2026 15:46:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/leon-y" aria-label="Profile: Leon-Y">@<bdi>Leon-Y</bdi></a>  感谢同配置实测，260W 甜点的数据很有参考价值！涡轮卡起飞噪音我也深受其害，回头照你的区间测一下 245-260W。</p>
<p dir="auto">顺便更新我这边的最新状态（9/1 实测，SGLang main + zlab DFLASH2 draft）：</p>
<ul>
<li>单路端到端（2500 token 长输出含 prefill）：82-84 t/s</li>
<li>双路并发 aggregate：151 t/s，峰值 161</li>
</ul>
<p dir="auto">之前帖子里说的 108/133 都是并发口径，单路口径一直就是这个数。DFLASH2 相比 EAGLE 的提升在并发场景更明显（+40% 左右）。</p>
<p dir="auto">另外这两天 SGLang main 更新比较勤，我做了 A/B 对比（8/29 版 vs 9/1 版），性能一致无 regression，可以放心 pull。</p>
<p dir="auto">你那边 162/150 是单路还是并发口径？想对齐一下数据。</p>
]]></description><link>https://lcz.me/post/15716</link><guid isPermaLink="true">https://lcz.me/post/15716</guid><dc:creator><![CDATA[starryskyknight]]></dc:creator><pubDate>Thu, 03 Sep 2026 15:46:20 GMT</pubDate></item><item><title><![CDATA[Reply to 双 3090 NVLink 从vLLM 换到 SGLang 跑 Qwen3.8-27B:实测 108 t/s,262K 上下文全开 on Thu, 03 Sep 2026 00:30:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stxpnet" aria-label="Profile: stxpnet">@<bdi>stxpnet</bdi></a><br />
CPU：i7-9700<br />
板：技嘉 Z370XP SLI（双卡 PCIe x8/x8）<br />
卡：2× 华硕 Turbo RTX 3090 24G + NVLink<br />
内存：64G DDR4</p>
]]></description><link>https://lcz.me/post/15552</link><guid isPermaLink="true">https://lcz.me/post/15552</guid><dc:creator><![CDATA[Leon Y]]></dc:creator><pubDate>Thu, 03 Sep 2026 00:30:48 GMT</pubDate></item><item><title><![CDATA[Reply to 双 3090 NVLink 从vLLM 换到 SGLang 跑 Qwen3.8-27B:实测 108 t/s,262K 上下文全开 on Wed, 02 Sep 2026 15:06:58 GMT]]></title><description><![CDATA[<p dir="auto">华南金牌 X10X99-8D,  E5-2686 v4</p>
<p dir="auto">h12d-8d, epyc7452 刚到 这个周末希望能成功用上</p>
<p dir="auto">显卡也刚回来 寄回去卖家测试没问题结果又回来了<br />
卖家说他们手上没有nvlink 也没有3090 库存<br />
nvlink 测试不了 所以nvlink 是彻底翻车了</p>
<p dir="auto">所以我就顺便买了h12d-8d 希望两张卡不用跨cpu 速度快点</p>
]]></description><link>https://lcz.me/post/15525</link><guid isPermaLink="true">https://lcz.me/post/15525</guid><dc:creator><![CDATA[applejuice]]></dc:creator><pubDate>Wed, 02 Sep 2026 15:06:58 GMT</pubDate></item><item><title><![CDATA[Reply to 双 3090 NVLink 从vLLM 换到 SGLang 跑 Qwen3.8-27B:实测 108 t/s,262K 上下文全开 on Wed, 02 Sep 2026 14:53:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/leon-y" aria-label="Profile: Leon-Y">@<bdi>Leon-Y</bdi></a> 二位的主板和CPU是什么样的呢？  <a class="plugin-mentions-user plugin-mentions-a" href="/user/applejuice" aria-label="Profile: applejuice">@<bdi>applejuice</bdi></a></p>
]]></description><link>https://lcz.me/post/15524</link><guid isPermaLink="true">https://lcz.me/post/15524</guid><dc:creator><![CDATA[stxpnet]]></dc:creator><pubDate>Wed, 02 Sep 2026 14:53:55 GMT</pubDate></item><item><title><![CDATA[Reply to 双 3090 NVLink 从vLLM 换到 SGLang 跑 Qwen3.8-27B:实测 108 t/s,262K 上下文全开 on Sun, 30 Aug 2026 04:24:53 GMT]]></title><description><![CDATA[<p dir="auto">对，250W在～150左右<br />
设功率墙只要是涡轮卡太吵了</p>
]]></description><link>https://lcz.me/post/14890</link><guid isPermaLink="true">https://lcz.me/post/14890</guid><dc:creator><![CDATA[Leon Y]]></dc:creator><pubDate>Sun, 30 Aug 2026 04:24:53 GMT</pubDate></item><item><title><![CDATA[Reply to 双 3090 NVLink 从vLLM 换到 SGLang 跑 Qwen3.8-27B:实测 108 t/s,262K 上下文全开 on Sun, 30 Aug 2026 04:11:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/leon-y" aria-label="Profile: Leon-Y">@<bdi>Leon-Y</bdi></a> 测一测 245-250 可能有150+- t/s</p>
]]></description><link>https://lcz.me/post/14887</link><guid isPermaLink="true">https://lcz.me/post/14887</guid><dc:creator><![CDATA[applejuice]]></dc:creator><pubDate>Sun, 30 Aug 2026 04:11:39 GMT</pubDate></item><item><title><![CDATA[Reply to 双 3090 NVLink 从vLLM 换到 SGLang 跑 Qwen3.8-27B:实测 108 t/s,262K 上下文全开 on Sun, 30 Aug 2026 04:02:36 GMT]]></title><description><![CDATA[<p dir="auto">感谢分享，同双 3090 NVLink 4-link + SGLang 0.5.18，果断换去了AWQ。我同时测了 shawnw3i/Qwen3.8-27B-AWQ-MTP（标准）和 twolven/...-abliterated-AWQ-MTP（去审查）：<br />
实测对比（正确的 token 口径）</p>
<p dir="auto"><img src="https://upload.lcz.me/uploads/fe428479-588a-4f62-a063-561e5905429f.jpeg" alt="1e3fd906-67b6-42d6-a776-64a1dee6a5e2-image.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">另外加一点：功率墙有甜点。 我的机器有功率限制，扫了一遍：180W→62 t/s、220W→116、260W→162、300W→170。260W 是甜点（往上只 +5%，往下掉 28%）。如果楼主那台想控温/控电，可以试 260W，几乎不掉速。</p>
]]></description><link>https://lcz.me/post/14883</link><guid isPermaLink="true">https://lcz.me/post/14883</guid><dc:creator><![CDATA[Leon Y]]></dc:creator><pubDate>Sun, 30 Aug 2026 04:02:36 GMT</pubDate></item><item><title><![CDATA[Reply to 双 3090 NVLink 从vLLM 换到 SGLang 跑 Qwen3.8-27B:实测 108 t/s,262K 上下文全开 on Thu, 27 Aug 2026 17:34:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/neo" aria-label="Profile: neo">@<bdi>neo</bdi></a> 感谢大神指正！实测采纳了您的建议：max_mamba_cache_size 钉到 10（=2×5），mamba 池从 32 slots 降到 10（省 1.55GB/卡），KV 池 415K→518K tokens，health 正常。官方公式和您的说法完全一致，下次多 agent 并发再按 max-running-requests 反推。学习了！</p>
]]></description><link>https://lcz.me/post/14460</link><guid isPermaLink="true">https://lcz.me/post/14460</guid><dc:creator><![CDATA[starryskyknight]]></dc:creator><pubDate>Thu, 27 Aug 2026 17:34:35 GMT</pubDate></item><item><title><![CDATA[Reply to 双 3090 NVLink 从vLLM 换到 SGLang 跑 Qwen3.8-27B:实测 108 t/s,262K 上下文全开 on Thu, 27 Aug 2026 16:22:51 GMT]]></title><description><![CDATA[<p dir="auto">精彩的分享<br />
mamba-full-memory-ratio 官方默认为0.9，对于个人使用非常浪费显存。<br />
最佳值需要根据mem-fraction-static和max-running-requests的值结合日志来看。<br />
比如你需要：<br />
max-running-requests = 4 ，那么你需要的max_mamba_cache_size应该为：4<em>4=16 (extra_buffer_lazy的情况下)<br />
接下来查看启动日志：<br />
max_mamba_cache_size是否为16<br />
大于16就调小，比如0.35，小了就调大，直到这个值为16就是最佳值<br />
如果没有开启extra_buffer_lazy的情况，这个值应该是4</em>5=20，这个看自己选择了。</p>
<p dir="auto"><img src="https://upload.lcz.me/uploads/36fb44a3-3f72-4d26-bde7-a2a47d78fbae.jpeg" alt="3a56e3aa-b792-4934-bc09-43060b4b7de9-image.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">另外<br />
MTP+HiCache 目前确实性能冲突，推理速度腰斩是可能的。<br />
只是开启HiCache的情况下，我的测试中推理速度影响为5%左右。<br />
在内存配置为kv缓存1.5倍以上时，多会话能大幅减少prefill，减少首字吐字延迟。<br />
如果配置了NVME，重启sglang可以完美命中之前会话的kv缓存。</p>
]]></description><link>https://lcz.me/post/14452</link><guid isPermaLink="true">https://lcz.me/post/14452</guid><dc:creator><![CDATA[neo]]></dc:creator><pubDate>Thu, 27 Aug 2026 16:22:51 GMT</pubDate></item><item><title><![CDATA[Reply to 双 3090 NVLink 从vLLM 换到 SGLang 跑 Qwen3.8-27B:实测 108 t/s,262K 上下文全开 on Thu, 27 Aug 2026 16:12:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/starryskyknight" aria-label="Profile: starryskyknight">@<bdi>starryskyknight</bdi></a> 三个问题分开说，都是能直接上手验证的：</p>
<p dir="auto"><strong>1. mamba 参数在 TP=2 下怎么算</strong></p>
<p dir="auto"><code>--mamba-full-memory-ratio</code>（默认 0.2）是给 mamba state 池预留的显存比例，不是绝对值。TP=2 时 state 张量按 hidden 维切到两张卡上，每 rank 只存一半——所以官方单卡 calculator 算出的 state 需求，落到每张卡上直接减半，0.2 这个默认值双卡下通常够用甚至偏松。别拍脑袋调：你反正开着 <code>--enable-cache-report</code>，跑一轮长对话看 mamba 段实际占用和有没有 state 淘汰/重建日志——有淘汰就 +0.05，占用离上限很远就降到 0.15，把显存让给 KV。<code>--mamba-track-interval 2048</code> 保持默认就行。</p>
<p dir="auto"><strong>2. HiCache 多 agent 并发</strong></p>
<p dir="auto">机制是三层 KV（GPU→RAM→NVMe），收益完全取决于前缀重叠度：多个 agent 共享同一套 system prompt + 工具 schema + 长文档时前缀命中率高，这正是它设计的场景（TID:1341 单卡 32GB 三层 KV 实测就是这类）；每个 agent 上下文完全独立时 L2/L3 命中≈0，跟你单 agent 的结论一致。量级上注意：262K 满上下文的 KV 是 GB 级，RAM 层换入零点几秒，SSD 层换入秒级——所以多 agent 场景要把热数据钉在 GPU/RAM 层，SSD 只放真冷会话。开 <code>--enable-cache-report</code> 看各层 hit-len 统计，比问谁都准。顺带一句：TID:1329 Ben Lee 那个 HiCache 崩 <code>staged_write_back.cuh</code> 是 kernel 层问题（换 NVFP4 可绕），跟你在 3090 上跑不是一回事，别被吓到。</p>
<p dir="auto"><strong>3. 比 EAGLE K=3 更好的配置</strong></p>
<p dir="auto">你 accept len 3.85 ≈ K=3 的草稿窗口已经打满，瓶颈在窗口长度不在接受率——直接试 <code>--speculative-num-steps 4~5</code> + <code>--speculative-num-draft-tokens 5~6</code>，accept len 还能再涨，预期 +5~15%；每多一步多一次 verify 开销，收益递减，K=5 基本到顶。<code>--speculative-eagle-topk 1</code> 是对的，topk&gt;1 只对采样多样性有意义。DFLASH2 是 DeepSeek 系专属（TID:1340 那台 4090 48G 110 tok/s 就是它），Qwen 走 EAGLE/MTP 就是正解，不用换。另外 88 vs 178 的差距是输出长度摊薄固定开销的正常现象，不是配置问题。</p>
<p dir="auto">一个提醒：<code>--mem-fraction-static 0.94</code> 很激进，<code>--max-running-requests 2</code> 正好压住；以后要多开 agent 记得降到 0.90 左右留余量。</p>
]]></description><link>https://lcz.me/post/14450</link><guid isPermaLink="true">https://lcz.me/post/14450</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Thu, 27 Aug 2026 16:12:56 GMT</pubDate></item></channel></rss>