<?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[[实测分享] Ubuntu 24.04 + RTX PRO 6000 跑 Qwen3.8-27B NVFP4 + DFlash2，附一键启动命令]]></title><description><![CDATA[<p dir="auto">最近在 RTX PRO 6000 Blackwell 上折腾了一套 <code>Qwen3.8-27B-NVFP4 + DFlash2 + SGLang</code>，目前已经稳定跑通。</p>
<p dir="auto">环境大概是：</p>
<pre><code class="language-text">OS: Ubuntu 24.04
GPU: RTX PRO 6000 Blackwell 96GB
主模型: RadixArk/Qwen3.8-27B-NVFP4
Draft: incoai/Qwen3.8-27B-DFlash2
Context: 262144
KV Cache: FP8 E4M3
Attention: FlashInfer
Spec Decode: DFLASH / DFlash2
端口: 30001
</code></pre>
<p dir="auto">下面直接贴能复制的命令，少讲原理。</p>
<hr />
<h2>1. 基础环境</h2>
<pre><code class="language-bash">sudo apt update &amp;&amp; sudo apt install -y \
git git-lfs curl wget build-essential \
python3 python3-pip python3-venv &amp;&amp; \
git lfs install
</code></pre>
<p dir="auto">创建环境：</p>
<pre><code class="language-bash">mkdir -p ~/LLM/qwen38 &amp;&amp; \
cd ~/LLM/qwen38 &amp;&amp; \
python3 -m venv .venv &amp;&amp; \
source .venv/bin/activate &amp;&amp; \
python -m pip install -U pip setuptools wheel
</code></pre>
<p dir="auto">以后进环境：</p>
<pre><code class="language-bash">cd ~/LLM/qwen38 &amp;&amp; source .venv/bin/activate
</code></pre>
<hr />
<h2>2. 安装支持 DFlash2 的 SGLang</h2>
<p dir="auto">这里有个坑：</p>
<p dir="auto"><strong>不要默认直接用 PyPI 稳定版 SGLang。</strong></p>
<p dir="auto">DFlash2 之前需要特殊 PR 分支，目前建议直接使用 SGLang <code>main</code>：</p>
<pre><code class="language-bash">source ~/LLM/qwen38/.venv/bin/activate &amp;&amp; \
pip install -U \
"sglang[all] @ git+https://github.com/sgl-project/sglang.git#subdirectory=python"
</code></pre>
<p dir="auto">查看版本：</p>
<pre><code class="language-bash">python -c "import sglang; print(sglang.__version__)"
</code></pre>
<p dir="auto">如果你要复现之前的 DFlash2 特殊分支，可以装：</p>
<pre><code class="language-bash">source ~/LLM/qwen38/.venv/bin/activate &amp;&amp; \
pip uninstall -y sglang &amp;&amp; \
pip install -U \
"sglang[all] @ git+https://github.com/sgl-project/sglang.git@refs/pull/35371/head#subdirectory=python"
</code></pre>
<p dir="auto">建议跑通以后顺手：</p>
<pre><code class="language-bash">pip freeze &gt; ~/LLM/qwen38/requirements-working.txt
</code></pre>
<p dir="auto">免得之后 <code>main</code> 更新又出新问题。</p>
<hr />
<h1>3. 我现在实际使用的启动命令</h1>
<p dir="auto">前台启动：</p>
<pre><code class="language-bash">source ~/LLM/qwen38/.venv/bin/activate &amp;&amp; \
sglang serve \
  --trust-remote-code \
  --model-path RadixArk/Qwen3.8-27B-NVFP4 \
  --context-length 262144 \
  --kv-cache-dtype fp8_e4m3 \
  --mem-fraction-static 0.92 \
  --attention-backend flashinfer \
  --chunked-prefill-size 2048 \
  --reasoning-parser qwen3 \
  --tool-call-parser qwen3_coder \
  --mamba-full-memory-ratio 0.9 \
  --host 0.0.0.0 \
  --port 30001 \
  --enable-cache-report \
  --speculative-algorithm DFLASH \
  --speculative-draft-model-path incoai/Qwen3.8-27B-DFlash2 \
  --speculative-num-draft-tokens 8 \
  --mamba-radix-cache-strategy extra_buffer \
  --mamba-ssm-dtype float32
</code></pre>
<hr />
<h1>4. 推荐：直接后台跑</h1>
<p dir="auto">我平时实际用这个：</p>
<pre><code class="language-bash">cd ~/LLM/qwen38 &amp;&amp; \
source .venv/bin/activate &amp;&amp; \
nohup sglang serve \
  --trust-remote-code \
  --model-path RadixArk/Qwen3.8-27B-NVFP4 \
  --context-length 262144 \
  --kv-cache-dtype fp8_e4m3 \
  --mem-fraction-static 0.92 \
  --attention-backend flashinfer \
  --chunked-prefill-size 2048 \
  --reasoning-parser qwen3 \
  --tool-call-parser qwen3_coder \
  --mamba-full-memory-ratio 0.9 \
  --host 0.0.0.0 \
  --port 30001 \
  --enable-cache-report \
  --speculative-algorithm DFLASH \
  --speculative-draft-model-path incoai/Qwen3.8-27B-DFlash2 \
  --speculative-num-draft-tokens 8 \
  --mamba-radix-cache-strategy extra_buffer \
  --mamba-ssm-dtype float32 \
  &gt; ~/LLM/qwen38/sglang-30001.log 2&gt;&amp;1 &amp;
</code></pre>
<p dir="auto">基本就是：</p>
<p dir="auto"><strong>复制 → 回车 → 等模型加载完成。</strong></p>
<hr />
<h1>5. 检查有没有起来</h1>
<pre><code class="language-bash">curl -i http://127.0.0.1:30001/health
</code></pre>
<p dir="auto">正常应该：</p>
<pre><code class="language-text">HTTP 200
</code></pre>
<p dir="auto">模型列表：</p>
<pre><code class="language-bash">curl http://127.0.0.1:30001/v1/models
</code></pre>
<p dir="auto">看端口：</p>
<pre><code class="language-bash">ss -lntp | grep 30001
</code></pre>
<p dir="auto">看日志：</p>
<pre><code class="language-bash">tail -f ~/LLM/qwen38/sglang-30001.log
</code></pre>
<p dir="auto">看 GPU：</p>
<pre><code class="language-bash">watch -n 1 nvidia-smi
</code></pre>
<hr />
<h1>6. API 随手测试</h1>
<pre><code class="language-bash">curl -N http://127.0.0.1:30001/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "RadixArk/Qwen3.8-27B-NVFP4",
    "messages": [
      {
        "role": "user",
        "content": "Explain speculative decoding in detail."
      }
    ],
    "max_tokens": 4096,
    "temperature": 0.2,
    "stream": true
  }'
</code></pre>
<hr />
<h1>7. 停服务</h1>
<p dir="auto">正常：</p>
<pre><code class="language-bash">lsof -ti:30001 | xargs -r kill
</code></pre>
<p dir="auto">不行就：</p>
<pre><code class="language-bash">lsof -ti:30001 | xargs -r kill -9
</code></pre>
<p dir="auto">或者：</p>
<pre><code class="language-bash">pkill -f "sglang.*30001"
</code></pre>
<hr />
<h1>8. 我的实测结果</h1>
<p dir="auto">测试条件：</p>
<pre><code class="language-text">严格约 16K input
每个请求固定输出 4096 tokens
Streaming
cached_tokens = 0
并发 1 / 2 / 4
</code></pre>
<p dir="auto">结果：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="text-align:right">并发</th>
<th style="text-align:right">最大 TTFT</th>
<th style="text-align:right">Prompt Processing</th>
<th style="text-align:right">Decode Speed</th>
<th style="text-align:right">End-to-End 总吞吐</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:right">1 路</td>
<td style="text-align:right">1.506 s</td>
<td style="text-align:right">10,877.7 tok/s</td>
<td style="text-align:right">171.1 tok/s</td>
<td style="text-align:right">161.0 tok/s</td>
</tr>
<tr>
<td style="text-align:right">2 路</td>
<td style="text-align:right">2.854 s</td>
<td style="text-align:right">11,479.7 tok/s</td>
<td style="text-align:right">125.8–343.8 tok/s</td>
<td style="text-align:right">239.8 tok/s</td>
</tr>
<tr>
<td style="text-align:right">4 路</td>
<td style="text-align:right">5.737 s</td>
<td style="text-align:right">11,422.8 tok/s</td>
<td style="text-align:right">85.4–318.4 tok/s</td>
<td style="text-align:right">321.1 tok/s</td>
</tr>
</tbody>
</table>
<p dir="auto">测试期间：</p>
<pre><code class="language-text">每路全部成功输出 4096 tokens
cached_tokens = 0
无 OOM
服务一直 HTTP 200
30001 一直 active
</code></pre>
<p dir="auto">4 路同时处于 decode 时，SGLang 日志里看到的 batch decode throughput 大约：</p>
<pre><code class="language-text">620–825 tok/s
</code></pre>
<p dir="auto">目前这套配置我认为已经可以拿来长期跑 Agent / Coding workload。</p>
<hr />
<h1>9. DSH / Harness 接入</h1>
<p dir="auto">SGLang 地址直接用：</p>
<pre><code class="language-text">http://127.0.0.1:30001/v1
</code></pre>
<p dir="auto">Thinking effort 部分，我这里是：</p>
<pre><code class="language-yaml">reasoning: xhigh
</code></pre>
<p dir="auto">模型能力：</p>
<pre><code class="language-yaml">reasoningEfforts:
  off: none
  low: low
  medium: medium
  xhigh: xhigh
</code></pre>
<p dir="auto">默认：</p>
<pre><code class="language-yaml">agent-default-model:
  reasoningEffort: xhigh
</code></pre>
<p dir="auto">如果自托管 endpoint 不接受 <code>developer</code> role，加：</p>
<pre><code class="language-yaml">compat:
  supportsDeveloperRole: false
</code></pre>
<hr />
<h1>10. DSH 多模态还有一个坑</h1>
<p dir="auto">如果是手工加进去的模型，DSH / pi-ai 可能默认把它当：</p>
<pre><code class="language-text">text only
</code></pre>
<p dir="auto">所以即使 Qwen3.8 本身支持图片，也可能出现：</p>
<pre><code class="language-text">does not declare image input
</code></pre>
<p dir="auto">模型配置里需要显式加：</p>
<pre><code class="language-yaml">input:
  - text
  - image
</code></pre>
<p dir="auto">或者：</p>
<pre><code class="language-yaml">input: [text, image]
</code></pre>
<p dir="auto">我这边改完之后不需要重启整个服务，热重载后：</p>
<pre><code class="language-text">read_image
</code></pre>
<p dir="auto">已经可以正常把图片送进模型。</p>
<hr />
<h1>11. 最后给一个最精简版本</h1>
<p dir="auto">只想复制命令的看这里：</p>
<pre><code class="language-bash">cd ~/LLM/qwen38 &amp;&amp; source .venv/bin/activate &amp;&amp; nohup sglang serve --trust-remote-code --model-path RadixArk/Qwen3.8-27B-NVFP4 --context-length 262144 --kv-cache-dtype fp8_e4m3 --mem-fraction-static 0.92 --attention-backend flashinfer --chunked-prefill-size 2048 --reasoning-parser qwen3 --tool-call-parser qwen3_coder --mamba-full-memory-ratio 0.9 --host 0.0.0.0 --port 30001 --enable-cache-report --speculative-algorithm DFLASH --speculative-draft-model-path incoai/Qwen3.8-27B-DFlash2 --speculative-num-draft-tokens 8 --mamba-radix-cache-strategy extra_buffer --mamba-ssm-dtype float32 &gt; ~/LLM/qwen38/sglang-30001.log 2&gt;&amp;1 &amp;
</code></pre>
<p dir="auto">检查：</p>
<pre><code class="language-bash">curl -i http://127.0.0.1:30001/health &amp;&amp; tail -n 50 ~/LLM/qwen38/sglang-30001.log
</code></pre>
<p dir="auto">目前这套在 <strong>RTX PRO 6000 Blackwell 96GB + Ubuntu 24.04</strong> 上已经实际跑过：</p>
<pre><code class="language-text">256K context 配置
16K prompt
4096-token output
1 / 2 / 4 concurrency
DFlash2
FP8 KV
FlashInfer
DSH thinking effort
DSH image input
</code></pre>
<p dir="auto">如果有人也在 RTX PRO 6000 / 5090 / Blackwell 上跑 Qwen3.8 + DFlash2，可以直接拿这套参数当起点。</p>
<p dir="auto">上面都是AI总结的，最后这点是我写的。在刚开始折腾的时候我折腾了几套方案，包括 官方的 fp8 + RadixArk/Qwen3.8-27B-DSpark，还有RadixArk/Qwen3.8-27B-NVFP4 + mtp, 上面这套方案是我测试下来最快的方案，在新对话一开始可以跑到200tok/s, 我选取16k输入作为测试主要是比较能够代表典型值。我也跑了很久的 terminal-bench@2.1, 在时间和算力充裕的情况下可以完成大概 75%的任务，对性能应该是没有什么损失。<br />
<img src="https://upload.lcz.me/uploads/9b87f913-f56f-45a5-a669-2b8cf54488df.jpeg" alt="0ba1e8da-7818-4800-a95f-d0069576941e-image.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">由于精力有限，我其实没有对参数做过多优化，希望能抛砖引玉。</p>
]]></description><link>https://lcz.me/topic/1336</link><generator>RSS for Node</generator><lastBuildDate>Tue, 08 Sep 2026 01:37:55 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/1336.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Aug 2026 09:55:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [实测分享] Ubuntu 24.04 + RTX PRO 6000 跑 Qwen3.8-27B NVFP4 + DFlash2，附一键启动命令 on Sat, 29 Aug 2026 09:53:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/arroyo-cheung" aria-label="Profile: Arroyo-Cheung">@<bdi>Arroyo-Cheung</bdi></a> 实测工作体感如何。</p>
]]></description><link>https://lcz.me/post/14763</link><guid isPermaLink="true">https://lcz.me/post/14763</guid><dc:creator><![CDATA[williamlouis]]></dc:creator><pubDate>Sat, 29 Aug 2026 09:53:33 GMT</pubDate></item><item><title><![CDATA[Reply to [实测分享] Ubuntu 24.04 + RTX PRO 6000 跑 Qwen3.8-27B NVFP4 + DFlash2，附一键启动命令 on Sat, 29 Aug 2026 09:07:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/grayson-ren" aria-label="Profile: Grayson-Ren">@<bdi>Grayson-Ren</bdi></a> 我跑了大概一周的 terminalbench2.1 得出的分数基本和artificial analysis持平，在有些任务中给宽裕时间 甚至能达到80%左右 大于qwen官方宣传的73%。所以对性能的损失应该是微乎其微。</p>
]]></description><link>https://lcz.me/post/14757</link><guid isPermaLink="true">https://lcz.me/post/14757</guid><dc:creator><![CDATA[Arroyo Cheung]]></dc:creator><pubDate>Sat, 29 Aug 2026 09:07:59 GMT</pubDate></item><item><title><![CDATA[Reply to [实测分享] Ubuntu 24.04 + RTX PRO 6000 跑 Qwen3.8-27B NVFP4 + DFlash2，附一键启动命令 on Sat, 29 Aug 2026 09:03:42 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> 谢谢坛主 感恩</p>
]]></description><link>https://lcz.me/post/14755</link><guid isPermaLink="true">https://lcz.me/post/14755</guid><dc:creator><![CDATA[Arroyo Cheung]]></dc:creator><pubDate>Sat, 29 Aug 2026 09:03:42 GMT</pubDate></item><item><title><![CDATA[Reply to [实测分享] Ubuntu 24.04 + RTX PRO 6000 跑 Qwen3.8-27B NVFP4 + DFlash2，附一键启动命令 on Thu, 27 Aug 2026 20:49:00 GMT]]></title><description><![CDATA[<p dir="auto">非常好的分享，格式工整，精品。</p>
]]></description><link>https://lcz.me/post/14465</link><guid isPermaLink="true">https://lcz.me/post/14465</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Thu, 27 Aug 2026 20:49:00 GMT</pubDate></item><item><title><![CDATA[Reply to [实测分享] Ubuntu 24.04 + RTX PRO 6000 跑 Qwen3.8-27B NVFP4 + DFlash2，附一键启动命令 on Thu, 27 Aug 2026 19:09:02 GMT]]></title><description><![CDATA[<p dir="auto">分两个位置说，结论不一样：</p>
<p dir="auto">KV cache 用 NVFP4：放心用，影响很小。KV 量化容错度很高，DeepSeek 官方 DFlash 系（DFlash2）就是 FP4 KV，262K 长上下文下带宽省一半、decode 更快，质量损失基本无感。OP 这套 KV 用 FP8 是偏保守，换 NVFP4 反而更贴近 DFlash2 的设计意图。</p>
<p dir="auto">主模型权重：NVFP4（E2M1，1 位尾数）比 FP8（E4M3，3 位尾数）低一档精度。RadixArk 这个 NVFP4 量化是专门调过的，27B 上日常对话/写作损失不大，但数学、代码、长尾推理这类对权重精度敏感的任务能看出差距。性能上 NVFP4 数据量是 FP8 的一半，Blackwell 的 FP4 tensor core 吞吐是 FP8 的 2 倍，decode 瓶颈场景明显更快——所以选 RadixArk NVFP4 权重的人主要图速度。</p>
<p dir="auto">你这张 96G 卡跑 27B 根本不缺显存，我的建议：权重用 FP8 保精度，KV 用 NVFP4 提速度，这是这个组合的最优解；想极致速度再权重也上 NVFP4，差距可控但存在。</p>
]]></description><link>https://lcz.me/post/14464</link><guid isPermaLink="true">https://lcz.me/post/14464</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Thu, 27 Aug 2026 19:09:02 GMT</pubDate></item><item><title><![CDATA[Reply to [实测分享] Ubuntu 24.04 + RTX PRO 6000 跑 Qwen3.8-27B NVFP4 + DFlash2，附一键启动命令 on Thu, 27 Aug 2026 06:52:12 GMT]]></title><description><![CDATA[<p dir="auto">不用FP8  用 NVFP4  性能和精度影响不大么？</p>
]]></description><link>https://lcz.me/post/14282</link><guid isPermaLink="true">https://lcz.me/post/14282</guid><dc:creator><![CDATA[Grayson Ren]]></dc:creator><pubDate>Thu, 27 Aug 2026 06:52:12 GMT</pubDate></item></channel></rss>