<?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[小白抄作业成功 # 9700X+4080S 跑 Qwen3.8-27B Q6_K 128K双路+视觉 单路95t/s 踩坑记录]]></title><description><![CDATA[<h1>9700X + 4080S 32G 跑 Qwen3.8-27B 无审查版(Q6_K) 128K双路+视觉 完整部署与调优记录</h1>
<p dir="auto">看到论坛大神的《4080S 跑 Qwen3.8-27B 实测 61.7t/s》帖子，照着调了一晚上，最终单路比大神还快一点（主要是 n-max 扫出来的甜点位不同），分享下我的踩坑过程给后面的小白参考。</p>
<h2>1. 整机配置</h2>
<ul>
<li>CPU：AMD Ryzen 7 9700X（8核16线程）</li>
<li>主板：华硕 X670E HERO</li>
<li>内存：64GB DDR5</li>
<li>显卡：NVIDIA RTX 4080 SUPER 32GB（驱动 616.56）</li>
<li>系统：Windows 11</li>
</ul>
<h2>2. 先给结论</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项目</th>
<th>结果</th>
</tr>
</thead>
<tbody>
<tr>
<td>引擎</td>
<td>llama.cpp b10549（CUDA 后端）</td>
</tr>
<tr>
<td>模型</td>
<td>Qwen3.8-27B-abliterated-Q6_K（20.9 GB）</td>
</tr>
<tr>
<td>上下文</td>
<td>128K × 2 路并行（模型原生 262K）</td>
</tr>
<tr>
<td>视觉</td>
<td>mmproj bf16（+0.84GB，支持图片输入）</td>
</tr>
<tr>
<td>工具调用 decode</td>
<td>95.7 t/s（n-max 4）/ 81.8 t/s（n-max 3）</td>
</tr>
<tr>
<td>代码生成 decode</td>
<td>86.9 t/s（n-max 4）/ 80.9 t/s（n-max 3）</td>
</tr>
<tr>
<td>中文创作 decode</td>
<td>52.9 t/s（n-max 3）</td>
</tr>
<tr>
<td>双路并发</td>
<td>45-78 t/s ×2，总吞吐 95-160 t/s</td>
</tr>
<tr>
<td>显存占用</td>
<td>28.4 GB / 32 GB（含视觉）</td>
</tr>
<tr>
<td>温度</td>
<td>峰值 50-55°C</td>
</tr>
</tbody>
</table>
<p dir="auto">一句话：<strong>这台机器跑 Qwen3.8-27B Q6_K，单路 80-95 t/s、双路并发 45-78 t/s 是常态</strong>，128K 全 GPU 加载无 OOM，还能带视觉。</p>
<h2>3. 最大的坑：CUDA 没装上（小白必看）</h2>
<p dir="auto">一开始模型加载了但 GPU 显存 0 MiB，纯 CPU 跑 5 t/s，以为显卡不行，查了半天：</p>
<ul>
<li><code>nvidia-smi</code> 显示正常（驱动 616.56，CUDA UMD 13.4）</li>
<li><code>llama-server --list-devices</code> 返回 <strong>(none)</strong></li>
<li>系统里<strong>只有 NVIDIA 驱动，没有装 CUDA Toolkit</strong>（找不到 <code>cudart64_13.dll</code>）</li>
</ul>
<p dir="auto"><strong>根因</strong>：驱动 ≠ CUDA Toolkit。驱动只让 <code>nvidia-smi</code> 能跑，但 <code>ggml-cuda.dll</code> 需要 <code>cudart64_13.dll</code> 才能枚举设备。论坛大神的机器装了 CUDA Toolkit 所以没这个问题。</p>
<p dir="auto"><strong>解决</strong>：装 CUDA Toolkit 13.3.1 网络安装器（9.9MB，静默安装 2 分钟）：</p>
<pre><code class="language-batch">cuda_13.3.1_windows_network.exe -s -noaccepteula
</code></pre>
<p dir="auto">装完注意 PATH 要加 <strong><code>bin\x64</code></strong>（不是 <code>bin</code>，我一开始加错了还是 (none)）：</p>
<pre><code>C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.3\bin\x64
</code></pre>
<p dir="auto">加完 <code>--list-devices</code> 立刻识别到 <code>CUDA0: NVIDIA GeForce RTX 4080 SUPER (32759 MiB)</code>，速度直接从 5 t/s 跳到 80+。</p>
<h2>4. 调优过程（照着大神帖子改的）</h2>
<h3>4.1 n-max 扫描（最大提速来源）</h3>
<p dir="auto">大神帖子用的 n-max=2，我好奇扫了 2-5，发现 3 才是我的甜点位：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>n-max</th>
<th>tool</th>
<th>code</th>
<th>prose</th>
<th>结论</th>
</tr>
</thead>
<tbody>
<tr>
<td>2</td>
<td>65.9</td>
<td>66.2</td>
<td>49.6</td>
<td>大神用的，偏保守</td>
</tr>
<tr>
<td><strong>3</strong></td>
<td><strong>81.8</strong></td>
<td><strong>80.9</strong></td>
<td><strong>52.9</strong></td>
<td><strong>我的甜点位（推荐）</strong></td>
</tr>
<tr>
<td>4</td>
<td>95.7</td>
<td>86.9</td>
<td>49.0</td>
<td>工具最快，创作开始掉</td>
</tr>
<tr>
<td>5</td>
<td>89.7</td>
<td>90.7</td>
<td>40.8</td>
<td>创作崩了（接受率 0.23）</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>n-max 必须自己扫</strong>，别人的 2 不代表你的甜点位也是 2。</p>
<h3>4.2 上下文 64K → 128K</h3>
<p dir="auto">大神用的 64K，我试了 128K：显存从 24GB 涨到 27GB，速度只掉 5-11%（KV cache 翻倍，Flash Attention 开销增加），完全值得。Qwen3.8 原生 262K 不需要 YaRN。</p>
<h3>4.3 双路并行</h3>
<p dir="auto"><code>--parallel 2</code> + 128K：两个请求同时处理不排队，每个 45-78 t/s，总吞吐 95-160 t/s。也试了三路（<code>--parallel 3</code>），能跑但总吞吐反而降到 67 t/s，不划算。</p>
<h3>4.4 视觉</h3>
<p dir="auto">Qwen3.8 是 VL 模型，加 <code>--mmproj</code> 加载视觉编码器（bf16，只占 0.84GB），128K 双路 + 视觉显存 28.4GB，余量 4.4GB，稳。</p>
<h3>4.5 稳定性</h3>
<p dir="auto">双路 128K 跑了 15 分钟持续并发（690+ 请求）：</p>
<ul>
<li>显存全程 27.5GB，<strong>零增长</strong>（无泄漏）</li>
<li>温度峰值 50-55°C，离热降频（83°C）很远</li>
<li>零崩溃零 OOM</li>
</ul>
<h2>5. 最终启动脚本</h2>
<pre><code class="language-batch">cd /d C:\llama-b10549-bin-win-cuda-13.3-x64
set PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.3\bin\x64;%PATH%

taskkill /f /im llama-server.exe &gt;nul 2&gt;&amp;1
timeout /t 2 &gt;nul
nvidia-smi --gpu-reset -i 0 &gt;nul 2&gt;&amp;1
timeout /t 1 &gt;nul

start "llama-server" llama-server.exe ^
    -m "C:\AI-MODEL\Huihui-Qwen3.8-27B-abliterated\Huihui-Qwen3.8-27B-abliterated-Q6_K.gguf" ^
    --mmproj "C:\AI-MODEL\Huihui-Qwen3.8-27B-abliterated\mmproj-model-bf16.gguf" ^
    --port 8080 --host 127.0.0.1 ^
    -t 8 --parallel 2 ^
    --jinja --reasoning off ^
    -fa on ^
    --cache-type-k q8_0 --cache-type-v q8_0 ^
    --fit-target 2048 ^
    -n 8192 ^
    -c 131072 ^
    --spec-type draft-mtp --spec-draft-n-max 3 ^
    --temp 0.7 --top-p 0.8 --top-k 20
</code></pre>
<h2>6. 给同是小白的提醒</h2>
<ol>
<li><strong>驱动 ≠ CUDA Toolkit</strong>。只装驱动跑不了 CUDA offload，<code>--list-devices</code> 返回 (none) 就是这个原因</li>
<li><strong>CUDA 13.3 的 DLL 在 <code>bin\x64</code></strong> 不是 <code>bin</code>，PATH 加错照样 (none)</li>
<li><strong>n-max 必须自己扫</strong>，抄别人的没用</li>
<li><strong><code>--reasoning off</code></strong> 不是 <code>--reasoning-budget 0</code>，前者关思考链，后者只是截断</li>
<li><strong>双路是甜点位</strong>，三路总吞吐反而降</li>
</ol>
<p dir="auto">感谢论坛大神们的帖子，让我这个小白少走了一晚上弯路。</p>
]]></description><link>https://lcz.me/topic/1614</link><generator>RSS for Node</generator><lastBuildDate>Sun, 20 Sep 2026 22:33:59 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/1614.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 10 Sep 2026 19:00:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 小白抄作业成功 # 9700X+4080S 跑 Qwen3.8-27B Q6_K 128K双路+视觉 单路95t/s 踩坑记录 on Tue, 15 Sep 2026 08:26:10 GMT]]></title><description><![CDATA[<p dir="auto">某天逛 reddit 看到有歪果人说， 异构的，或者是奇数显卡，可以用TABBY API起飞。</p>
]]></description><link>https://lcz.me/post/18327</link><guid isPermaLink="true">https://lcz.me/post/18327</guid><dc:creator><![CDATA[stxpnet]]></dc:creator><pubDate>Tue, 15 Sep 2026 08:26:10 GMT</pubDate></item><item><title><![CDATA[Reply to 小白抄作业成功 # 9700X+4080S 跑 Qwen3.8-27B Q6_K 128K双路+视觉 单路95t/s 踩坑记录 on Fri, 11 Sep 2026 17:44:32 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> <a href="/post/17364">说</a>:</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/enigma" aria-label="Profile: Enigma">@<bdi>Enigma</bdi></a> 调好了发作业，图文并茂，我给你置顶。</p>
</blockquote>
<p dir="auto">好嘞</p>
]]></description><link>https://lcz.me/post/17383</link><guid isPermaLink="true">https://lcz.me/post/17383</guid><dc:creator><![CDATA[Enigma]]></dc:creator><pubDate>Fri, 11 Sep 2026 17:44:32 GMT</pubDate></item><item><title><![CDATA[Reply to 小白抄作业成功 # 9700X+4080S 跑 Qwen3.8-27B Q6_K 128K双路+视觉 单路95t/s 踩坑记录 on Fri, 11 Sep 2026 16:01:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/enigma" aria-label="Profile: Enigma">@<bdi>Enigma</bdi></a> 调好了发作业，图文并茂，我给你置顶。</p>
]]></description><link>https://lcz.me/post/17364</link><guid isPermaLink="true">https://lcz.me/post/17364</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Fri, 11 Sep 2026 16:01:14 GMT</pubDate></item><item><title><![CDATA[Reply to 小白抄作业成功 # 9700X+4080S 跑 Qwen3.8-27B Q6_K 128K双路+视觉 单路95t/s 踩坑记录 on Fri, 11 Sep 2026 05:55:03 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> <a href="/post/17263">说</a>:</p>
<p dir="auto">很好的分享，格式工整，附带实际截图或者硬件实拍就更好。</p>
</blockquote>
<p dir="auto">好的，回头补上截图。一直听你说sglang的优势，已经在调试...</p>
]]></description><link>https://lcz.me/post/17268</link><guid isPermaLink="true">https://lcz.me/post/17268</guid><dc:creator><![CDATA[Enigma]]></dc:creator><pubDate>Fri, 11 Sep 2026 05:55:03 GMT</pubDate></item><item><title><![CDATA[Reply to 小白抄作业成功 # 9700X+4080S 跑 Qwen3.8-27B Q6_K 128K双路+视觉 单路95t/s 踩坑记录 on Fri, 11 Sep 2026 04:29:33 GMT]]></title><description><![CDATA[<p dir="auto">很好的分享，格式工整，附带实际截图或者硬件实拍就更好。</p>
]]></description><link>https://lcz.me/post/17263</link><guid isPermaLink="true">https://lcz.me/post/17263</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Fri, 11 Sep 2026 04:29:33 GMT</pubDate></item><item><title><![CDATA[Reply to 小白抄作业成功 # 9700X+4080S 跑 Qwen3.8-27B Q6_K 128K双路+视觉 单路95t/s 踩坑记录 on Fri, 11 Sep 2026 03:56:53 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/xiaote" aria-label="Profile: Xiaote">@<bdi>Xiaote</bdi></a> <a href="/post/17204">说</a>:</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/enigma" aria-label="Profile: Enigma">@<bdi>Enigma</bdi></a> 记录写得很好，尤其是「驱动 ≠ CUDA Toolkit」那一段——Windows 上 ggml-cuda.dll 找不到 cudart64_13.dll 就静默退回 CPU，nvidia-smi 却一切正常，这个坑每年都要埋一批人，把它写进帖子里对小白的价值最大。</p>
<p dir="auto">你那张 n-max 表格里还藏了一个值得单独标出来的现象：tool / code 两列在 n-max=4 最高（95.7 / 86.9），但 prose 反而在 n-max=3 最好（52.9），到 4 掉回 49.0。这大概率不是测量噪声，而是投机解码 draft 头在不同任务上的接受率差异——代码和工具调用的模板重复度高、可预测，draft 容易命中，拉高 n-max 就是白赚；散文每一步的分布更平，命中率低，n-max 拉高只会多付验证开销，被拒还要回退。</p>
<p dir="auto">所以「甜点位」是跟着工况走的，不是一个固定值。建议结论那一行改成「工具/代码向 n-max=4，创作向 n-max=3」，后来人抄作业才不容易抄错。另外你双路 45-78 t/s、总吞吐 95-160 t/s 这组数，也印证了两路是真的同时在 decode，不是轮流跑——对正在选卡的人是很有用的数据点。</p>
</blockquote>
<p dir="auto">应该是：工具/代码向 n-max=4，创作向 n-max=3</p>
]]></description><link>https://lcz.me/post/17242</link><guid isPermaLink="true">https://lcz.me/post/17242</guid><dc:creator><![CDATA[Enigma]]></dc:creator><pubDate>Fri, 11 Sep 2026 03:56:53 GMT</pubDate></item><item><title><![CDATA[Reply to 小白抄作业成功 # 9700X+4080S 跑 Qwen3.8-27B Q6_K 128K双路+视觉 单路95t/s 踩坑记录 on Thu, 10 Sep 2026 22:03:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/enigma" aria-label="Profile: Enigma">@<bdi>Enigma</bdi></a> 记录写得很好，尤其是「驱动 ≠ CUDA Toolkit」那一段——Windows 上 ggml-cuda.dll 找不到 cudart64_13.dll 就静默退回 CPU，nvidia-smi 却一切正常，这个坑每年都要埋一批人，把它写进帖子里对小白的价值最大。</p>
<p dir="auto">你那张 n-max 表格里还藏了一个值得单独标出来的现象：tool / code 两列在 n-max=4 最高（95.7 / 86.9），但 prose 反而在 n-max=3 最好（52.9），到 4 掉回 49.0。这大概率不是测量噪声，而是投机解码 draft 头在不同任务上的接受率差异——代码和工具调用的模板重复度高、可预测，draft 容易命中，拉高 n-max 就是白赚；散文每一步的分布更平，命中率低，n-max 拉高只会多付验证开销，被拒还要回退。</p>
<p dir="auto">所以「甜点位」是跟着工况走的，不是一个固定值。建议结论那一行改成「工具/代码向 n-max=4，创作向 n-max=3」，后来人抄作业才不容易抄错。另外你双路 45-78 t/s、总吞吐 95-160 t/s 这组数，也印证了两路是真的同时在 decode，不是轮流跑——对正在选卡的人是很有用的数据点。</p>
]]></description><link>https://lcz.me/post/17204</link><guid isPermaLink="true">https://lcz.me/post/17204</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Thu, 10 Sep 2026 22:03:55 GMT</pubDate></item></channel></rss>