<?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[单卡7900XTX+llama.cpp+Vulkan+DFlash2+Qwen3.8-27B 速度终于上百了]]></title><description><![CDATA[<p dir="auto">搜了搜论坛，发现不少7900XTX极致优化的帖子，但一般都是魔改llama.cpp 或者双卡或者基于SGLang。我没太多精力去深究，一般倾向于用开箱即用的官方版本。</p>
<p dir="auto">今天意外刷到 llama.cpp 的 <a href="https://github.com/ggml-org/llama.cpp/pull/27342" rel="nofollow ugc">spec : add DFlash2 support (local convolution + candidate selector)- #27342</a> 已经在 8月底 merged。所以，llama.cpp已经官方支持DFlash2。Agent沟通一把后，马上开试：</p>
<h2>本机硬件配置</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项目</th>
<th>配置</th>
</tr>
</thead>
<tbody>
<tr>
<td>CPU</td>
<td>AMD 9600X</td>
</tr>
<tr>
<td>RAM</td>
<td>32GB DDR5</td>
</tr>
<tr>
<td>OS</td>
<td>Ubuntu 26.04</td>
</tr>
</tbody>
</table>
<h2>准备环境</h2>
<ul>
<li>llama.cpp 下载到最新版，按标准流程编译</li>
</ul>
<pre><code>git clone https://github.com/ggml-org/llama.cpp
cd llama.cpp
cmake -B build -DGGML_VULKAN=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release -j$(nproc) --clean-first --target llama-cli  llama-server llama-bench
</code></pre>
<ul>
<li>准备好主模型和DFlash2 Draft模型</li>
</ul>
<pre><code>#主模型用之前一直采用的unsloth 的 Qwen3.8-27B-UD-IQ4_XS.gguf

# 新下载DFlash2 Draft模型
hf download z-lab/Qwen3.8-27B-DFlash2-GGUF Qwen3.8-27B-DFlash2-Q4_K_M.gguf --local-dir /models
</code></pre>
<ul>
<li>启动 llama.cpp 测试</li>
</ul>
<pre><code>llama-server \
  -m /models/Qwen3.8-27B-UD-IQ4_XS.gguf \
  -md /models/Qwen3.8-27B-DFlash2-Q4_K_M.gguf \
  --spec-draft-n-max 4 \
  -ngl 99 -fa on -np 1 \
  -c 163804 -ctk q8_0 -ctv q8_0 -b 2048 -ub 1024 \
  --host 0.0.0.0 --port 8080
</code></pre>
<h2>简测结果</h2>
<ul>
<li>spec-draft-n-max 取值3/4/5/6/7，分别测试2次，5最快，但4命中率最高，最后综合选了4。</li>
<li>spec-draft-n-max 取4的情况下，分测3次，最终结果</li>
</ul>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>题型</th>
<th>速度均值</th>
</tr>
</thead>
<tbody>
<tr>
<td>数学题</td>
<td>100+</td>
</tr>
<tr>
<td>写作题</td>
<td>60+</td>
</tr>
<tr>
<td>编程</td>
<td>90+</td>
</tr>
</tbody>
</table>
<ul>
<li>搭配dsh，走了一个频繁调动本地工具的长程任务，9轮152步之后，还能稳定在70tokens/s左右 ，很满意了。<br />
<img src="https://upload.lcz.me/uploads/49f33416-909c-4863-81a9-245765e612fc.png" alt="Pasted 2026-09-30 at 11.30.48 PM.png" class="img-markdown  img-fluid" /></li>
</ul>
<h2>注意事项</h2>
<ul>
<li>llama.cpp 启动时会报错，无视就好<br />
<img src="https://upload.lcz.me/uploads/c6f57c24-ec48-4eb9-b8cd-e854d5a76cb3.jpg" alt="Pasted 2026-09-30 at 11.24.29 PM.jpg" class="img-markdown  img-fluid" /></li>
</ul>
<p dir="auto">感谢各开源社区和大牛们的努力，每月每周都有惊喜！</p>
]]></description><link>https://lcz.me/topic/2029</link><generator>RSS for Node</generator><lastBuildDate>Mon, 12 Oct 2026 15:39:16 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/2029.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Oct 2026 06:33:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 单卡7900XTX+llama.cpp+Vulkan+DFlash2+Qwen3.8-27B 速度终于上百了 on Sat, 03 Oct 2026 15:32:32 GMT]]></title><description><![CDATA[<p dir="auto">谢谢分享，回头去测试下</p>
]]></description><link>https://lcz.me/post/22153</link><guid isPermaLink="true">https://lcz.me/post/22153</guid><dc:creator><![CDATA[Enigma]]></dc:creator><pubDate>Sat, 03 Oct 2026 15:32:32 GMT</pubDate></item><item><title><![CDATA[Reply to 单卡7900XTX+llama.cpp+Vulkan+DFlash2+Qwen3.8-27B 速度终于上百了 on Fri, 02 Oct 2026 15:12:47 GMT]]></title><description><![CDATA[<p dir="auto">看来模型体积还是影响很大的</p>
]]></description><link>https://lcz.me/post/21975</link><guid isPermaLink="true">https://lcz.me/post/21975</guid><dc:creator><![CDATA[J Z 0]]></dc:creator><pubDate>Fri, 02 Oct 2026 15:12:47 GMT</pubDate></item><item><title><![CDATA[Reply to 单卡7900XTX+llama.cpp+Vulkan+DFlash2+Qwen3.8-27B 速度终于上百了 on Fri, 02 Oct 2026 11:33:55 GMT]]></title><description><![CDATA[<p dir="auto">现在用vulkan dflash 跑 GSQ-Q3-S  256k上下文， 日常段任务解码可以到90t/s， 长任务编程40 ～ 60 t/s。  pp都是从900多1000一路掉到 400左右</p>
]]></description><link>https://lcz.me/post/21950</link><guid isPermaLink="true">https://lcz.me/post/21950</guid><dc:creator><![CDATA[exllm]]></dc:creator><pubDate>Fri, 02 Oct 2026 11:33:55 GMT</pubDate></item><item><title><![CDATA[Reply to 单卡7900XTX+llama.cpp+Vulkan+DFlash2+Qwen3.8-27B 速度终于上百了 on Fri, 02 Oct 2026 09:42:45 GMT]]></title><description><![CDATA[<p dir="auto">Vulkan 在64k 以上上下文的pp 速度还是硬伤， 我试了一下tg 可以做到100 token/S  ， 但是在96k 的上下文prefill 的pp 速度只有300token/S了</p>
]]></description><link>https://lcz.me/post/21945</link><guid isPermaLink="true">https://lcz.me/post/21945</guid><dc:creator><![CDATA[coin1860]]></dc:creator><pubDate>Fri, 02 Oct 2026 09:42:45 GMT</pubDate></item><item><title><![CDATA[Reply to 单卡7900XTX+llama.cpp+Vulkan+DFlash2+Qwen3.8-27B 速度终于上百了 on Fri, 02 Oct 2026 06:49:51 GMT]]></title><description><![CDATA[<p dir="auto">另外，我的llama.cpp 启动参数加了</p>
<pre><code>--jinja --chat-template-file /models/chat_template.jinja --reasoning-format deepseek --reasoning-preserve --reasoning-effort low
</code></pre>
<p dir="auto">体感速度还会快一些。</p>
]]></description><link>https://lcz.me/post/21926</link><guid isPermaLink="true">https://lcz.me/post/21926</guid><dc:creator><![CDATA[Colt]]></dc:creator><pubDate>Fri, 02 Oct 2026 06:49:51 GMT</pubDate></item><item><title><![CDATA[Reply to 单卡7900XTX+llama.cpp+Vulkan+DFlash2+Qwen3.8-27B 速度终于上百了 on Fri, 02 Oct 2026 06:46:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/j-z-0" aria-label="Profile: J-Z-0">@<bdi>J-Z-0</bdi></a> DFlash2 针对不同的任务速度差别很大。而且命中率明显不如mtp。你可以多试试哪个最适合你的情况。</p>
]]></description><link>https://lcz.me/post/21925</link><guid isPermaLink="true">https://lcz.me/post/21925</guid><dc:creator><![CDATA[Colt]]></dc:creator><pubDate>Fri, 02 Oct 2026 06:46:56 GMT</pubDate></item><item><title><![CDATA[Reply to 单卡7900XTX+llama.cpp+Vulkan+DFlash2+Qwen3.8-27B 速度终于上百了 on Fri, 02 Oct 2026 00:25:12 GMT]]></title><description><![CDATA[<p dir="auto">这个dflash是干什么的啊， 我试了下，跟你差不多设置，写代码只有50多tk/s。唯一不同是是我用的q4km， 你是IQ4 xs，小一点的模型能快真多吗？ 我回头测一下</p>
]]></description><link>https://lcz.me/post/21896</link><guid isPermaLink="true">https://lcz.me/post/21896</guid><dc:creator><![CDATA[J Z 0]]></dc:creator><pubDate>Fri, 02 Oct 2026 00:25:12 GMT</pubDate></item></channel></rss>