<?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[Inkling 2 Mini 在 H200 & RTX PRO 600D 单卡上的部署与性能（vLLM）]]></title><description><![CDATA[<p dir="auto">跟个潮流，刚测了一下 Inkling 2 Mini。</p>
<p dir="auto">先说明一下：H200 到手有一段时间了，液冷一直没搞定，只能临时拿个风扇吹着，跑不满 600W，勉强到 400W，这事确实挺痛苦。<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f627.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--anguished" style="height:1.4em;width:auto;vertical-align:middle" title=":anguished:" alt="😧" /> 另外 H200 并不支持 FP4，拿它跑这模型其实不太搭，纯粹手痒了。</p>
<p dir="auto">我已经很少折腾 LLM 了，主要是我个人用 395+halogen 就挺够用：256k 上下文 prefill 能到接近 1900 tok/s，命中缓存后 decode 也不慢。</p>
<p dir="auto">看到这新模型据说能力还行，主要是上下文能跑 1M，这点有点意思。</p>
<p dir="auto">目前散热不行只能跑到400W<br />
<img src="https://upload.lcz.me/uploads/6c3b943a-cf14-40e1-bdfa-7ce3bb8aad88.png" alt="4b9ad17a-7dc1-40e2-a99d-6e65b407db28.png" class="img-markdown  img-fluid" /></p>
<blockquote>
<p dir="auto">2026-11-23 · H200 NVL 141GB（SM90 / PCIe Gen5 x16）· vLLM 0.34.0rc1.dev1174（nightly）· TP=1模型：<code>thinkingmachines/Inkling-2-Mini</code>（26B 总参 / 3.5B 激活，NVFP4 专家 20 层 + MXFP8 专家 4 层 + BF16 其余，18.6 GB）</p>
</blockquote>
<h2>一、结论先行</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>指标</th>
<th>数值</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>单请求 decode（数学，DSpark）</td>
<td><strong>519.3 tok/s</strong></td>
<td>裸跑（无投机）153.6</td>
</tr>
<tr>
<td>单请求 decode（代码）</td>
<td>314.5 tok/s</td>
<td>裸 153.6</td>
</tr>
<tr>
<td>单请求 decode（中文问答）</td>
<td>184.4 tok/s</td>
<td>裸 153.6</td>
</tr>
<tr>
<td>Prefill 峰値</td>
<td>18,897 tok/s（32K）</td>
<td>非流式口径</td>
</tr>
<tr>
<td><strong>1M 上下文</strong></td>
<td><strong>1,030,501 tok 输入，404 s，2,550 tok/s</strong></td>
<td>真跑通</td>
</tr>
<tr>
<td>并发饱和吞吐</td>
<td>841 tok/s（C128）</td>
<td>8K 上下文，全成功无崩溃</td>
</tr>
</tbody>
</table>
<p dir="auto">对比同机 Qwen3.8-27B（FP8）：裸 decode 38.9、DFlash2 数学 279、并发饱和 185。<strong>Inkling 2 Mini 在 H200 上 decode 快 1.9–13 倍、并发吞吐 4.5 倍</strong>，原因是 MoE 只激活 3.5B 参数。</p>
<h2>二、能不能跑：踩了三个坑</h2>
<ol>
<li><strong>transformers 版本死结</strong>：<code>inkling2_loop</code> 架构只在 transformers <strong>5.24.0</strong> 里（5.23.0 及以下不认），而 vLLM 0.34.0 锁 <code>transformers&lt;5.23.0</code>。解法 = 用 <strong>vLLM nightly</strong>（<code>0.34.0rc1.dev1174</code>，pin <code>&lt;5.24.0</code>）+ 手动升 transformers 5.24.0。</li>
<li><strong>processor API 变更</strong>：5.24 删了 <code>Inkling2Processor._get_num_multimodal_tokens</code>，vLLM 调用处直接 AttributeError。补丁：<code>vllm/model_executor/models/transformers/multimodal.py</code>第 208 行改成 <code>getattr(processor, "_get_num_multimodal_tokens", None)</code>，缺失时返回估算<code>{"num_image_tokens": [1024]*n}</code>（纯文本场景不影响）。</li>
<li><strong>Triton 编译缺 Python.h</strong>：系统没装 python3.12-dev，启动必须带<code>CPATH=/home/ly/03-Runtimes/01-虚拟环境/py12dev/usr/include/python3.12:.../usr/include</code>，否则 triton 编 <code>cuda_utils</code> 直接 fail。</li>
</ol>
<h2>三、启动命令（可复现）</h2>
<pre><code>V=/home/ly/03-Runtimes/01-虚拟环境/venv-vllm-cuda
export CUDA_VISIBLE_DEVICES=GPU-b32bd5ca-0095-2755-1b91-cd1a29687209
export CPATH="/home/ly/03-Runtimes/01-虚拟环境/py12dev/usr/include/python3.12:/home/ly/03-Runtimes/01-虚拟环境/py12dev/usr/include"
$V/bin/vllm serve /home/ly/01-Models/01-语言模型/Inkling-2-Mini \
  --served-model-name inkling2-mini --host 127.0.0.1 --port 30011 \
  --max-model-len 1048576 \
  --gpu-memory-utilization 0.92 \
  --trust-remote-code \
  --speculative-config '{"method":"dspark","model":"/home/ly/01-Models/01-语言模型/Inkling-2-Mini","num_speculative_tokens":7}'
</code></pre>
<ul>
<li><code>num_speculative_tokens</code> <strong>必须是 7</strong>（checkpoint 的 block_size-1），填 8 直接报<code>Inkling2 DSpark requires num_speculative_tokens = 7</code>。</li>
<li>KV 池：<strong>1,825,193 tokens</strong>，1M 请求最大并发 1.74×（即单卡只能同时跑一个 1M 请求）。</li>
<li>不加 <code>--speculative-config</code> 就是裸跑（153.6 tok/s）。</li>
</ul>
<h2>四、上下文阶梯（非流式 / output 64 / DSpark=7）</h2>
<blockquote>
<p dir="auto">流式测的 TTFT 在 vLLM 上失真（chunked prefill 提前返回首 token，出现 596K token 只要 0.81 s 的假数据），所以改用非流式总耗时。</p>
</blockquote>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Context</th>
<th>实际输入 tok</th>
<th>总耗时 (s)</th>
<th>Prefill tok/s</th>
</tr>
</thead>
<tbody>
<tr>
<td>4K</td>
<td>4,115</td>
<td>0.4</td>
<td>10,450</td>
</tr>
<tr>
<td>8K</td>
<td>8,255</td>
<td>0.5</td>
<td>15,826</td>
</tr>
<tr>
<td>16K</td>
<td>16,461</td>
<td>0.9</td>
<td>18,544</td>
</tr>
<tr>
<td>32K</td>
<td>32,758</td>
<td>1.7</td>
<td><strong>18,897</strong></td>
</tr>
<tr>
<td>64K</td>
<td>65,604</td>
<td>3.9</td>
<td>16,718</td>
</tr>
<tr>
<td>128K</td>
<td>131,384</td>
<td>10.5</td>
<td>12,544</td>
</tr>
<tr>
<td>256K</td>
<td>262,630</td>
<td>32.7</td>
<td>8,025</td>
</tr>
<tr>
<td>512K</td>
<td>525,255</td>
<td>114.5</td>
<td>4,589</td>
</tr>
<tr>
<td>1M</td>
<td>1,030,501</td>
<td>404.1</td>
<td>2,550</td>
</tr>
</tbody>
</table>
<p dir="auto">规格上限 1,048,576；超了直接 400（<code>maximum context length is 1048576 tokens</code>）。</p>
<h2>五、并发扫描（8K 上下文 / output 256）</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>并发</th>
<th>成功</th>
<th>墙钟 (s)</th>
<th>总输出 tok/s</th>
<th>单请求 decode</th>
<th>平均 TTFT (s)</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>1/1</td>
<td>1.9</td>
<td>134</td>
<td>163.4</td>
<td>0.35</td>
</tr>
<tr>
<td>2</td>
<td>2/2</td>
<td>2.2</td>
<td>229</td>
<td>180.9</td>
<td>0.36</td>
</tr>
<tr>
<td>4</td>
<td>4/4</td>
<td>6.1</td>
<td>169</td>
<td>117.1</td>
<td>3.51</td>
</tr>
<tr>
<td>8</td>
<td>8/8</td>
<td>4.0</td>
<td>511</td>
<td>106.5</td>
<td>0.94</td>
</tr>
<tr>
<td>16</td>
<td>16/16</td>
<td>6.6</td>
<td>621</td>
<td>68.1</td>
<td>1.42</td>
</tr>
<tr>
<td>32</td>
<td>32/32</td>
<td>10.1</td>
<td>812</td>
<td>41.3</td>
<td>1.99</td>
</tr>
<tr>
<td>64</td>
<td>64/64</td>
<td>20.0</td>
<td>820</td>
<td>20.1</td>
<td>4.02</td>
</tr>
<tr>
<td>128</td>
<td>128/128</td>
<td>39.0</td>
<td><strong>841</strong></td>
<td>11.0</td>
<td>8.49</td>
</tr>
</tbody>
</table>
<p dir="auto">C4 那档的 169 tok/s 低于 C2（229）是抖动（8 并发时反而 511），C32 之后基本饱和在 820-841。</p>
<h2>六、FP8 量化的账（要不要做）</h2>
<ul>
<li>现在 18.6 GB（NVFP4+MXFP8 混合）→ decode 153.6 裸跑。</li>
<li>重量化到 FP8 W8A8 后约 <strong>26 GB</strong>，每步要多读 ~7 GB →<strong>裸 decode 会变慢</strong>（带宽 ∝ 权重大小），预计掉到 110-130 tok/s。</li>
<li>但 FP8 tensor core 在 H200 上是原生算力，<strong>prefill 可能更快</strong>（现在 prefill 走 bf16 计算）。</li>
<li>结论：<strong>别为了 decode 去量化 FP8</strong>，为了「prefill 提速」或「精度对齐」才值得。官方也没有 FP8 checkpoint（只有 NVFP4/MXFP8 两种）。</li>
<li>如果要试，路线：<code>llmcompressor</code>（FP8_DYNAMIC，ignore lm_head）→ 输出 26 GB 新 checkpoint，校准集用混搭中英文，H200 上约 40-60 分钟。</li>
</ul>
<h2>七、已知问题</h2>
<ul>
<li>5.24 + vLLM nightly 是非官方组合，processor 补丁是必需的；升级 vLLM 后要重打。</li>
<li>流式 TTFT 在长 prompt 下不可信，报 prefill 必须用非流式。</li>
<li>1M 上下文单卡只能跑 1 个并发（KV 池 1.82M token）。</li>
</ul>
]]></description><link>https://lcz.me/topic/3303</link><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 03:30:32 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/3303.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Nov 2026 12:21:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Inkling 2 Mini 在 H200 & RTX PRO 600D 单卡上的部署与性能（vLLM） on Thu, 26 Nov 2026 02:39:26 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> 你是因为这个不买的吗？弟</p>
]]></description><link>https://lcz.me/post/36012</link><guid isPermaLink="true">https://lcz.me/post/36012</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Thu, 26 Nov 2026 02:39:26 GMT</pubDate></item><item><title><![CDATA[Reply to Inkling 2 Mini 在 H200 & RTX PRO 600D 单卡上的部署与性能（vLLM） on Thu, 26 Nov 2026 02:39:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fcys" aria-label="Profile: fcys">@<bdi>fcys</bdi></a> 牛，又可以找时间云视频了。</p>
]]></description><link>https://lcz.me/post/36011</link><guid isPermaLink="true">https://lcz.me/post/36011</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Thu, 26 Nov 2026 02:39:05 GMT</pubDate></item><item><title><![CDATA[Reply to Inkling 2 Mini 在 H200 & RTX PRO 600D 单卡上的部署与性能（vLLM） on Thu, 26 Nov 2026 01:49:13 GMT]]></title><description><![CDATA[<p dir="auto">嗨呀，原来不支持FP4~ 那我就不买了！ <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f639.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--joy_cat" style="height:1.4em;width:auto;vertical-align:middle" title=":joy_cat:" alt="😹" /> <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f639.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--joy_cat" style="height:1.4em;width:auto;vertical-align:middle" title=":joy_cat:" alt="😹" /> <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f639.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--joy_cat" style="height:1.4em;width:auto;vertical-align:middle" title=":joy_cat:" alt="😹" /></p>
]]></description><link>https://lcz.me/post/36008</link><guid isPermaLink="true">https://lcz.me/post/36008</guid><dc:creator><![CDATA[Bunsei]]></dc:creator><pubDate>Thu, 26 Nov 2026 01:49:13 GMT</pubDate></item><item><title><![CDATA[Reply to Inkling 2 Mini 在 H200 & RTX PRO 600D 单卡上的部署与性能（vLLM） on Wed, 25 Nov 2026 16:51:44 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> 我空了测一下吧。<br />
96G确实是要出来了，破解方式被大价格买断了。</p>
<p dir="auto">另外，我把跨NA两家的卡P2P打通了<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f627.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--anguished" style="height:1.4em;width:auto;vertical-align:middle" title=":anguished:" alt="😧" /></p>
]]></description><link>https://lcz.me/post/35985</link><guid isPermaLink="true">https://lcz.me/post/35985</guid><dc:creator><![CDATA[fcys]]></dc:creator><pubDate>Wed, 25 Nov 2026 16:51:44 GMT</pubDate></item><item><title><![CDATA[Reply to Inkling 2 Mini 在 H200 & RTX PRO 600D 单卡上的部署与性能（vLLM） on Wed, 25 Nov 2026 14:17:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fcys" aria-label="Profile: fcys">@<bdi>fcys</bdi></a> 5090 96G不是说谣言吗？我相信6000D还是有潜力的。它84G的显存摆在那里，算力就算和5000持平，绝大多数场景也足够了。但你测下我就好吹牛了。</p>
]]></description><link>https://lcz.me/post/35961</link><guid isPermaLink="true">https://lcz.me/post/35961</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Wed, 25 Nov 2026 14:17:03 GMT</pubDate></item><item><title><![CDATA[Reply to Inkling 2 Mini 在 H200 & RTX PRO 600D 单卡上的部署与性能（vLLM） on Wed, 25 Nov 2026 13:20:48 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> 我没做推理能力对比，这几天光迭代FCCL了，带瓶颈现在已经打破了。</p>
<p dir="auto">为了满足进中国的算力要求，6000D算力阉割还是比较狠的，部分场景估计跟5000差不多的推理能力。不知道后续有没有跟30系40系破解的方式，但目前nv设置的墙特别高。但是也不好说，毕竟5090 96G都搞出来了。</p>
]]></description><link>https://lcz.me/post/35953</link><guid isPermaLink="true">https://lcz.me/post/35953</guid><dc:creator><![CDATA[fcys]]></dc:creator><pubDate>Wed, 25 Nov 2026 13:20:48 GMT</pubDate></item><item><title><![CDATA[Reply to Inkling 2 Mini 在 H200 & RTX PRO 600D 单卡上的部署与性能（vLLM） on Wed, 25 Nov 2026 13:11:17 GMT]]></title><description><![CDATA[<p dir="auto">1，这个模型到底怎么样，对比Qwen。<br />
2，6000D是个稀罕物，阉割的如何，LLM &amp; ComfyUI，我准备云一期。</p>
]]></description><link>https://lcz.me/post/35946</link><guid isPermaLink="true">https://lcz.me/post/35946</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Wed, 25 Nov 2026 13:11:17 GMT</pubDate></item><item><title><![CDATA[Reply to Inkling 2 Mini 在 H200 & RTX PRO 600D 单卡上的部署与性能（vLLM） on Wed, 25 Nov 2026 13:09:44 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 分 · 编号 e3303-1915-1</p>
</blockquote>
]]></description><link>https://lcz.me/post/35945</link><guid isPermaLink="true">https://lcz.me/post/35945</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Wed, 25 Nov 2026 13:09:44 GMT</pubDate></item><item><title><![CDATA[Reply to Inkling 2 Mini 在 H200 & RTX PRO 600D 单卡上的部署与性能（vLLM） on Tue, 24 Nov 2026 00:31:25 GMT]]></title><description><![CDATA[<p dir="auto">增加了6000D数据，6000D被砍太狠了，价格便宜是有原因的</p>
]]></description><link>https://lcz.me/post/35594</link><guid isPermaLink="true">https://lcz.me/post/35594</guid><dc:creator><![CDATA[fcys]]></dc:creator><pubDate>Tue, 24 Nov 2026 00:31:25 GMT</pubDate></item><item><title><![CDATA[Reply to Inkling 2 Mini 在 H200 & RTX PRO 600D 单卡上的部署与性能（vLLM） on Mon, 23 Nov 2026 12:30:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kos-or" aria-label="Profile: kos-or">@<bdi>kos-or</bdi></a> 散热没好，现在用风扇太吵了，就一直没用<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f632.png?v=2bf455356c3" 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/35549</link><guid isPermaLink="true">https://lcz.me/post/35549</guid><dc:creator><![CDATA[fcys]]></dc:creator><pubDate>Mon, 23 Nov 2026 12:30:40 GMT</pubDate></item><item><title><![CDATA[Reply to Inkling 2 Mini 在 H200 & RTX PRO 600D 单卡上的部署与性能（vLLM） on Mon, 23 Nov 2026 12:25:40 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">H200 到手有一段时间了，液冷一直没搞定，只能临时拿个风扇吹着</p>
</blockquote>
<p dir="auto">要多多使用呀, 這頂級GPU 平均每小時租金 US$5</p>
<p dir="auto"><img src="https://upload.lcz.me/uploads/d068d82e-f906-4ecc-be7b-e06e3ede87f0.jpeg" alt="image.jpeg" class="img-markdown  img-fluid" /></p>
]]></description><link>https://lcz.me/post/35548</link><guid isPermaLink="true">https://lcz.me/post/35548</guid><dc:creator><![CDATA[kos or]]></dc:creator><pubDate>Mon, 23 Nov 2026 12:25:40 GMT</pubDate></item><item><title><![CDATA[Reply to Inkling 2 Mini 在 H200 & RTX PRO 600D 单卡上的部署与性能（vLLM） on Tue, 24 Nov 2026 00:30:10 GMT]]></title><description><![CDATA[<p dir="auto">二楼增加RTX PRO 6000D测试数据</p>
<hr />
<ol start="0">
<li>双引擎总览（RTX 6000D 实测）</li>
</ol>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>指标</th>
<th>vLLM</th>
<th>Basalt</th>
<th>提升</th>
</tr>
</thead>
<tbody>
<tr>
<td>数学 decode（t=0，300 tok）</td>
<td>252.5 tok/s</td>
<td><strong>341.2 tok/s</strong></td>
<td>+35%</td>
</tr>
<tr>
<td>代码 decode</td>
<td>204.3 tok/s</td>
<td><strong>349.1 tok/s</strong></td>
<td>+71%</td>
</tr>
<tr>
<td>中文 decode</td>
<td>103.4 tok/s</td>
<td><strong>240.2 tok/s</strong></td>
<td>+132%</td>
</tr>
<tr>
<td>counting/struct decode（1024 tok）</td>
<td>—</td>
<td><strong>427.2 tok/s</strong></td>
<td>—</td>
</tr>
<tr>
<td>512K 首次 prefill</td>
<td>156.1s</td>
<td><strong>135.1s</strong></td>
<td>+13%</td>
</tr>
<tr>
<td>512K 二次请求（prefix cache 命中）</td>
<td>1.6s</td>
<td><strong>1.3s</strong></td>
<td>+19%</td>
</tr>
<tr>
<td>512K 上下文 decode（端到端 128 tok）</td>
<td>17.4 tok/s</td>
<td><strong>52.0 tok/s</strong></td>
<td>+199%</td>
</tr>
<tr>
<td>1M 首次 prefill（991,880 tokens）</td>
<td>未测（配置 512K）</td>
<td><strong>477.2s（约 2,080 tok/s）</strong></td>
<td>—</td>
</tr>
<tr>
<td>1M 上下文 decode（端到端）</td>
<td>未测</td>
<td><strong>21.5 tok/s（窗口 53.7 t/s）</strong></td>
<td>—</td>
</tr>
<tr>
<td>显存（512K 请求）</td>
<td>79.9 GB</td>
<td><strong>29.0 GB</strong></td>
<td>省 51GB</td>
</tr>
<tr>
<td>显存（1M 请求）</td>
<td>未测</td>
<td><strong>39.3 GB</strong></td>
<td>—</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>结论：Basalt 在 RTX 6000D 上全面优于 vLLM</strong>（decode +35~199%，显存省 64%），原因：Basalt 用原生 FP4 block-scaled tensor cores 直接驱动 NVFP4 专家、KV 按需增长不预分配大池、C++ 手写 kernel；vLLM 的 SM120 专家 GEMM 是 Triton 手写（CUTLASS MoE 修复 <a href="https://github.com/vllm-project/vllm/pull/43814" rel="nofollow ugc">PR #43814</a> 未合并、小 M GEMM 优化 <a href="https://github.com/vllm-project/vllm/pull/69168" rel="nofollow ugc">PR #69168</a> 才合入）。</p>
<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>NVIDIA RTX 6000D（Blackwell，sm_120），84GB GDDR7，功耗上限 600W，156 SM</td>
</tr>
<tr>
<td>驱动 / CUDA</td>
<td>595.99.02 / CUDA 13.2（驱动）；编译用 CUDA 13.0.88（pip nvidia-cu13）</td>
</tr>
<tr>
<td>CPU / 内存</td>
<td>32 核 / 123 GB</td>
</tr>
<tr>
<td>vLLM</td>
<td><strong>0.34.0rc1.dev1183+gafb35f85e</strong>（nightly，含 <code>vllm.models.inkling2</code> 的 loop 支持）</td>
</tr>
<tr>
<td>Basalt</td>
<td><strong>0.5.6</strong>（源码编译 <code>-DBASALT_MODELS=inkling2</code>，CUDA 13.0.88）</td>
</tr>
<tr>
<td>torch</td>
<td>2.14.0+cu130</td>
</tr>
<tr>
<td>模型</td>
<td>thinkingmachines/Inkling-2-Mini（ModelScope 下载，sha256 与 HF 一致，19.5GB NVFP4+MXFP8）</td>
</tr>
<tr>
<td>关键编译依赖</td>
<td>gcc-13（本机默认 gcc-15 不被 nvcc 接受，<code>NVCC_PREPEND_FLAGS="-ccbin /usr/bin/gcc-13"</code>）</td>
</tr>
</tbody>
</table>
<hr />
<h2>2. 服务配置（测试时生效）</h2>
<pre><code>--max-model-len 524288
--max-num-batched-tokens 8192
--max-num-seqs 2
--kv-cache-dtype fp8
--gpu-memory-utilization 0.95
--enable-chunked-prefill
--reasoning-parser inkling --tool-call-parser inkling --enable-auto-tool-choice
--speculative-config '{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"probabilistic"}'
</code></pre>
<hr />
<h2>3. 512K 上下文验证（核心目标）</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>测试</th>
<th>输入 tokens</th>
<th>输出</th>
<th>耗时</th>
<th>结论</th>
</tr>
</thead>
<tbody>
<tr>
<td>长上下文冷请求（无缓存）</td>
<td>521,513</td>
<td>32</td>
<td>143.6s</td>
<td><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="✅" /> 顺利 prefill 并正确概括</td>
</tr>
<tr>
<td>长上下文冷请求（无缓存，batch2048 配置）</td>
<td>522,028</td>
<td>32</td>
<td>156.1s</td>
<td><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="✅" /></td>
</tr>
<tr>
<td>同文本二次请求（prefix cache 命中）</td>
<td>499,806</td>
<td>32</td>
<td>1.6s</td>
<td><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="✅" /> 缓存高效</td>
</tr>
<tr>
<td>512K 上下文下纯 decode</td>
<td>521,774</td>
<td>128</td>
<td>7.3s</td>
<td>→ <strong>17.4 tok/s</strong></td>
</tr>
</tbody>
</table>
<p dir="auto">模型原生上限 1M；本机按 512K 配置（524,288），请求 522K tokens 稳定可用。</p>
<hr />
<h2>4. Prefill 阶梯（非流式，output 32，JIT 热缓存后）</h2>
<h3>本次（RTX 6000D，batch 8192）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>输入 tokens</th>
<th>总耗时</th>
<th>prefill ≈</th>
</tr>
</thead>
<tbody>
<tr>
<td>32,765</td>
<td>2.5s</td>
<td>14,056 tok/s</td>
</tr>
<tr>
<td>65,501</td>
<td>7.8s</td>
<td>8,518 tok/s</td>
</tr>
<tr>
<td>130,973</td>
<td>14.2s</td>
<td>9,302 tok/s</td>
</tr>
<tr>
<td>521,513</td>
<td>143.6s</td>
<td>3,635 tok/s</td>
</tr>
</tbody>
</table>
<h3>对照（H200 NVL）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>输入 tokens</th>
<th>总耗时</th>
<th>prefill</th>
</tr>
</thead>
<tbody>
<tr>
<td>32,758</td>
<td>1.7s</td>
<td>18,897 tok/s</td>
</tr>
<tr>
<td>65,604</td>
<td>3.9s</td>
<td>16,718 tok/s</td>
</tr>
<tr>
<td>131,384</td>
<td>10.5s</td>
<td>12,544 tok/s</td>
</tr>
<tr>
<td>525,255</td>
<td>114.5s</td>
<td>4,589 tok/s</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>相对水平（6000D / H200）</strong>：32K 约 74%、128K 约 74%、512K 约 79%。</p>
<hr />
<h2>5. Decode 速度（t=0，300 tokens，DSpark k=7）</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>场景</th>
<th>6000D 端到端</th>
<th>H200</th>
<th>相对水平</th>
</tr>
</thead>
<tbody>
<tr>
<td>数学（DSpark 接受长度 4.18）</td>
<td>252.5 tok/s</td>
<td>519.3 tok/s</td>
<td>49%</td>
</tr>
<tr>
<td>代码</td>
<td>204.3 tok/s</td>
<td>314.5 tok/s</td>
<td>65%</td>
</tr>
<tr>
<td>中文问答</td>
<td>103.4 tok/s</td>
<td>184.4 tok/s</td>
<td>56%</td>
</tr>
</tbody>
</table>
<p dir="auto">注：temperature=0.7 时 DSpark 接受率骤降至 ~15-20%，数学/代码 decode 会掉到 60-65 tok/s，属正常现象（投机解码接受率依赖贪心程度）。</p>
<hr />
<h2>6. KV cache 容量</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>batch 配置</th>
<th>KV 池</th>
<th>512K 请求并发</th>
<th>每 token 实际 KV</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>--max-num-batched-tokens 8192</code>（当前）</td>
<td>1,224,980 tokens（57.4 GiB）</td>
<td>2.34x</td>
<td>~46.9 KiB</td>
</tr>
<tr>
<td><code>--max-num-batched-tokens 2048</code></td>
<td>2,224,445 tokens（58.9 GiB）</td>
<td>4.24x</td>
<td>~26.5 KiB</td>
</tr>
</tbody>
</table>
<p dir="auto">差异来自 vLLM hybrid KV planner 的 padding 分组（<a href="https://github.com/vllm-project/vllm/issues/69280" rel="nofollow ugc">vllm#69280</a>）：batch 越小 padding 越少、每 token KV 越省，但 prefill 略慢（512K 时约慢 8%）。</p>
<hr />
<h2>7. 与 H200 差距分析（结论：差距来自硬件，非部署问题）</h2>
<h3>硬件规格</h3>
<ul>
<li>RTX 6000D 是中国特供版，拆解证实 <strong>84GB GDDR7（28×3GB），规格削减约 23%</strong>（<a href="https://diy.zol.com.cn/1133/11334549.html" rel="nofollow ugc">ZOL 拆解</a>）</li>
<li>GDDR7 带宽约 <strong>1.5-1.6 TB/s</strong>，H200 NVL 为 <strong>4.8 TB/s HBM3e</strong>（约 1/3）</li>
<li>算力约 6000D 为 Blackwell 满血版的 77%</li>
</ul>
<h3>差距归因（2026-11-23 全网检索后修正）</h3>
<p dir="auto"><strong>重要结论：600+ tok/s 在 SM120 上真实存在（Basalt 引擎 RTX 5090 实测），vLLM 在 SM120 上慢 2-3 倍是引擎问题，不是本机部署配置问题。</strong></p>
<p dir="auto">关键一手证据：</p>
<ol>
<li><strong>Basalt 引擎（专为 NVIDIA Blackwell 优化的 C++ 推理引擎，<a href="https://github.com/jesdga95/basalt" rel="nofollow ugc">jesdga95/basalt</a>）RTX 5090 单卡实测</strong>：</li>
</ol>
<ul>
<li>decode：<strong>conversation 355 / struct 642 / prose 306 tok/s</strong>（短 chat，1M context 支持）</li>
<li>长上下文：131K → 173 tok/s，400K → 108 tok/s</li>
<li>prefill：2K/16K/32K/128K ≈ 14,100 / 13,300 / 12,200 / 8,900 tok/s</li>
<li>关键机制：<strong>原生 FP4 block-scaled tensor cores 跑 NVFP4 专家</strong>（"the NVFP4 experts on the FP4 block-scaled tensor cores"），冷专家 offload 到内存</li>
</ul>
<ol start="2">
<li><strong>vLLM 在 SM120 上明显更慢</strong>（即便满血 RTX PRO 6000 96GB，<a href="https://github.com/hyudryu/Inkling-2-Mini-2xRTXPro6000" rel="nofollow ugc">hyudryu 社区实测</a>）：</li>
</ol>
<ul>
<li>vLLM TP1 baseline：prose <strong>175.7</strong> / coding <strong>312.3</strong> / counting <strong>395.8 tok/s</strong>（1 user，bf16 KV，K=7）</li>
<li>其 README 原话："The decode step on one card is limited by memory bandwidth, not by kernel quality"</li>
<li>但对照 Basalt 的 5090 数据：<strong>vLLM 满血 96GB（1.79TB/s）反而慢于 Basalt 的 5090（306-642）</strong> → vLLM 的 SM120 kernel 效率仍有明显差距</li>
</ul>
<ol start="3">
<li>
<p dir="auto"><strong>本机 RTX 6000D + vLLM 实测</strong>：数学 252.5 / 代码 204.3 / 中文 103.4 tok/s（t=0，300 tok）。6000D 为 156 SM（<a href="https://www.techpowerup.com/news-tags/GB202" rel="nofollow ugc">TechPowerUp</a>），比 5090 的 170 SM 少 8%，带宽 ~1.57TB/s，达到满血 vLLM 的 65-80%，属 vLLM 生态内正常水平。</p>
</li>
<li>
<p dir="auto"><strong>vLLM 慢于 Basalt 的架构原因</strong>：</p>
</li>
</ol>
<ul>
<li>vLLM 的 SM120 专家 GEMM 是 Triton 手写（<code>vllm/models/inkling2/nvidia/ops/moe_sm120.py</code>），decode 小 M 的 kernel 才刚被优化（<a href="https://github.com/vllm-project/vllm/pull/69168" rel="nofollow ugc">PR #69168</a> 9 次提交、2026-11-22 才合入 main，官方镜像版本可能更早）</li>
<li>CUTLASS grouped GEMM 在 SM120 被 bug 静默禁用 fallback 到 Triton（<a href="https://github.com/vllm-project/vllm/pull/43814" rel="nofollow ugc">PR #43814</a> 未合并）</li>
<li>Basalt 是 C++/CUDA 手写、直接驱动 FP4 tensor cores，且做了冷专家 offload/融合</li>
</ul>
<ol start="5">
<li><strong>结论</strong>：</li>
</ol>
<ul>
<li>本机 RTX 6000D + vLLM 的部署与配置<strong>没有错误</strong>（512K 上下文、KV 容量、DSpark、prefill 均正常，数字与 vLLM 生态一致）</li>
<li>但若目标是"速度最大化到 600 tok/s 级"，<strong>必须换引擎</strong>：Basalt 是当前证据下最快的选择（5090 上 306-642 tok/s）；vLLM 在 SM120 上的内核优化尚不完整</li>
<li>预期 6000D + Basalt：struct 约 550-600、conversation 约 300-330 tok/s（按 SM 156/170 ≈ 92% 折算）</li>
</ul>
<h3>已验证的配置侧因素（影响 &lt;10%）</h3>
<ul>
<li><code>--max-num-batched-tokens</code>：8192 vs 2048 对 512K prefill 仅差约 8%（143.6s vs 156.1s）</li>
<li>首次请求的 Triton JIT 编译会造成 1-2 分钟尖峰（编译缓存 ~/.cache/flashinfer 跨实例共享，第二次启动后不再出现）</li>
<li>temperature 对 DSpark 接受率影响巨大（t=0 接受率 ~45%，t=0.7 仅 ~20%）</li>
</ul>
<hr />
<h2>8. 结论</h2>
<ol>
<li><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>512K 上下文跑通（双引擎）</strong>：vLLM 522K tokens prefill 143.6s；Basalt 499K tokens prefill 135.1s，且 Basalt 原生支持 <strong>1M</strong>（991,880 tokens prefill 477.2s）</li>
<li><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>：vLLM 模型加载 4.2 秒、DSpark 生效；Basalt 权重加载 6.2 秒、DSpark 默认开启（<code>acc=27-55%</code>）</li>
<li><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>Basalt 是 RTX 6000D 上更快的引擎</strong>：decode 快 35-132%（数学 341 / 代码 349 / 中文 240 / struct 427 tok/s），512K 上下文 decode 快 3 倍（52 vs 17.4 tok/s），显存省 51GB（29 vs 79.9GB）</li>
<li><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/26a0.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--warning" style="height:1.4em;width:auto;vertical-align:middle" title="⚠" alt="⚠" />️ vLLM 的 SM120 内核效率是短板：Triton 手写专家 GEMM（CUTLASS 路径被禁用、小 M 优化刚合入），导致其比 Basalt 慢 2-3 倍</li>
<li>建议：追求速度最大化且可接受自建引擎 → <strong>Basalt</strong>；需要标准 OpenAI 生态/多模型路由/成熟稳定 → <strong>vLLM</strong>（可用 <code>--max-num-batched-tokens 2048</code> 换取 4.24x 512K 并发）</li>
</ol>
<h2>9. 复现命令</h2>
<pre><code># vLLM（512K）
bash ~/02-推理引擎/01-vLLM/inkling2mini-512k/scripts/start_vllm_512k.sh
# vLLM（512K）验证
bash ~/02-推理引擎/01-vLLM/inkling2mini-512k/scripts/test_512k.sh 8000

# Basalt（512K / 1M）
bash ~/02-推理引擎/05-Basalt/start_basalt.sh              # 默认 512K
MAX_CONTEXT=1048576 bash ~/02-推理引擎/05-Basalt/start_basalt.sh  # 1M
</code></pre>
<h2>10. Basalt 部署要点（RTX 6000D 实测）</h2>
<ul>
<li>源码：<code>~/02-推理引擎/05-Basalt/basalt</code>（GitHub 直连 clone）</li>
<li>编译要求 <strong>CUDA 13.0+</strong>：用 venv 的 pip CUDA 13（<code>nvidia/cu13</code>，nvcc 13.0.88），设 <code>-DCMAKE_CUDA_COMPILER=$CU13/bin/nvcc -DCUDAToolkit_ROOT=$CU13 -DCMAKE_CUDA_HOST_COMPILER=/usr/bin/g++-13</code></li>
<li><strong>坑 1：gcc-15 不支持</strong>——nvcc 13 需 gcc≤14，用 g++-13</li>
<li><strong>坑 2：glibc 2.43 的 rsqrt noexcept 冲突</strong>——给 <code>$CU13/include/crt/math_functions.h</code> 的 rsqrt/rsqrtf 声明加 <code>noexcept</code>（已备份 <code>.bak</code>）</li>
<li>模型 pack：<code>~/01-模型资产/01-语言模型/Inkling-2-Mini-Basalt/Inkling-2-Mini-NVFP4-MX8.basalt</code>（19.6GB，ModelScope 下载，sha256 <code>28ec7072...</code> 校验通过）</li>
<li>运行需 <code>LD_LIBRARY_PATH=$CU13/lib:$CU13/lib64</code>（启动脚本已内置）</li>
<li>启动：<code>bin/basalt serve PACK --python $VENV/bin/python --alias inkling-2-mini --max-context 524288 --kv fp8</code></li>
<li>输出在 <code>reasoning_content</code> 字段（thinking 默认开启，可用 <code>--reasoning-budget-tokens</code> 控制）</li>
</ul>
]]></description><link>https://lcz.me/post/35547</link><guid isPermaLink="true">https://lcz.me/post/35547</guid><dc:creator><![CDATA[fcys]]></dc:creator><pubDate>Tue, 24 Nov 2026 00:30:10 GMT</pubDate></item></channel></rss>