<?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[NVIDIA RTX PRO 5000 72GB 正确抄作业，效果很好。介绍复刻要点。]]></title><description><![CDATA[<p dir="auto">复刻<a href="https://lcz.me/topic/2129">https://lcz.me/topic/2129</a> 贴<br />
本文想表述的是如何摘抄别人优秀的部署方案<br />
一 首先 要感谢好大哥 Tony Wang<br />
二 克制阅读烦躁，这是充分了解分析你要复刻的帖子是否值得复刻的重点。<br />
三 总结你需要模型必须具备的能力。被复刻模型是否适合你。<br />
四 先让在线 AI 分析，并回答你预处理的内容在模型内的预测。和实测达到的效果差距不大。并不是所以模型都需要安装再跑。<br />
下面是我提供的参考资料：</p>
<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 5000 72GB Blackwell（SM120），驱动 595.91.07</td>
</tr>
<tr>
<td>CPU</td>
<td>Intel Core Ultra 7 270K Plus（24C/24T，最高 5.5GHz）</td>
</tr>
<tr>
<td>内存</td>
<td>128 GB DDR5（2×64GB）</td>
</tr>
<tr>
<td>存储</td>
<td>致态 TiPro9000 1TB NVMe（部署后占用约 90GB）</td>
</tr>
<tr>
<td>网络</td>
<td>万兆有线 192.168.10.235；Tailscale 100.117.178.85</td>
</tr>
<tr>
<td>系统</td>
<td>Linux Mint 22.3（Ubuntu 24.04 基座），内核 7.0.0-38</td>
</tr>
</tbody>
</table>
<h2>二、软件栈</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>组件</th>
<th>版本</th>
<th>来源</th>
</tr>
</thead>
<tbody>
<tr>
<td>Docker CE</td>
<td>29.8.2</td>
<td><a href="http://docker.com" rel="nofollow ugc">docker.com</a> 官方源</td>
</tr>
<tr>
<td>NVIDIA Container Toolkit</td>
<td>最新稳定版</td>
<td><a href="http://nvidia.github.io" rel="nofollow ugc">nvidia.github.io</a> 官方源</td>
</tr>
<tr>
<td>推理引擎</td>
<td>SGLang v0.5.21（官方镜像 <code>lmsysorg/sglang:v0.5.21</code>）</td>
<td>Docker Hub</td>
</tr>
<tr>
<td>主模型</td>
<td><code>RadixArk/Qwen3.8-27B-NVFP4</code>（21GB，NVFP4 混合量化）</td>
<td>ModelScope</td>
</tr>
<tr>
<td>草稿模型</td>
<td><code>z-lab/Qwen3.8-27B-DFlash2</code>（3.85GB，DFlash2 投机解码）</td>
<td>ModelScope</td>
</tr>
</tbody>
</table>
<h2>三、部署架构</h2>
<pre><code>客户端（2–4 并发用户）
   │  OpenAI 兼容 API  →  http://192.168.10.235:30000/v1
   ▼
Docker 容器 sglang-qwen38（--restart unless-stopped，开机自启）
   └─ SGLang v0.5.21
       ├─ Qwen3.8-27B-NVFP4（主模型，27B 稠密 + 视觉编码器）
       ├─ DFlash2 草稿模型（1.92B，block-diffusion 投机解码，8 draft tokens）
       ├─ attention backend: flashinfer（关键配置）
       ├─ linear attention backend: triton（SM120 无 flashinfer 实现，必须保留）
       ├─ KV cache: FP8 e4m3，262K 上下文
       └─ 显存静态分配 92%（72GB 显存）
</code></pre>
<h2>四、关键配置决策</h2>
<p dir="auto">依据参考帖子的踩坑结论，以下两项为性能和正确性的核心：</p>
<ol>
<li><strong><code>--attention-backend flashinfer</code></strong>：triton 后端在长上下文 + DFlash2 验证路径下严重退化（帖子实测 120K 下每步 193ms vs 28ms，差 6.8 倍）。SGLang 官方对 Blackwell 消费卡（SM120）的推荐即 flashinfer。</li>
<li><strong><code>--linear-attn-backend triton</code></strong>：linear attention 在 SM120 上没有 flashinfer 实现，此项必须保持 triton，不可跟随全局设置。</li>
</ol>
<p dir="auto">其余参数照帖子复用：<code>--kv-cache-dtype fp8_e4m3</code>、<code>--max-mamba-cache-size 20</code>、<code>--mamba-radix-cache-strategy extra_buffer</code>、<code>--speculative-num-draft-tokens 8</code> 等。</p>
<p dir="auto">针对 72GB 显存（帖子为 48GB）的调整：</p>
<ul>
<li><code>--mem-fraction-static</code> 0.90 → <strong>0.92</strong></li>
<li><code>--max-running-requests</code> 保持 <strong>4</strong>（按 2–4 人使用需求）</li>
</ul>
<p dir="auto">完整启动命令见 <code>/models-ai/start-sglang.sh</code>。</p>
<h2>五、实测性能</h2>
<p dir="auto">测试方法：流式请求，分离 TTFT（prefill）与 decode 阶段，token 数取服务端 usage 精确值。代码生成场景（投机解码友好）。</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>场景</th>
<th>帖子成绩（48GB 卡）</th>
<th>本机实测（72GB 卡）</th>
</tr>
</thead>
<tbody>
<tr>
<td>decode @ 8K 上下文</td>
<td>119 tok/s</td>
<td><strong>175 tok/s</strong></td>
</tr>
<tr>
<td>decode @ 32K 上下文</td>
<td>111 tok/s</td>
<td><strong>135 tok/s</strong></td>
</tr>
<tr>
<td>decode @ 120K 上下文</td>
<td>116 tok/s</td>
<td><strong>270 tok/s</strong></td>
</tr>
<tr>
<td>4 并发聚合吞吐</td>
<td>380–401 tok/s</td>
<td><strong>349 tok/s</strong></td>
</tr>
<tr>
<td>冷 prefill @ 120K</td>
<td>3,322–4,169 tok/s</td>
<td>≈3,500 tok/s（TTFT ≈35s）</td>
</tr>
</tbody>
</table>
<p dir="auto">补充说明：</p>
<ul>
<li>散文类生成投机命中率较低（帖子实测 60–80 tok/s），本机复现一致（约 35–64 tok/s），属算法特性而非配置问题。</li>
<li>服务启动到就绪约 90 秒（含 flashinfer autotune 与 cuda graph 预热）。</li>
<li>Radix cache 命中后相同前缀请求几乎免除 prefill。</li>
</ul>
<p dir="auto">验证日志确认项：<code>attention_backend=flashinfer</code> 生效、DFLASH draft runner 初始化成功、cuda graph 启用。</p>
<h2>六、运维信息</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项目</th>
<th>路径 / 命令</th>
</tr>
</thead>
<tbody>
<tr>
<td>模型目录</td>
<td><code>/models-ai/</code></td>
</tr>
<tr>
<td>启动脚本</td>
<td><code>/models-ai/start-sglang.sh</code>（重建容器）</td>
</tr>
<tr>
<td>测速脚本</td>
<td><code>/models-ai/bench.py</code>（8K/32K/120K 三档）</td>
</tr>
<tr>
<td>查看日志</td>
<td><code>docker logs -f sglang-qwen38</code></td>
</tr>
<tr>
<td>重启服务</td>
<td><code>docker restart sglang-qwen38</code></td>
</tr>
<tr>
<td>API 端点</td>
<td><code>http://192.168.10.235:30000/v1</code>（OpenAI 兼容，模型名 <code>default</code>）</td>
</tr>
<tr>
<td>关闭思考模式</td>
<td>请求体加 <code>"chat_template_kwargs": {"enable_thinking": false}</code></td>
</tr>
</tbody>
</table>
<h2>七、系统加固</h2>
<p dir="auto">为防止远程无法唤醒，已禁用系统休眠：</p>
<ul>
<li><code>systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target</code></li>
<li><code>/etc/systemd/logind.conf.d/no-sleep.conf</code>：<code>IdleAction=ignore</code>，合盖/挂起键/休眠键全部忽略</li>
</ul>
<p dir="auto">恢复方法：<code>systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target</code> 并删除上述 conf 文件后 <code>systemctl restart systemd-logind</code>。</p>
<h2>八、遗留事项与建议</h2>
<ol>
<li><strong>vLLM 备用容器</strong>未部署（帖子建议留作一键回退），如需可后续补充。</li>
<li><strong>API 安全</strong>：当前端口对局域网开放且无鉴权，建议加 <code>--api-key</code> 或仅通过 Tailscale（100.117.<em>.</em>）访问。</li>
<li>若未来升级 SGLang 镜像，保留 <code>/models-ai</code> 与启动脚本即可无损迁移。</li>
</ol>
<p dir="auto">总结：并未部署vLLM 备用容器，鉴于硬件做的决策。每个人的设备不尽相同。本文模型智力测试满分220分，得分218分。成绩优秀。使用 tailscale API分享速度满速。</p>
<p dir="auto"><img src="https://upload.lcz.me/uploads/c1055e0a-046e-43b8-ada3-9eb859d685cd.jpeg" alt="image.jpeg" class="img-markdown  img-fluid" /></p>
]]></description><link>https://lcz.me/topic/2184</link><generator>RSS for Node</generator><lastBuildDate>Mon, 12 Oct 2026 13:28:47 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/2184.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Oct 2026 07:10:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NVIDIA RTX PRO 5000 72GB 正确抄作业，效果很好。介绍复刻要点。 on Thu, 08 Oct 2026 12:31:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%E5%BC%A0%E5%85%89%E7%92%9E" aria-label="Profile: 张光璞">@<bdi>张光璞</bdi></a> 這72g是qwen next nvfp4的甜蜜點，就等有沒有人弄出來了</p>
]]></description><link>https://lcz.me/post/23289</link><guid isPermaLink="true">https://lcz.me/post/23289</guid><dc:creator><![CDATA[David Chen]]></dc:creator><pubDate>Thu, 08 Oct 2026 12:31:54 GMT</pubDate></item><item><title><![CDATA[Reply to NVIDIA RTX PRO 5000 72GB 正确抄作业，效果很好。介绍复刻要点。 on Thu, 08 Oct 2026 09:33:28 GMT]]></title><description><![CDATA[<p dir="auto">这么好的卡只跑27B 吗？  整整Strata Qwen3.8 Flash Next  让我们开开眼！</p>
]]></description><link>https://lcz.me/post/23267</link><guid isPermaLink="true">https://lcz.me/post/23267</guid><dc:creator><![CDATA[张光璞]]></dc:creator><pubDate>Thu, 08 Oct 2026 09:33:28 GMT</pubDate></item><item><title><![CDATA[Reply to NVIDIA RTX PRO 5000 72GB 正确抄作业，效果很好。介绍复刻要点。 on Thu, 08 Oct 2026 07:14:32 GMT]]></title><description><![CDATA[<p dir="auto">我弟一个帖子，开头人情就拉满，情商很高。然而我对此很不满，要是拍马屁，我也想凑一份。我Tony哥家的保安工作，我已经预定了，你休想和我抢。</p>
]]></description><link>https://lcz.me/post/23225</link><guid isPermaLink="true">https://lcz.me/post/23225</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Thu, 08 Oct 2026 07:14:32 GMT</pubDate></item></channel></rss>