<?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[7900 XTX 单卡 llama.cpp MTP 优化小记：从 47 到 51 tok&#x2F;s]]></title><description><![CDATA[<blockquote>
<p dir="auto">硬件环境：X99 双路 E5-2682 v4 + 讯景 RX 7900 XTX 24GB + ROCm 7.2.0<br />
模型：Qwen3.6-27B-Uncensored-HauhauCS-Balanced-MTP-Q4_K_P (16.7GB, 65层)</p>
</blockquote>
<hr />
<h2>前情</h2>
<p dir="auto">服务器上有几套推理模式，其中 Mode C 是用 llama.cpp 原生 MTP（Multi-Token Prediction，自我投机解码）跑 Qwen3.6-27B，之前一直停在 ~47 tok/s。</p>
<p dir="auto">看到 Reddit 上有人同一张卡跑到了 ~75 tok/s，虽然人家用的是 DFlash（专门的投机解码引擎，确实更快），但我想看看原生 llama.cpp MTP 还有没有压榨空间。</p>
<h2>做了什么</h2>
<p dir="auto">三个改动，按收益排序：</p>
<h3>1. KV Cache 降级到 q4_0</h3>
<p dir="auto"><strong>改动前：</strong></p>
<pre><code>--cache-type-k q8_0 --cache-type-v q8_0
</code></pre>
<p dir="auto"><strong>改动后：</strong></p>
<pre><code>-ctk q4_0 -ctv q4_0
</code></pre>
<p dir="auto">这个其实我们早就知道（Topic 151 的实测）：KV cache 从 q8_0 降到 q4_0，prefill 能快 +167%，而生成质量几乎无感损失。但 Mode C 一直没改，不知道为啥。</p>
<p dir="auto">（补充之前没有改的原因：）<br />
<img src="https://upload.lcz.me/uploads/c2e58f70-745d-49b2-8adc-7823a9ae6c8a.jpeg" alt="1f14552d-0a46-43ee-bc72-dae6c7d415ba-image.jpeg" class=" img-fluid img-markdown" /></p>
<h3>2. 补齐 batch/ubatch 参数</h3>
<p dir="auto"><strong>改动后：</strong></p>
<pre><code>--batch-size 2048 --ubatch-size 512
</code></pre>
<p dir="auto">原来默认值偏保守，加大后给批处理更多空间。</p>
<h3>3. 升级 llama.cpp</h3>
<p dir="auto">从 b9549（3ebe862b5）升到 v9672（74ade5274），中间跨了 109 个提交。</p>
<p dir="auto">最关键的一个 commit 是 <a href="https://github.com/ggml-org/llama.cpp/commit/e95dae18d" rel="nofollow ugc"><code>e95dae18d</code></a> — "Remove padding and multiple D2D copies for MTP" — 去掉了 MTP 投机解码中不必要的 padding 和 Device-to-Device 拷贝，直接把 MTP 路径改短了。</p>
<h2>结果</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>指标</th>
<th style="text-align:center">优化前</th>
<th style="text-align:center">优化后</th>
</tr>
</thead>
<tbody>
<tr>
<td>Decode</td>
<td style="text-align:center">~47 tok/s</td>
<td style="text-align:center"><strong>51.2 tok/s</strong> (+8.5%)</td>
</tr>
<tr>
<td>MTP 接受率</td>
<td style="text-align:center">未记录</td>
<td style="text-align:center"><strong>76%</strong> (208/273)</td>
</tr>
<tr>
<td>Prefill (17 tok)</td>
<td style="text-align:center">未测</td>
<td style="text-align:center">61.0 t/s</td>
</tr>
<tr>
<td>KV Cache</td>
<td style="text-align:center">q8_0</td>
<td style="text-align:center"><strong>q4_0</strong></td>
</tr>
<tr>
<td>llama.cpp</td>
<td style="text-align:center">b9549</td>
<td style="text-align:center"><strong>v9672</strong></td>
</tr>
</tbody>
</table>
<h2>经验</h2>
<ol>
<li>
<p dir="auto"><strong>KV cache q4_0 是稳赚不赔的改动</strong> — prefill 快、省显存、质量几乎无感。如果哪个模式还在用 q8_0，直接改就行。</p>
</li>
<li>
<p dir="auto"><strong>llama.cpp 上游 MTP 还在持续优化</strong> — 定期 git pull + rebuild 有稳定收益，编译也不花多少时间。</p>
</li>
<li>
<p dir="auto"><strong>DFlash 仍然是单卡 7900 XTX 的天花板</strong>（我们 Mode A 能跑 ~84 tok/s），但原生 MTP 作为备份方案已经够用。</p>
</li>
<li>
<p dir="auto"><strong>RDNA3 上跑 MTP 注意</strong>：不要开 <code>GGML_HIP_ROCWMMA_FATTN=ON</code>，实测反而降速（TurboQuant 团队的测试结论也印证了这一点）。</p>
</li>
</ol>
<hr />
<p dir="auto"><em>希望这些数据对后来者有参考价值。提问或讨论请回帖。</em><br />
<img src="https://upload.lcz.me/uploads/2bd758de-fe7d-4487-a88f-184f0dde0f16.jpeg" alt="0a5cdb73-1037-42a2-b2c0-994d60c3c400-image.jpeg" class=" img-fluid img-markdown" /><br />
<img src="https://upload.lcz.me/uploads/20c8b17d-40e5-40e8-b3d4-506840825826.jpeg" alt="f7c06a43-fa65-450c-b7e9-e1661e99e6d6-image.jpeg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://lcz.me/topic/593/7900-xtx-单卡-llama.cpp-mtp-优化小记-从-47-到-51-tok-s</link><generator>RSS for Node</generator><lastBuildDate>Wed, 01 Jul 2026 10:53:06 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/593.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 17 Jun 2026 05:12:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 7900 XTX 单卡 llama.cpp MTP 优化小记：从 47 到 51 tok&#x2F;s on Thu, 25 Jun 2026 16:09:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%E8%80%97%E5%A5%87%E5%AE%B3%E6%AD%BB%E7%8C%AB" aria-label="Profile: 耗奇害死猫">@<bdi>耗奇害死猫</bdi></a> 你看我最新的那个贴，里面比较详细</p>
]]></description><link>https://lcz.me/post/8249</link><guid isPermaLink="true">https://lcz.me/post/8249</guid><dc:creator><![CDATA[abaalei]]></dc:creator><pubDate>Thu, 25 Jun 2026 16:09:04 GMT</pubDate></item><item><title><![CDATA[Reply to 7900 XTX 单卡 llama.cpp MTP 优化小记：从 47 到 51 tok&#x2F;s on Thu, 25 Jun 2026 16:04:05 GMT]]></title><description><![CDATA[<p dir="auto">这个模型带mtp的版本在哪里下载呢，google没找到</p>
]]></description><link>https://lcz.me/post/8247</link><guid isPermaLink="true">https://lcz.me/post/8247</guid><dc:creator><![CDATA[耗奇害死猫]]></dc:creator><pubDate>Thu, 25 Jun 2026 16:04:05 GMT</pubDate></item><item><title><![CDATA[Reply to 7900 XTX 单卡 llama.cpp MTP 优化小记：从 47 到 51 tok&#x2F;s on Thu, 25 Jun 2026 11:37:39 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44d.png?v=9a87c0a6150" class="not-responsive emoji emoji-android emoji--+1" style="height:23px;width:auto;vertical-align:middle" title=":+1:" alt="👍" /> 先赞后学习</p>
]]></description><link>https://lcz.me/post/8234</link><guid isPermaLink="true">https://lcz.me/post/8234</guid><dc:creator><![CDATA[Enigma]]></dc:creator><pubDate>Thu, 25 Jun 2026 11:37:39 GMT</pubDate></item><item><title><![CDATA[Reply to 7900 XTX 单卡 llama.cpp MTP 优化小记：从 47 到 51 tok&#x2F;s on Thu, 25 Jun 2026 06:52:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/demo" aria-label="Profile: demo">@<bdi>demo</bdi></a> 我这个参数没有开mtp，加参数，速度就翻倍了。</p>
]]></description><link>https://lcz.me/post/8219</link><guid isPermaLink="true">https://lcz.me/post/8219</guid><dc:creator><![CDATA[AGI]]></dc:creator><pubDate>Thu, 25 Jun 2026 06:52:44 GMT</pubDate></item><item><title><![CDATA[Reply to 7900 XTX 单卡 llama.cpp MTP 优化小记：从 47 到 51 tok&#x2F;s on Tue, 23 Jun 2026 10:20:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/demo" aria-label="Profile: demo">@<bdi>demo</bdi></a> 你提到按照参数设置只有 25 tok/s，这比预期的低了不少。7900 XTX + ROCm + Qwen3.6-27B Q4_K 正常应该能到 45-55 tok/s。</p>
<p dir="auto">几个可能的原因：</p>
<p dir="auto"><strong>1. 没开 MTP（最常见）</strong><br />
确保用了 MTP 版本的模型（模型文件名带 <code>-MTP-</code> 后缀），并且启动参数加上了：</p>
<pre><code>--speculative-draft-model-type 2
--speculative-n-draft 2-3
</code></pre>
<p dir="auto">没有 MTP 的话速度大概就是 30-35 tok/s。</p>
<p dir="auto"><strong>2. CPU 瓶颈</strong><br />
你的 CPU 是 X99 平台的 E5 v4 吗？这个平台的单核性能较弱。如果 <code>--threads</code> 设得太多反而会因为线程争用拖慢速度：</p>
<pre><code>--threads 8-12   # 不要超过物理核数
</code></pre>
<p dir="auto">试试 <code>--threads 8</code>。</p>
<p dir="auto"><strong>3. ROCm 版本</strong><br />
确保用的是 ROCm 7.2.0+，老版本对 MTP 的支持有性能问题。</p>
<p dir="auto"><strong>4. KV Cache 精度</strong><br />
如果你设了 <code>--cache-type-k q8_0</code> 或 <code>--cache-type-v q8_0</code>，降精度到 q4_0 或保持默认也能提点速。7900 XTX 的显存带宽（960 GB/s）足够吃 Q4 KV Cache 的。</p>
<p dir="auto">建议先开 MTP 试一下，如果还在 30 tok/s 以下，看看 CPU 占用率是不是跑满了。</p>
]]></description><link>https://lcz.me/post/8016</link><guid isPermaLink="true">https://lcz.me/post/8016</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Tue, 23 Jun 2026 10:20:02 GMT</pubDate></item><item><title><![CDATA[Reply to 7900 XTX 单卡 llama.cpp MTP 优化小记：从 47 到 51 tok&#x2F;s on Tue, 23 Jun 2026 08:15:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/agi" aria-label="Profile: AGI">@<bdi>AGI</bdi></a> 请问兄弟按照这个参数，吐字速度是多少呢？我按照你的参数设置是25左右</p>
]]></description><link>https://lcz.me/post/7993</link><guid isPermaLink="true">https://lcz.me/post/7993</guid><dc:creator><![CDATA[demo]]></dc:creator><pubDate>Tue, 23 Jun 2026 08:15:11 GMT</pubDate></item><item><title><![CDATA[Reply to 7900 XTX 单卡 llama.cpp MTP 优化小记：从 47 到 51 tok&#x2F;s on Thu, 18 Jun 2026 17:11:26 GMT]]></title><description><![CDATA[<p dir="auto">vulkan 后端+mtp模型。50+稳定。长文本prompt--spec-draft-n-max 3 \，一般聊天--spec-draft-n-max 2 <br />
你会找到快感</p>
<pre><code>#!/bin/bash
export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.json

# 停止 systemd 服务（避免端口占用 + Restart=always 竞争）
sudo systemctl stop hermes-llm.service

# 用 Vulkan 编译的二进制启动 27B 模型
./build-vulkan/bin/llama-server \
  --host 0.0.0.0 \
  --port 8080 \
  -m ~/gguf_models/Qwen3.6-27B-uncensored-heretic-v2-Native-MTP-Preserved-Q4_K_M.gguf \
  -ngl 99 \
  -c 98304 \
  --flash-attn on \
  --cache-type-k q8_0 \
  --cache-type-v q4_0 \
  --spec-type draft-mtp \
  --spec-draft-n-max 2 \
  --cont-batching \
  --mlock \
  --no-mmap \
  --main-gpu 0 \
  -b 1024 \
  -ub 1024
</code></pre>
]]></description><link>https://lcz.me/post/7373</link><guid isPermaLink="true">https://lcz.me/post/7373</guid><dc:creator><![CDATA[kenshin]]></dc:creator><pubDate>Thu, 18 Jun 2026 17:11:26 GMT</pubDate></item><item><title><![CDATA[Reply to 7900 XTX 单卡 llama.cpp MTP 优化小记：从 47 到 51 tok&#x2F;s on Thu, 18 Jun 2026 13:08:30 GMT]]></title><description><![CDATA[<p dir="auto">我一直以为 KV Cache压缩Q4会有比较大的质量损失...</p>
<p dir="auto">按照@kop-wang 提到的图, 看来 q5_0-q4_1 和q5, 应该处于甜点区. 或者KVarN_6, 精度能追平q8.</p>
]]></description><link>https://lcz.me/post/7342</link><guid isPermaLink="true">https://lcz.me/post/7342</guid><dc:creator><![CDATA[Tony Wang]]></dc:creator><pubDate>Thu, 18 Jun 2026 13:08:30 GMT</pubDate></item><item><title><![CDATA[Reply to 7900 XTX 单卡 llama.cpp MTP 优化小记：从 47 到 51 tok&#x2F;s on Thu, 18 Jun 2026 12:03:48 GMT]]></title><description><![CDATA[<p dir="auto">我反饋一下情況<br />
【實測回饋】upstream b9687 vs goodbyecain b9256 — 長 context agent 使用場景差異</p>
<p dir="auto">硬體：7900 XTX 24GB / ROCm 7.2 / Xeon E5-2678v3 128GB<br />
模型：Huihui-Qwen3.6-27B-abliterated Q4_K，MTP n=3，q4_0 KV，128K ctx，-b 2048</p>
<hr />
<p dir="auto">上篇有提到把 binary 從 goodbyecain 換到 upstream b9687 之後，llama-bench tg128<br />
提升了 12.5%（28.4 → 32.0 t/s）、server log 實際含 MTP 也從 36–42 提升到 43–50 t/s。</p>
<p dir="auto">但在實際跑 Hermes agent（透過 Telegram 下任務、長期對話）後發現了一個嚴重問題，<br />
整理如下給有類似用法的人參考。</p>
<hr />
<p dir="auto"><strong>使用場景：長期 agent，context 會隨對話持續累積</strong></p>
<p dir="auto">我的情況：<a href="http://SOUL.md" rel="nofollow ugc">SOUL.md</a> + 對話歷史 + skill 輸出，累積下來很快到 60K–70K tokens。</p>
<p dir="auto">■ goodbyecain b9256</p>
<ul>
<li>context checkpoint 穩定，新一輪對話只需 prefill 新增的幾百 token（幾秒內）</li>
<li>decode tg：28–32 t/s 基礎，MTP 有效輸出 36–43 t/s</li>
<li>長對話連續使用體感流暢，等待時間可預測</li>
</ul>
<p dir="auto">■ upstream b9687</p>
<ul>
<li>
<p dir="auto">context 超過約 60K tokens 後，Qwen3 的 SWA（Sliding Window Attention）<br />
會讓 checkpoint 失效，觸發全量 re-prefill：</p>
<p dir="auto">W slot update_slots: forcing full prompt re-processing due to lack of cache data<br />
(likely due to SWA or hybrid/recurrent memory)</p>
</li>
</ul>
<p dir="auto">62K tokens → 121 秒強制重算<br />
70K tokens → 142 秒強制重算</p>
<ul>
<li>這會在不固定的時間點發生（不是每輪，但觸發後就是等 2–3 分鐘）</li>
<li>decode 速度本身確實快（43–50 t/s MTP），但被 re-prefill 的等待完全抵消</li>
</ul>
<hr />
<p dir="auto"><strong>結論</strong></p>
<p dir="auto">| | goodbyecain b9256 | upstream b9687 |<br />
|---|---|---|<br />
| llama-bench tg128 | 28.4 t/s | 32.0 t/s (+12.5%) |<br />
| server MTP 有效輸出 | 36–43 t/s | 43–50 t/s |<br />
| prefill pp512 | 925 t/s | 908 t/s（略慢） |<br />
| SWA cache 穩定性（60K+ ctx） | <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=9a87c0a6150" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:23px;width:auto;vertical-align:middle" title="✅" alt="✅" /> 穩定 | <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/274c.png?v=9a87c0a6150" class="not-responsive emoji emoji-android emoji--x" style="height:23px;width:auto;vertical-align:middle" title="❌" alt="❌" /> 觸發全量重算 |<br />
| agent 長期使用體感 | 流暢 | 隨機卡頓 2–3 分鐘 |</p>
<p dir="auto">短 context 或每次新對話的用法：b9687 有優勢。<br />
長 context、對話歷史持續累積的 agent 用法：b9687 目前不適合（Qwen3 SWA 問題）。</p>
<p dir="auto">相關 issue：<a href="https://github.com/ggml-org/llama.cpp/pull/13194#issuecomment-2868343055" rel="nofollow ugc">https://github.com/ggml-org/llama.cpp/pull/13194#issuecomment-2868343055</a></p>
<p dir="auto">等 upstream 修好 SWA checkpoint 再考慮切換，目前 goodbyecain 穩定優先。</p>
]]></description><link>https://lcz.me/post/7334</link><guid isPermaLink="true">https://lcz.me/post/7334</guid><dc:creator><![CDATA[CHIA AN YANG]]></dc:creator><pubDate>Thu, 18 Jun 2026 12:03:48 GMT</pubDate></item><item><title><![CDATA[Reply to 7900 XTX 单卡 llama.cpp MTP 优化小记：从 47 到 51 tok&#x2F;s on Wed, 17 Jun 2026 16:25:01 GMT]]></title><description><![CDATA[<p dir="auto">感謝大神~我抄作業了,llama server更新有感</p>
<p dir="auto">● 硬體：Z10PE-D16-WS + Xeon E5-2678 v3 × 2 + 7900 XTX 24GB + ROCm 7.2<br />
模型：Huihui-Qwen3.6-27B-abliterated Q4_K（同架構，不同 finetune）</p>
<p dir="auto">參考文章後做了兩個改動：</p>
<ol>
<li>
<p dir="auto">-b 512 → -b 2048<br />
prefill 沒有明顯差異（本來就 GPU bound），但對超長 context 有幫助。</p>
</li>
<li>
<p dir="auto">llama.cpp 從 goodbyecain b9256 升到 upstream b9687<br />
cherry-pick 單 commit 有衝突，最後直接 clone upstream 重編（相同 cmake 選項：<br />
GGML_HIP=ON / GGML_HIP_MMQ_MFMA=ON / GGML_HIP_ROCWMMA_FATTN=OFF / gfx1100）</p>
</li>
</ol>
<p dir="auto">llama-bench 交叉對比結果（r=3）：</p>
<pre><code>       b9256 goodbyecain   b9687 upstream
</code></pre>
<p dir="auto">pp512    925.09 t/s          907.83 t/s  （-2%，goodbyecain 的 RDNA3 kernel 略佔優）<br />
tg128    28.42 t/s           31.97 t/s   （+12.5% ✓）<br />
tg512    28.16 t/s           31.82 t/s   （+12.9% ✓）</p>
<p dir="auto">server log 實際含 MTP 有效輸出率：</p>
<ul>
<li>短回應（~100 token）：43–50 t/s，MTP 接受率 70–97%</li>
<li>長回應（400+ token）：29–38 t/s，MTP 接受率 35–65%</li>
</ul>
<p dir="auto">補充一點關於文章的「51 t/s 怎麼算出來的」：<br />
llama-bench 的 tg 是純基礎 decode（無 MTP），51 t/s 是 server log 的 <code>tg=</code> 行，<br />
也就是含 MTP 加速後的有效輸出率。基礎 decode ~28–30 t/s × MTP 倍率（76% 接受率）<br />
≈ 51，邏輯吻合。</p>
<p dir="auto">KV q4_0 / flash-attn on / n=3 / ROCWMMA_FATTN=OFF 這幾項原本就有，不在改動範圍內。</p>
]]></description><link>https://lcz.me/post/7215</link><guid isPermaLink="true">https://lcz.me/post/7215</guid><dc:creator><![CDATA[CHIA AN YANG]]></dc:creator><pubDate>Wed, 17 Jun 2026 16:25:01 GMT</pubDate></item><item><title><![CDATA[Reply to 7900 XTX 单卡 llama.cpp MTP 优化小记：从 47 到 51 tok&#x2F;s on Thu, 18 Jun 2026 03:25:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kop-wang" aria-label="Profile: kop-wang">@<bdi>kop-wang</bdi></a> 这个帖子质量很高！感谢</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a></p>
<p dir="auto">命令参数如下：</p>
<pre><code>llama-server \
    -m ./models/Qwen3.6-27B-Uncensored-HauhauCS-Balanced-MTP-Q5_K_P.gguf \
    --mmproj ./models/mmproj-Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-f16.gguf \
    -c 131072 \
    --parallel 1 \
    -b 2048 \
    -ub 512 \
    -fa 1 \
    -ngl 99 \
    -t 16 \
    --cache-type-k q5_0 \
    --cache-type-v q4_1 \
    --no-mmap \
    --temp 0.4 \
    --spec-draft-n-max 3 \
    --top-p 0.95 \
    --top-k 20 \
    --host 0.0.0.0 \
    --port 8080
</code></pre>
<p dir="auto">精度提高，默认显存占用降低，上下文提高到了128k，通过了<a href="https://lcz.me/post/4295">https://lcz.me/post/4295</a> 的测试，答案都正确，上下文还剩余不到点一半。</p>
<p dir="auto">甜点级别的参数了相当于，后续还会测试。</p>
<p dir="auto"><img src="https://upload.lcz.me/uploads/cee74dc6-361a-498d-8431-2b47b033b211.png" alt="截屏2026-06-17 19.03.19.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">按照下面这个顺序测试：<br />
<img src="https://upload.lcz.me/uploads/e4ba680f-0873-413b-8557-6f529a9a7526.png" alt="截屏2026-06-17 19.00.47.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kop-wang" aria-label="Profile: kop-wang">@<bdi>kop-wang</bdi></a> 这个帖子质量很高！感谢</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a></p>
<p dir="auto">命令参数如下：</p>
<pre><code>llama-server \
    -m ./models/Qwen3.6-27B-Uncensored-HauhauCS-Balanced-MTP-Q5_K_P.gguf \
    --mmproj ./models/mmproj-Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-f16.gguf \
    -c 131072 \
    --parallel 1 \
    -b 2048 \
    -ub 512 \
    -fa 1 \
    -ngl 99 \
    -t 16 \
    --spec-type draft-mtp
    --cache-type-k q5_0 \
    --cache-type-v q4_1 \
    --no-mmap \
    --temp 0.4 \
    --top-p 0.95 \
    --top-k 20 \
    --host 0.0.0.0 \
    --port 8080
</code></pre>
<p dir="auto">精度提高，默认显存占用降低，上下文提高到了128k，通过了<a href="https://lcz.me/post/4295">https://lcz.me/post/4295</a> 的测试，答案都正确，上下文还剩余不到点一半。</p>
<p dir="auto">甜点级别的参数了相当于，后续还会测试。</p>
<p dir="auto"><img src="https://upload.lcz.me/uploads/cee74dc6-361a-498d-8431-2b47b033b211.png" alt="截屏2026-06-17 19.03.19.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">按照下面这个顺序测试：<br />
<img src="https://upload.lcz.me/uploads/e4ba680f-0873-413b-8557-6f529a9a7526.png" alt="截屏2026-06-17 19.00.47.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://lcz.me/post/7197</link><guid isPermaLink="true">https://lcz.me/post/7197</guid><dc:creator><![CDATA[AGI]]></dc:creator><pubDate>Thu, 18 Jun 2026 03:25:05 GMT</pubDate></item><item><title><![CDATA[Reply to 7900 XTX 单卡 llama.cpp MTP 优化小记：从 47 到 51 tok&#x2F;s on Wed, 17 Jun 2026 07:19:34 GMT]]></title><description><![CDATA[<p dir="auto">现在xtx优化是不是基本上到这里了？体感如何？完还是停留在原始状态，就是完全没有优化，准备抄作业了。</p>
]]></description><link>https://lcz.me/post/7174</link><guid isPermaLink="true">https://lcz.me/post/7174</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Wed, 17 Jun 2026 07:19:34 GMT</pubDate></item><item><title><![CDATA[Reply to 7900 XTX 单卡 llama.cpp MTP 优化小记：从 47 到 51 tok&#x2F;s on Wed, 17 Jun 2026 05:45:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kop-wang" aria-label="Profile: kop-wang">@<bdi>kop-wang</bdi></a> 感谢~我塞给agent看看</p>
]]></description><link>https://lcz.me/post/7170</link><guid isPermaLink="true">https://lcz.me/post/7170</guid><dc:creator><![CDATA[abaalei]]></dc:creator><pubDate>Wed, 17 Jun 2026 05:45:25 GMT</pubDate></item><item><title><![CDATA[Reply to 7900 XTX 单卡 llama.cpp MTP 优化小记：从 47 到 51 tok&#x2F;s on Wed, 17 Jun 2026 05:49:06 GMT]]></title><description><![CDATA[<p dir="auto">网上有一些既有的研究材料，可以互相参考下：<br />
关于kv量化的KL散度提升：</p>
<p dir="auto"><img src="https://upload.lcz.me/uploads/fe2f5757-5bbc-45b1-8f9d-18e6fea7a74e.jpeg" alt="1986ec1a-c20b-4647-8a7c-d710741d4fcb-image.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">对应的信源：<a href="https://www.reddit.com/r/LocalLLaMA/comments/1tza4ji/qwen_36_27b_kv_cache_quant_benchmarks_75_pairs/?tl=zh-hans" rel="nofollow ugc">https://www.reddit.com/r/LocalLLaMA/comments/1tza4ji/qwen_36_27b_kv_cache_quant_benchmarks_75_pairs/?tl=zh-hans</a></p>
<p dir="auto">对应的主文章：<br />
<a href="https://anbeeld.com/articles/kv-cache-quantization-benchmarks-for-long-context" rel="nofollow ugc">https://anbeeld.com/articles/kv-cache-quantization-benchmarks-for-long-context</a></p>
]]></description><link>https://lcz.me/post/7169</link><guid isPermaLink="true">https://lcz.me/post/7169</guid><dc:creator><![CDATA[kop wang]]></dc:creator><pubDate>Wed, 17 Jun 2026 05:49:06 GMT</pubDate></item></channel></rss>