<?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 4500 32G 跑 Qwen3.8-27B：Unsloth Desktop 默认参数 + MTP，2 槽位 × 150K，短上下文 54–64 t/s（GSP 篇续集，附完整配置）]]></title><description><![CDATA[<h1>RTX PRO 4500 32G 跑 Qwen3.8-27B：Unsloth Desktop 默认参数 + MTP，2 槽位 × 150K，短上下文 54–64 t/s（GSP 篇续集，附完整配置）</h1>
<blockquote>
<p dir="auto">平台：Linux（Ubuntu）/ llama.cpp（Unsloth Desktop 0.1.801 生成参数）/ NVIDIA RTX PRO 4500 Blackwell 32GB<br />
模型：Qwen3.8-27B-UD-Q4_K_XL（Unsloth Dynamic v3.0，17.56GB）+ mmproj-F16（0.88GB）<br />
配置：2 并行槽位 / 153856 ctx / MTP n-max 2 / Flash Attention / KV unified（q8_0：K=Q8_0 + V=Q8_0）<br />
日期：2026-08-21（含全天 MTP 接受率统计 195 次请求 + 高上下文压测）<br />
上一篇：《Qwen3.8-27B llama.cpp 部署实测与 Blackwell GSP 崩溃分析》（topic/1222），本篇是同一张卡的另一套日常配置，两篇对照着看。</p>
</blockquote>
<p dir="auto">这张 RTX PRO 4500 买来就是为了跑本地 LLM，上篇踩了 GSP 崩溃的坑，折腾了不少。后来翻了论坛上各位大神的帖子（5070 Ti、双 3090、7900 XTX 的实测），又研究了 Unsloth 的桌面软件（口碑不错，会根据不同硬件自动生成初始参数）。拿到它的默认参数后，在实机上慢慢调，先加 MTP，再调 KV 量化，一步一步来。现在这套配置跑了一段时间，貌似不怎么崩了，分享给大家参考。</p>
<h2>一、先说结论</h2>
<ul>
<li>
<p dir="auto">上一帖是「单槽位 + 128K + K4V4」的稳定性向配置（67.2 t/s 压测均速）。这次换了 Unsloth Desktop 0.1.801 自动生成的默认参数 + 手动加 MTP，<strong>2 槽位 × 150K 日常向配置</strong>：短上下文平均 54.6 t/s（45.4–64.1），71K 上下文 18.6–41.1 t/s。</p>
</li>
<li>
<p dir="auto"><strong>MTP 接受率 72.87%</strong>（195 次请求全天统计），平均每次验证步骤实际产出 2.55 个 token，理论加速上限 ~2.5×，<strong>实测相对关 MTP（24.5 t/s）加速 2.2–2.6×</strong>，效率约 89%。</p>
</li>
<li>
<p dir="auto">Unsloth Desktop 的自动参数直接可用，我只手动加了 2 行（MTP 开关 + n-max），没手调其它参数。32GB 卡跑 2 槽位 × 150K 全层 GPU，显存 ≈25.4GB，余量 ~6.6GB（q8_0 KV）。</p>
</li>
<li>
<p dir="auto">白话：MTP = 模型自带的「草稿头」先猜 2 个 token，主模型一次前向全部验证，猜中就白拿。猜中率 72.87%，等于每步白捡 1.5 个 token，速度直接翻 2 倍出头。</p>
</li>
<li>
<p dir="auto">注意：2 小时 0 崩溃 ≠ 长期稳定，Blackwell GSP 固件 bug（Xid 62/8/154）还在，根因分析与规避手段见上一篇，本篇不重复。</p>
</li>
</ul>
<h2>二、模型参数卡（官方 config.json × GGUF 头双重核对）</h2>
<p dir="auto">以下数据来自 HuggingFace 官方 Qwen/Qwen3.8-27B 的 config.json，并与本地 GGUF 头部元数据逐项核对一致：</p>
<p dir="auto">| 项 | 值 |<br />
| 架构 | Qwen3_5ForConditionalGeneration（model_type: qwen3_5），原生多模态：文本 + 图像 + 视频 |<br />
| 参数量 | 27B（dense，非 MoE），BF16 原生 |<br />
| 层数 | 64 主层 + 1 MTP 层（GGUF block_count=65） |<br />
| 注意力 | 混合式：48 层线性注意力（Gated DeltaNet：conv k=4，16 key heads × 128 / 48 value heads × 128，SSM fp32）+ 16 层全注意力（full_attention_interval=4） |<br />
| 全注意力细节 | 24 heads / 4 KV heads（GQA 6:1），head_dim 256，partial rotary 0.25，rope_theta 1e7，mRoPE 交错（多模态 RoPE） |<br />
| 隐层 / FFN | hidden 5120 / FFN 17408（SiLU + 输出门） |<br />
| 上下文 | 原生 256K（max_position_embeddings 262144） |<br />
| MTP | mtp_num_hidden_layers=1，共享 embeddings（无独立 embed 表），即 llama.cpp 的 <code>--spec-type draft-mtp</code> |<br />
| 词表 | 248,320 |<br />
| 视觉塔 | ViT depth 27 / hidden 1152，image_token 248056 / video_token 248057 |<br />
| 量化（本卡） | UD-Q4_K_XL（Unsloth Dynamic v3.0 混合精度，imatrix 校准），17.56GB，≈5.2 BPW；mmproj-F16 0.88GB |<br />
| 仓库 | 官方 Qwen/Qwen3.8-27B（apache-2.0）/ 量化 unsloth/Qwen3.8-27B-GGUF |</p>
<p dir="auto">两个和本篇速度直接相关的点：<strong>只有 16 层全注意力存 KV cache</strong>（线性注意力层只占固定大小状态），所以 150K 上下文的 KV 在 f16 下 ~10GB、q8_0 下 ~5.4GB，2 槽位才塞得下；MTP 头共享 lm_head，不额外占权重。</p>
<h2>三、硬件 / 软件环境</h2>
<p dir="auto">| 项 | 配置 |<br />
| 显卡 | NVIDIA RTX PRO 4500 Blackwell 32GB（sm_120，GB202，显存带宽 896 GB/s） |<br />
| 系统 | Ubuntu（Linux） |<br />
| 框架 | llama.cpp，Unsloth Desktop 0.1.801 安装并生成启动参数 |<br />
| 模型 | Qwen3.8-27B-UD-Q4_K_XL.gguf（17.56GB）+ mmproj-F16.gguf（0.88GB） |<br />
| 服务方式 | systemd 服务 llama-qwen-27B.service，端口 8000 |</p>
<h2>四、完整配置（可直接复制）</h2>
<p dir="auto">Unsloth Desktop 自动生成基础参数，我手动只加了 MTP 两行（--spec-type / --spec-draft-n-max）：</p>
<pre><code># systemd service: llama-qwen-27B.service
llama-server \
  -m ~/models/Qwen3.8-27B/Qwen3.8-27B-UD-Q4_K_XL.gguf \
  --mmproj ~/models/Qwen3.8-27B/mmproj-F16.gguf \
  --alias Qwen3.8-27B \
  --port 8000 \
  --parallel 2 \
  --flash-attn on \
  --no-context-shift \
  -c 153856 \
  -ngl -1 \
  --fit off \
  --metrics \
  --slot-save-path ~/.unsloth/studio/cache/llama-slots \
  --kv-unified \
  --jinja \
  --spec-type draft-mtp \
  --spec-draft-n-max 2 \
  --reasoning on --reasoning-preserve
</code></pre>
<h3>关键参数说明</h3>
<p dir="auto">| 参数 | 为什么 |<br />
| <code>--spec-type draft-mtp</code> / <code>--spec-draft-n-max 2</code> | MTP 投机解码，每步猜 2 个。参数名别写旧名 mtp（启动直接失败）；n≥3 在 Blackwell 上收益递减（上篇实测） |<br />
| <code>--parallel 2</code> | 2 槽位并行，主对话 + 后台任务同时跑，互不排队 |<br />
| <code>-c 153856</code> | ~150K 上下文。模型原生 256K，但 ctx 越长单次 kernel 耗时越接近 GSP 看门狗阈值（上篇），150K 是 2 槽位的显存/稳定平衡点 |<br />
| <code>--kv-unified</code> | 多槽位共享统一 KV 内存池，避免每槽位独立预分配的碎片浪费 |<br />
| <code>--flash-attn on</code> | 必须开。关闭后 attention kernel 更慢，既掉速又更贴近 GSP 7 秒看门狗阈值 |<br />
| <code>--no-context-shift</code> | 上下文超限时直接报错而不是静默截断/移位，agent 场景不接受静默降级 |<br />
| <code>--reasoning on --reasoning-preserve</code> | 保留思考 token，多轮 agent 场景思考链不丢 |<br />
| <code>-ngl -1</code> / <code>--fit off</code> | 全层上 GPU（32GB 放得下），禁用自动压缩 |<br />
| <code>--slot-save-path</code> | Unsloth Desktop 的槽位状态缓存，桌面端重开可恢复会话 |<br />
<strong>显存账本（2 槽位 × 150K，当前 q8_0 KV）：</strong> 权重 17.56GB + mmproj 0.88GB + KV（16 层全注意力 × 153856 token × 34KB/token）≈ 5.4GB + 线性注意力状态与计算缓冲 ≈ 0.6GB ≈ <strong>25.4GB / 32GB</strong>，余量 ~6.6GB（切换后实测比 f16 省 3.6GB）。</p>
<h2>五、实测数据</h2>
<p dir="auto">测法：短上下文 = 日常真实请求，speed 取自 systemd journalctl 实时日志（llama-server 每请求一条 prompt eval + eval 统计）；高上下文 = 预置 ~71K token 填充后生成 4096 token；接受率 = journalctl 的 Draft Acceptance 行，全天 195 次请求全量统计，非抽样。</p>
<h3>5.1 短上下文（日常交互，2026-08-21 14:33–14:36）</h3>
<p dir="auto">| 时间 | 生成 tokens | 耗时 (ms) | 速度 (t/s) |<br />
| 14:33:42 | 2588 | 45254 | 57.17 |<br />
| 14:34:06 | 1160 | 23092 | 50.19 |<br />
| 14:34:29 | 1140 | 21017 | 54.19 |<br />
| 14:34:45 | 873 | 14390 | 60.60 |<br />
| 14:34:57 | 488 | 10242 | 47.55 |<br />
| 14:35:06 | 394 | 7984 | 49.22 |<br />
| 14:35:21 | 838 | 13048 | 64.14 |<br />
| 14:35:35 | 811 | 12853 | 63.02 |<br />
| 14:35:56 | 752 | 16555 | 45.36 |<br />
| 14:36:07 | 525 | 9589 | 54.65 |</p>
<p dir="auto"><strong>平均 54.6 t/s，范围 45.36–64.14。</strong> 波动主要来自 2 槽位偶发并发与请求长度分布，非性能衰减。（注：本表为 f16 KV 时代数据，切换 q8_0 后短 ctx 实测更高，见 5.5）</p>
<h3>5.2 高上下文压测（~71K ctx 填充 + 4096 生成，2026-08-21 13:14–13:30）</h3>
<p dir="auto">| 请求 | 上下文 tokens | 生成 tokens | 耗时 (s) | 速度 (t/s) |<br />
| req 1 | 71280 | 4096 | 220.5 | 18.6 |<br />
| req 2 | 71764 | 4096 | 99.5 | 41.1 |<br />
| req 4 | 71791 | 4096 | 380.6 | 10.8（离群，见踩坑 #4） |</p>
<p dir="auto">71K 上下文下 18.6–41.1 t/s，衰减明显但可用。高 ctx 下 MTP 收益缩小（验证步骤变贵），这是混合注意力模型的通性，不是配置问题。</p>
<h3>5.3 MTP 接受率（全天 195 次请求）</h3>
<ul>
<li>平均接受率 <strong>72.87%</strong>，范围 62.7%–97.6%</li>
<li>平均每次验证步骤产出 <strong>2.55 token</strong>（1 个主模型 bonus + 1.55 个被接受的草稿）</li>
<li>接受率与内容强相关：结构化输出（JSON/代码/固定格式）常 93%–97.6%，自由长文本 62.7%–77%</li>
</ul>
<p dir="auto">抽样 10 次：</p>
<p dir="auto">| 时间 | 接受率 | 接受/生成 | 每步 token |<br />
| 14:33:42 | 87.57% | 1648/1882 | 2.75 |<br />
| 14:34:06 | 71.95% | 685/952 | 2.44 |<br />
| 14:34:29 | 76.28% | 688/902 | 2.53 |<br />
| 14:34:45 | 93.42% | 568/608 | 2.87 |<br />
| 14:34:57 | 62.73% | 271/432 | 2.25 |<br />
| 14:35:06 | 67.26% | 226/336 | 2.35 |<br />
| 14:35:21 | 96.33% | 551/572 | 2.93 |<br />
| 14:35:35 | 97.64% | 537/550 | 2.95 |<br />
| 14:35:56 | 67.71% | 432/638 | 2.35 |<br />
| 14:36:07 | 92.94% | 342/368 | 2.86 |</p>
<h3>5.4 上下文衰减阶梯（8K–128K，2026-08-21 补测）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>上下文</th>
<th>实际 token</th>
<th>Prefill (t/s)</th>
<th>生成速度 (t/s)</th>
<th>相对基线</th>
</tr>
</thead>
<tbody>
<tr>
<td>~2K（日常对话）</td>
<td>37–49</td>
<td>~220</td>
<td>72.4</td>
<td>100%</td>
</tr>
<tr>
<td>8K</td>
<td>8,222</td>
<td>1,498</td>
<td>70.7</td>
<td>97.7%</td>
</tr>
<tr>
<td>16K</td>
<td>16,414</td>
<td>1,455</td>
<td>67.8</td>
<td>93.6%</td>
</tr>
<tr>
<td>32K</td>
<td>32,798</td>
<td>1,330</td>
<td>64.2</td>
<td>88.7%</td>
</tr>
<tr>
<td>64K</td>
<td>65,556</td>
<td>1,189</td>
<td>58.3</td>
<td>80.5%</td>
</tr>
<tr>
<td>128K</td>
<td>131,076</td>
<td>873</td>
<td>51.7</td>
<td>71.4%</td>
</tr>
</tbody>
</table>
<p dir="auto">测法：slot 0、MTP n2、reasoning off（纯速度测量）、每级预热后取稳态值（f16 KV 下测得）。衰减是<strong>渐进的</strong>，32K 以内基本无感（&lt;12%），64K 起有感（~20%），128K 掉 ~29% 仍有 52 t/s。<strong>"明显变慢"的分水岭约在 64K–100K</strong>。</p>
<h3>5.5 q8_0 KV 量化实测（2026-08-21 切换后）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>指标</th>
<th>f16（之前）</th>
<th>q8_0（现在）</th>
<th>变化</th>
</tr>
</thead>
<tbody>
<tr>
<td>VRAM 占用</td>
<td>~29 GB</td>
<td><strong>~25.4 GB</strong></td>
<td><strong>-3.6 GB</strong></td>
</tr>
<tr>
<td>显存余量</td>
<td>~3 GB</td>
<td><strong>~6.6 GB</strong></td>
<td>+3.6 GB</td>
</tr>
<tr>
<td>32K 上下文生成速度</td>
<td>64.2 t/s</td>
<td><strong>68.4 t/s</strong></td>
<td><strong>+6%</strong></td>
</tr>
<tr>
<td>GPU 利用率（生成时）</td>
<td>高</td>
<td><strong>93-100%</strong></td>
<td>正常</td>
</tr>
<tr>
<td>CPU 占用</td>
<td>正常</td>
<td><strong>~100%（单核）</strong></td>
<td>正常</td>
</tr>
</tbody>
</table>
<p dir="auto">q8_0 全 8bit KV 切换后 VRAM 从 ~29GB 降至 ~25.4GB（省 3.6GB），32K 生成速度 68.4 t/s 比 f16 还快 6%。<strong>踩坑记录</strong>：先试过 q8v4（K=Q8+V=Q4）不对称方案，但 llama.cpp 的 flash attention 没有 K/V 混合类型的 CUDA kernel，运行时整体回退到 CPU——GPU 利用率掉到 0-25%、CPU 8 核满载、32K 上下文速度从 64 t/s 崩到 15.8 t/s。<strong>关键结论：K/V cache 必须对称</strong>——K4V4（Q4+Q4）实测 32K=59.1 / 64K=44.4 t/s 完全正常，q8_0（Q8+Q8）也正常。切换 KV 量化后务必跑长上下文验证（短 ctx 测不出来）。</p>
<h3>5.6 DFlash2 块扩散投机解码对比实测（2026-08-21）</h3>
<p dir="auto">DFlash2 是 Z-Lab 的块扩散草稿模型（Inco 发布 Qwen3.8-27B 专用草稿头），llama.cpp 支持 <code>--spec-type draft-dflash</code>（本机 commit 5ecbe1a）。用独立测试服务（端口 8001，q8_0 KV 与生产一致）实测对比：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>上下文</th>
<th>MTP n2（生产）</th>
<th>DFlash2（测试）</th>
<th>胜者</th>
</tr>
</thead>
<tbody>
<tr>
<td>短 ctx</td>
<td><strong>72.4 t/s</strong></td>
<td>47.3 t/s</td>
<td>MTP（快 53%）</td>
</tr>
<tr>
<td>32K</td>
<td><strong>64.2 t/s</strong></td>
<td>54.0 t/s</td>
<td>MTP（快 19%）</td>
</tr>
<tr>
<td>64K</td>
<td><strong>58.3 t/s</strong></td>
<td>45.9 t/s</td>
<td>MTP（快 27%）</td>
</tr>
<tr>
<td>64K 衰减</td>
<td>19%</td>
<td>37%</td>
<td>MTP 更平缓</td>
</tr>
<tr>
<td>GPU 利用率</td>
<td>93-100%</td>
<td>93-97%</td>
<td>平</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>结论：本卡上 DFlash2 全面落后 MTP n2，不值得切换。</strong> 根因：Q4_K_M 草稿接受率仅 26.8%（vs MTP 72.87%），块扩散每步验证 8 个 token 的前向开销没被低接受率赚回来；短 ctx 下验证成本占比更高所以最慢。DFlash2 官方说明为无损投机（greedy 输出与主模型一致），质量无虞，只是速度不划算。</p>
<p dir="auto">备注：<code>--hf-repo-draft</code> 在本构建有 bug（草稿路径解析为空），需用 <code>--model-draft</code> 指定本地 GGUF 路径。</p>
<h2>六、MTP 加速账：从接受率到 2.2×</h2>
<p dir="auto">n-max 2 时每步产出 = 1 + p₁ + p₁·p₂（p₁、p₂ 为两个草稿位置的条件接受概率），实测均值 2.55 token/步。验证 3 个 token 的前向比单 token 略贵，理论上限约 2.5×。</p>
<p dir="auto">| 配置 | 短上下文速度 | 相对无 MTP |<br />
| MTP n-max 2（本篇，2 槽位 150K） | 54.6 t/s（均值） | <strong>2.23×</strong>（范围 1.85–2.62×） |<br />
| MTP 关闭（同卡实测 2026-08-19） | 24.5 t/s | 1× |<br />
| 理论上限（2.55 token/步） | — | ~2.5× |</p>
<p dir="auto">实测 2.23× 达到理论上限的 ~89%，剩余 11% 就是验证开销 + 偶尔的整组拒绝。这个效率对 dense 模型来说很健康（社区 MoE 模型 MTP 常见 1.5–1.7×，见 topic/1207 注）。</p>
<h2>七、社区跨卡对照（同模型 Qwen3.8-27B，均为本版论坛实测帖）</h2>
<p dir="auto">| 卡 | 框架 | 量化 | 配置 | 速度 | 出处 |<br />
| RTX PRO 4500 32G（本篇） | llama.cpp | UD-Q4_K_XL | 2 槽位 150K，MTP n2 | 54.6（短 ctx 均值） | 本帖 |<br />
| RTX PRO 4500 32G（上篇） | llama.cpp | UD-Q4_K_XL | 1 槽位 128K，MTP n2，K4V4 | 67.2（1h 压测均值） | topic/1222 |<br />
| RTX 5070 Ti 16G | llama.cpp | IQ4_XS | 1 槽位 32K | 38–43 | topic/1207 |<br />
| 双 3090 24G NVLink | vLLM | AWQ-INT4 | 262K，MTP n3 | ~130（工具调用） | topic/1245 |<br />
| 7900 XTX 24G | llama.cpp Vulkan | Q4_K_M | 1 槽位 128K | 73.4 | topic/1164 |<br />
| 7900 XTX 24G | llama.cpp Vulkan | Q4_K_M | 1 槽位 256K，MTP n3，K4V4 | 67 | topic/100 |</p>
<p dir="auto">ctx、量化、框架、槽位数都不同，这张表只给量级感：32GB 卡单卡 llama.cpp 路线，短上下文 50–67 t/s 是这个模型在 Blackwell 专业卡上的正常水位。</p>
<p dir="auto"><strong>关于 topic/100（7900XTX + K4V4）的补充</strong>：该帖的 K4V4（Q4+Q4 对称）跑满 256K 正常，与本篇结论互相印证——llama.cpp 对<strong>对称 KV 类型</strong>（K4V4 或 q8_0）的支持与显卡无关，NVIDIA CUDA 下对称 K4V4 同样正常（本篇实测 32K=59.1 / 64K=44.4 t/s）。q8v4（K=Q8+V=Q4）混合类型回退 CPU 是 llama.cpp 通病，AMD Vulkan 后端同样不应混用。</p>
<h2>八、踩坑与经验</h2>
<ol>
<li><strong>MTP 参数名</strong>：<code>--spec-type draft-mtp</code>，写旧名 mtp 直接启动失败（日志里一句 spec 相关行都没有就是没启用）；n-max 2 是 Blackwell 甜点位，n≥3 验证开销追上接受率收益。</li>
<li><strong>Unsloth Desktop 自动参数直接可用</strong>：0.1.801 生成的 flash-attn / kv-unified / no-context-shift / fit off 组合在 32GB 卡上开箱即稳，本次唯一手改就是 MTP 两行。桌面端小白流和手搓 systemd 流殊途同归。</li>
<li><strong>2 槽位 × 150K 的显存红线 ≈29GB</strong>：再往上（200K 或 3 槽位）就吃紧。优先 q8_0（<code>--cache-type-k q8_0 --cache-type-v q8_0</code>，质量几乎无损，省 ~3.6GB）；q4_0（K4V4）不建议（8.3% 输出相似度质量悬崖 + CPU 回退风险）。</li>
<li><strong>req4 的 10.8 t/s 是离群点</strong>：380 秒跑 4096 token，量级对应 GSP 看门狗心跳窗口 + 2 槽位争抢，不作外推依据；遇到单次掉速先看 journalctl 有没有 NVRM/Xid 行，有就是上篇那个 bug，没有就是槽位争抢。</li>
<li><strong>稳定性预期管理</strong>：本篇 08-21 13:45 启动、0 崩溃、稳定 2 小时——但 GSP 固件 bug（Xid 62/154/79 或静默硬挂，需断电恢复）没修，无人值守批量推理必须挂看门狗 + 断电恢复（或留请求间隔 / 关 GSP），详见上篇根因章节。</li>
<li><strong>接受率是内容函数不是配置函数</strong>：JSON/代码类结构化输出接受率 93%+，自由文本 63% 上下。如果你的 agent 负载以结构化为主，MTP 收益只会比本篇更高。</li>
<li><strong>K/V cache 必须对称（重要）</strong>：llama.cpp 的 flash attention 不支持 K/V 混合类型（如 K=Q8_0+V=Q4_0），会整体回退到 CPU（GPU 利用率 0-25%、CPU 8 核满载、32K 速度暴跌 4 倍）。对称组合 K4V4（Q4+Q4）和 q8_0（Q8+Q8）都正常。切换 KV 量化后务必跑 32K/64K 长上下文验证（短 ctx 测不出来）。</li>
</ol>
<h2>九、KV 量化质量对比与下一步</h2>
<h3>质量影响（网测数据）</h3>
<p dir="auto">InventiveHQ 在同模型上做了 f16 / q8_0 / q4_0 KV cache 直接对比（8K 上下文）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>KV 类型</th>
<th>输出相似度（vs f16）</th>
<th>评价</th>
</tr>
</thead>
<tbody>
<tr>
<td>f16（基准）</td>
<td>100%</td>
<td>—</td>
</tr>
<tr>
<td><strong>q8_0</strong></td>
<td><strong>81.6%</strong></td>
<td>安全交易，质量损失可控</td>
</tr>
<tr>
<td><strong>q4_0</strong></td>
<td><strong>8.3%</strong></td>
<td>质量悬崖，回答完全不同</td>
</tr>
</tbody>
</table>
<p dir="auto">Particula.tech 补充：Qwen 系列在 q8_0 下 KL 散度 &lt; 0.04（极低），q4_0 损失真实且模型相关。来源：<a href="https://inventivehq.com/blog/kv-cache-quantization-quality-benchmark" rel="nofollow ugc">InventiveHQ</a> / <a href="https://particula.tech/blog/kv-cache-quantization-accuracy-loss-benchmarks" rel="nofollow ugc">Particula</a></p>
<p dir="auto"><strong>对本模型的特殊考虑</strong>：Qwen3.8-27B 只有 16/65 层存 KV（48 层线性注意力是 fp32 无损状态），质量影响理论上比同参数纯 Transformer 小得多。</p>
<p dir="auto"><strong>社区实际使用反馈</strong>：有用户在 7900XTX 24G 上用 K4V4（Q4_0 KV）跑满 256K 上下文做代码生成，评价"质量不比在线 API 差"（<a href="https://lcz.me/topic/100">topic/100</a>）。这与 InventiveHQ 的 8.3% 相似度数据存在张力——可能的原因：(1) 8.3% 是文本相似度指标，捕捉到了措辞/表述差异，但代码功能正确性不受影响；(2) Qwen3.6-27B 与 Qwen3.8-27B 架构不同，质量衰减可能不同；(3) 主观感受难以捕捉长上下文末尾的细微召回丢失。<strong>结论：K4V4 对代码生成可能"够用"，但对长文档精确召回（如 needle-in-haystack）仍有风险，q8_0 是更稳妥的选择。</strong></p>
<h3>q8_0（K=Q8, V=Q8）分析（q8v4 已弃用）</h3>
<p dir="auto">q8_0 全量 8bit KV：每 token 34KB（vs f16 64KB / q4_0 18KB）。曾试过 q8v4（K=Q8+V=Q4）不对称方案，但 llama.cpp 的 flash attention 不支持 K/V 混合类型，整体回退 CPU（GPU 0-25%、CPU 8 核满载、32K 崩到 15.8 t/s），不可用。<strong>对称组合都正常</strong>：K4V4（Q4+Q4）32K=59.1 / 64K=44.4 t/s，q8_0（Q8+Q8）32K=68.4 t/s。</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>方案</th>
<th>每 token KV</th>
<th>150K 池</th>
<th>总显存</th>
<th>余量</th>
</tr>
</thead>
<tbody>
<tr>
<td>f16（现状）</td>
<td>64KB</td>
<td>9.9GB</td>
<td>~29GB</td>
<td>~3GB</td>
</tr>
<tr>
<td><strong>q8_0（已上线）</strong></td>
<td>34KB</td>
<td>5.4GB</td>
<td><strong>~25.4 GB（实测）</strong></td>
<td><strong>~6.6 GB</strong></td>
</tr>
<tr>
<td>q4_0（K4V4）</td>
<td>18KB</td>
<td>2.8GB</td>
<td>~21.8GB</td>
<td>~10.2GB</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>为什么不推荐 q8v4 不对称方案</strong>：理论上 Key 用 Q8 保留注意力模式精度、Value 用 Q4 省显存很诱人，但 llama.cpp 的 flash attention 只支持对称 KV 类型，K=Q8+V=Q4 混合会整体回退 CPU（GPU 利用率 0-25%、CPU 8 核满载、32K 速度崩到 15.8 t/s），实际不可用。<strong>K/V 类型必须对称</strong>（K4V4 或 q8_0 均可，速度都正常）。</p>
<p dir="auto">（补充：q8v4 在非 Unsloth 配置下崩过，但归因是 GSP 固件 bug 的负载模式触发，与量化格式无因果。）</p>
<h3>下一步建议</h3>
<ol>
<li><strong>日常已切换 q8_0</strong>（K=Q8_0 + V=Q8_0）：VRAM ~25.4GB / 余量 ~6.6GB / 32K 上下文 68.4 t/s，标准版与免审查版均已生效。</li>
<li><strong>需要省显存时首选 q8_0</strong>（<code>--cache-type-k q8_0 --cache-type-v q8_0</code>），质量几乎无损，多 ~4.7GB 余量，够冲 200K 或第 3 槽位。</li>
<li><strong>q8v4 已弃用</strong>：K/V 混合类型（Q8+Q4）触发 CPU 回退（GPU 闲置、CPU 满载、速度暴跌 4 倍），不要用；K/V 类型保持对称（K4V4 或 q8_0）。</li>
<li><strong>q4_0（K4V4）仅在"塞不下"时考虑</strong>：8.3% 输出相似度是质量悬崖，即使本模型有 16 层优势也不建议轻易尝试。</li>
<li><strong>待验证</strong>：q8_0 日常使用质量观察；n-max 3 在 2 槽位下的接受率/速度拐点（DFlash2 已实测淘汰）；GSP 修复（等 NVIDIA）后再谈 200K+。</li>
</ol>
<hr />
<p dir="auto"><em>数据来源：systemd journalctl（MTP 接受率 195 次请求全量）+ 高 ctx 压测脚本 + 长上下文 CPU 回退验证；模型参数来自官方 config.json 与 GGUF 头部元数据双重核对。</em></p>
]]></description><link>https://lcz.me/topic/1251/rtx-pro-4500-32g-跑-qwen3.8-27b-unsloth-desktop-默认参数-mtp-2-槽位-150k-短上下文-54-64-t-s-gsp-篇续集-附完整配置</link><generator>RSS for Node</generator><lastBuildDate>Fri, 21 Aug 2026 23:16:23 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/1251.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 21 Aug 2026 12:06:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to RTX PRO 4500 32G 跑 Qwen3.8-27B：Unsloth Desktop 默认参数 + MTP，2 槽位 × 150K，短上下文 54–64 t/s（GSP 篇续集，附完整配置） on Fri, 21 Aug 2026 17:15:05 GMT]]></title><description><![CDATA[<p dir="auto">看来unsloth的模型及其优化在固件bug不能解决的情况下，还是尽可能把参数调优到各种机器都能顺利运行了：<br />
测试完成，六级全部通过，零崩溃。结果在 /tmp/ctx-stress-27b-20260822-010212.md。</p>
<p dir="auto">关键数据（实际 prompt_tokens 比名义目标更深，因中文填充每行 token 数高于预估）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>档位</th>
<th>实际深度</th>
<th>耗时</th>
<th>prefill</th>
<th>/health</th>
</tr>
</thead>
<tbody>
<tr>
<td>4K</td>
<td>5.5K</td>
<td>8.5s</td>
<td>652 t/s</td>
<td>ok</td>
</tr>
<tr>
<td>8K</td>
<td>11K</td>
<td>9.3s</td>
<td>1206 t/s</td>
<td>ok</td>
</tr>
<tr>
<td>16K</td>
<td>22K</td>
<td>16s</td>
<td>1411 t/s</td>
<td>ok</td>
</tr>
<tr>
<td>32K</td>
<td>47K</td>
<td>34s</td>
<td>1372 t/s</td>
<td>ok</td>
</tr>
<tr>
<td>64K</td>
<td>96K</td>
<td>81s</td>
<td>1192 t/s</td>
<td>ok</td>
</tr>
<tr>
<td>128K</td>
<td>194K</td>
<td>224s</td>
<td>870 t/s</td>
<td>ok</td>
</tr>
</tbody>
</table>
<p dir="auto">结论：</p>
<ul>
<li>最深处实际打到 194K context，超过之前 128K 崩溃边界，全程无 Xid、无 500、/health 每级存活</li>
<li>prefill 随深度缓降（1411→870 t/s），194K 下 224s 完成一轮，可用</li>
<li>8K/16K/64K 三档回答为空属预期：temp=0 下思考 token 吃满 max_tokens=64，content 为空，非故障（4K/32K/128K 正常出数可证响应链完整）</li>
</ul>
]]></description><link>https://lcz.me/post/13359</link><guid isPermaLink="true">https://lcz.me/post/13359</guid><dc:creator><![CDATA[清风明月]]></dc:creator><pubDate>Fri, 21 Aug 2026 17:15:05 GMT</pubDate></item><item><title><![CDATA[Reply to RTX PRO 4500 32G 跑 Qwen3.8-27B：Unsloth Desktop 默认参数 + MTP，2 槽位 × 150K，短上下文 54–64 t/s（GSP 篇续集，附完整配置） on Fri, 21 Aug 2026 16:30:45 GMT]]></title><description><![CDATA[<p dir="auto">在blackwell固件没解决前，MTP还是容易崩，还是换成unsloth默认参数了，只把槽位改成2，再用一段时间看看。速度确实不如MTP。</p>
]]></description><link>https://lcz.me/post/13351</link><guid isPermaLink="true">https://lcz.me/post/13351</guid><dc:creator><![CDATA[清风明月]]></dc:creator><pubDate>Fri, 21 Aug 2026 16:30:45 GMT</pubDate></item></channel></rss>