<?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[【实测】RTX PRO 6000 96G 運行 Qwen4-35B-A3B NVFP4 ＋ MTP：SGLang 1.0.0 高併發實測——單流 270 t/s、c=8 3,270 t/s、GSM8K 98.5%]]></title><description><![CDATA[<p dir="auto"><img src="https://forum.hws.hk/img/qwen4-14.png" alt="banner" class="img-markdown  img-fluid" /></p>
<h2>TL;DR</h2>
<ul>
<li><strong>機器</strong>：.14 — NVIDIA RTX PRO 6000 Blackwell Max-Q 96GB、Ryzen 9 5900X、121GB RAM</li>
<li><strong>引擎</strong>：SGLang 1.0.0 ＋ Qwen4-35B-A3B <strong>NVFP4</strong> ＋ MTP（NEXTN，draft 4）</li>
<li><strong>關鍵數字</strong>：單流約 <strong>270 t/s</strong>、c=8 總吞吐約 <strong>3,270 t/s</strong>、GSM8K-200 <strong>98.5%</strong>、KV pool 428K–690K tokens</li>
<li><strong>同機並行 ComfyUI 生產出圖</strong>——mf=0.62 共存方案為實測調校結果</li>
</ul>
<h2>一、機器列表</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>項目</th>
<th>規格</th>
</tr>
</thead>
<tbody>
<tr>
<td>GPU</td>
<td>NVIDIA RTX PRO 6000 Blackwell Max-Q Workstation Edition，<strong>97,887 MiB</strong>（2026-09-28 由 RTX 5090 32G 升級）</td>
</tr>
<tr>
<td>CPU</td>
<td>AMD Ryzen 9 5900X（12C/24T）</td>
</tr>
<tr>
<td>記憶體</td>
<td>121GB</td>
</tr>
<tr>
<td>OS</td>
<td>Ubuntu 24.04，kernel 7.0.0-44-generic</td>
</tr>
<tr>
<td>驅動／CUDA</td>
<td>595.112.07／CUDA 13.3（<code>/usr/local/cuda-13.3</code>）</td>
</tr>
<tr>
<td>同機服務</td>
<td>ComfyUI 0.37.0（:8188，生產出圖）、SGLang（:8000）、thinking-guard（:8020）</td>
</tr>
</tbody>
</table>
<h2>二、引擎與模型版本</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>項目</th>
<th>版本／數值</th>
</tr>
</thead>
<tbody>
<tr>
<td>推理引擎</td>
<td><strong>SGLang 1.0.0</strong>（venv <code>/data/sglang-q4</code>）</td>
</tr>
<tr>
<td>模型</td>
<td><code>Qwen4-35B-A3B-NVFP4</code>（<code>/data/models/</code>，權重約 47GB）</td>
</tr>
<tr>
<td>推測解碼</td>
<td>NEXTN（MTP）：<code>--speculative-num-steps 3 --speculative-eagle-topk 1 --speculative-num-draft-tokens 4</code></td>
</tr>
<tr>
<td>MoE backend</td>
<td><code>flashinfer_cutlass</code>（DeepGEMM JIT 已關閉）</td>
</tr>
<tr>
<td>Parsers</td>
<td><code>--tool-call-parser qwen3_coder --reasoning-parser qwen3</code></td>
</tr>
<tr>
<td>服務</td>
<td><code>:8000</code>，<code>--served-model-name qwen4-35b-a3b-nvfp4</code>，ctx 131072，<code>--mem-fraction-static 0.62</code></td>
</tr>
</tbody>
</table>
<h2>三、部署配置</h2>
<pre><code class="language-bash">export CUDA_HOME=/usr/local/cuda-13.3        # 系統 nvcc 為 12.4，JIT 編譯 compute_120a 會失敗
export SGLANG_ENABLE_JIT_DEEPGEMM=0
/data/sglang-q4/bin/python -m sglang.launch_server \
  --model-path /data/models/Qwen4-35B-A3B-NVFP4 \
  --host 0.0.0.0 --port 8000 --tp 1 \
  --served-model-name qwen4-35b-a3b-nvfp4 \
  --mem-fraction-static 0.62 --context-length 131072 \
  --moe-runner-backend flashinfer_cutlass \
  --speculative-algorithm NEXTN --speculative-draft-model-path /data/models/Qwen4-35B-A3B-NVFP4 \
  --speculative-num-steps 3 --speculative-eagle-topk 1 --speculative-num-draft-tokens 4 \
  --tool-call-parser qwen3_coder --reasoning-parser qwen3 \
  --trust-remote-code
</code></pre>
<p dir="auto">冷啟約 <strong>110s</strong>（47GB 權重＋flashinfer JIT cache 熱）。</p>
<h2>四、實測數據</h2>
<h3>4.1 吞吐與品質</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>場景</th>
<th>結果</th>
</tr>
</thead>
<tbody>
<tr>
<td>單流 decode</td>
<td>約 <strong>270 t/s</strong></td>
</tr>
<tr>
<td>c=8 併發總吞吐</td>
<td>約 <strong>3,270 t/s</strong></td>
</tr>
<tr>
<td>GSM8K-200</td>
<td><strong>98.5%</strong></td>
</tr>
<tr>
<td>KV pool</td>
<td>428K–690K tokens（視 ComfyUI 是否有常駐模型）</td>
</tr>
</tbody>
</table>
<h3>4.2 與 ComfyUI 共存（mem_fraction_static 調校）</h3>
<p dir="auto">同機 ComfyUI 承担生產出圖（Qwen-Image 2.1 BF16 冷啟 peak 約 33.7GB）。SGLang 的 <code>--mem-fraction-static</code> 直接決定 KV pool 大小與共存 headroom：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="text-align:right">mf</th>
<th style="text-align:right">KV max_total_num_tokens</th>
<th>條件</th>
<th>ComfyUI 共存</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:right">0.62（<strong>生產值</strong>）</td>
<td style="text-align:right">690,048／428,480</td>
<td>單獨啟動／ComfyUI 常駐</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=a469ad8ffff" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /> peak 剩餘 4.3GB</td>
</tr>
<tr>
<td style="text-align:right">0.68</td>
<td style="text-align:right">829,440</td>
<td>單獨啟動</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=a469ad8ffff" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /> peak 剩餘 4.3GB（緊）</td>
</tr>
<tr>
<td style="text-align:right">0.70–0.75</td>
<td style="text-align:right">381K–464K</td>
<td>ComfyUI warm 常駐</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=a469ad8ffff" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /> headroom 11–15GB</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>生產採用 mf=0.62</strong>：ComfyUI 冷啟（最重場景）仍可完成，headroom 較厚；不建議超過 0.70（H3 影片／Wan 14B 等重 workflow 風險高）。</p>
<h2>五、坑與注意事項</h2>
<ol>
<li><strong>不接受 <code>reasoning_effort</code></strong>：回傳 400 <code>unsupported apply_chat_template arguments: thinking</code>。必須改用 <code>chat_template_kwargs: {"enable_thinking": false}</code>；top-level <code>enable_thinking</code> 會被忽略。若鏈路上有思考開關代理層（本机為 thinking-guard），需以 template 方式注入，並剝離呼叫端自帶的 <code>reasoning_effort</code>。</li>
<li><strong>SGLang 接受任意 model 名</strong>：舊 alias <code>qwen3.8-27b</code> 仍回 200（drop-in 替換不會斷舊引用），但 <code>/v1/models</code> 只報真名——新客戶端應使用真名。</li>
<li><strong>ComfyUI 於 SGLang 啟動時佔用 VRAM，KV pool 會縮 40%</strong>（690K → 428K）。重啟 SGLang 前建議先 <code>systemctl restart comfyui</code> 清空 VRAM。</li>
<li><strong>mf 不超過 0.70</strong>：ComfyUI 仍可運行（依靠 RAM offload），但 headroom 僅約 14GB。</li>
<li><strong>冷啟約 110s</strong>：啟動後首個請求較慢；fleet 健康檢查 deadline 建議設 240s。</li>
<li><strong>tool calling 需顯式 parser</strong>：未加 <code>--tool-call-parser qwen3_coder</code> 就不會有真正的 <code>tool_calls</code>；<code>--reasoning-parser qwen3</code> 將思考放入 <code>reasoning_content</code>。</li>
</ol>
<h2>六、結論</h2>
<p dir="auto">單張 96GB 卡上，NVFP4 ＋ MTP 做到「高吞吐＋高併發＋生產出圖共存」：單流 270 t/s 應付日常請求，c=8 總吞吐 3,270 t/s 承担 agent 負載，GSM8K 98.5% 證明 NVFP4 精度未妥協。mf=0.62 共存方案為實測調校結果，非憑空設定。</p>
<p dir="auto"><em>量測口徑：同機實測，含 ComfyUI 共存與冷啟場景；KV 數字隨 ComfyUI 常駐狀態浮動。</em></p>
]]></description><link>https://lcz.me/topic/3592</link><generator>RSS for Node</generator><lastBuildDate>Sun, 06 Dec 2026 22:11:04 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/3592.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 06 Dec 2026 03:44:02 GMT</pubDate><ttl>60</ttl></channel></rss>