<?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[雙 2080 Ti 22G 魔改卡跑 Qwen3.8-27B：由 1 並發改 8 並發實測 — 總吞吐 +112%，單線只跌 3%]]></title><description><![CDATA[<p dir="auto">最近把工作站的 vLLM 由 1 並發改成 8 並發，分享一下改動思路和實測數據。</p>
<p dir="auto"><strong>硬件：</strong></p>
<ul>
<li>RTX 2080 Ti 22G 魔改卡 ×2（NVLink 橋）</li>
<li>模型：Qwen3.8-27B W4A16 AWQ（community quant，~11GB）</li>
<li>軟件：weicj/vLLM-2080Ti-Definitive（專為雙 2080 Ti / SM75 Turing 優化的 vLLM fork，感謝作者 weicj 和 upstream vLLM）</li>
<li>TP=2 · 256K context · MTP speculative decoding · fp16 KV</li>
</ul>
<p dir="auto"><strong>為什麼從 1 並發改 8 並發：</strong></p>
<p dir="auto">之前跟 repo 建議跑 1-concurrent + 內建排隊，圖的是單線 decode 最快。但實際 workload 是：</p>
<ul>
<li>讀 PDF / RAG：一般 50K context 以內</li>
<li>VS Code agent：可控制在 100K context 以內</li>
<li>都遠低於 256K 上限 —— 「一條 request 食滿整個 context」的場景根本沒出現過</li>
</ul>
<p dir="auto">而 agent 的工作模式是：想一段 → 等 command 跑完 → 再想。等 command 時 GPU 完全 idle，1 並發下這些空檔全部浪費。多並發就是把空檔填滿。</p>
<p dir="auto"><strong>實測數據（同方法對比，真實 token 計數）：</strong></p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>配置</th>
<th style="text-align:right">單線 decode</th>
<th style="text-align:right">8 並發總吞吐</th>
<th style="text-align:right">8 並發 max TTFT</th>
</tr>
</thead>
<tbody>
<tr>
<td>1 並發（MTP3，舊設定）</td>
<td style="text-align:right">54.6 t/s</td>
<td style="text-align:right">60.4 t/s（其餘排隊）</td>
<td style="text-align:right">30.4 s</td>
</tr>
<tr>
<td>8 seqs 無 MTP</td>
<td style="text-align:right">46.3 t/s</td>
<td style="text-align:right">102.0 t/s</td>
<td style="text-align:right">3.2 s</td>
</tr>
<tr>
<td><strong>8 seqs + MTP2（現行）</strong></td>
<td style="text-align:right"><strong>52.8 t/s</strong></td>
<td style="text-align:right"><strong>128.4 t/s</strong></td>
<td style="text-align:right"><strong>5.3 s</strong></td>
</tr>
</tbody>
</table>
<p dir="auto">Prefill（現行配置）：~1,600 t/s @8K · ~1,430 t/s @32K · ~1,200 t/s @65K</p>
<p dir="auto"><strong>結論：</strong></p>
<ul>
<li>總吞吐 60.4 → 128.4 t/s（+112%），TTFT 從排隊 30 秒級降到 5 秒級</li>
<li>單線只跌 ~3%（54.6 → 52.8，MTP3→MTP2 騰出 batch 空間）</li>
<li>對 agent / 多 client 場景是質變：以前第二條 request 要等第一條做完，現在真正並行</li>
</ul>
<p dir="auto">代價也要說：8 並發時每條線只有 ~20 t/s，長 context prefill 會互相排隊。所以這是「agents farm」取向，不是「單線跑分」取向。</p>
<p dir="auto"><strong>現行配置（launcher 參數）：</strong></p>
<pre><code>--tensor-parallel-size 2 --max-model-len 262144
--max-num-seqs 8 --max-num-batched-tokens 2048
--quantization compressed-tensors (W4A16)
--speculative-config method=mtp,num_speculative_tokens=2
--enable-chunked-prefill --enable-prefix-caching
temperature 0.6 / reasoning_effort medium
</code></pre>
]]></description><link>https://lcz.me/topic/1693</link><generator>RSS for Node</generator><lastBuildDate>Mon, 12 Oct 2026 13:28:56 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/1693.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Sep 2026 04:57:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 雙 2080 Ti 22G 魔改卡跑 Qwen3.8-27B：由 1 並發改 8 並發實測 — 總吞吐 +112%，單線只跌 3% on Wed, 16 Sep 2026 01:02:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%E6%98%8E%E9%A3%8E%E5%BD%B1%E8%A7%86mfys" aria-label="Profile: 明风影视mfys">@<bdi>明风影视mfys</bdi></a> 这个 110 t/s 才是 2080Ti×2 的正确区间，54.6 t/s 那组要拆开看。</p>
<p dir="auto">27B W4A16 约 11GB 权重，TP=2 后每卡读 ~5.5GB；2080Ti 显存带宽 616 GB/s，纯 decode 的带宽上限就是 ~110 t/s。你测到的 111/110/108 t/s（2K–6K prompt）基本贴着天花板，说明这条路径没有额外开销。</p>
<p dir="auto">OP 那组 54.6 t/s 是「1 并发 + MTP3 旧设定」下的数：MTP 在 batch=1 时每步多跑一次 draft + verify，只有 accept length 明显 &gt;1 才赚；accept 在 1.x 时反而净亏，旧 fork 的 MTP 路径也可能没进 CUDA Graph、多一次同步。另外 fp16 KV 在长上下文下 KV 读取量上来，也会把 decode 从 110 拉下来。</p>
<p dir="auto">定位用三组单变量：</p>
<ol>
<li>同 prompt、同并发，MTP on/off 各跑一次，记录 accept length（vLLM 的 spec_decode 指标）；accept &lt; 1.6 就别开 MTP。</li>
<li>nvidia-smi dmon 看显存带宽有没有吃满；没吃满就是 kernel/同步开销，不是带宽。</li>
<li>NVLink 对 batch=1 影响很小（TP 每层 all-reduce，batch=1 通信量本就不大），它救的是 8 并发那组的 TTFT/吞吐。2K–6K 组能到 110 t/s 已经说明这点。</li>
</ol>
<p dir="auto">结论：不是「没装 NVLink 所以慢」，是 MTP 旧设定和 KV 口径的差；两边对齐同 prompt/并发口径后应该能收敛。</p>
]]></description><link>https://lcz.me/post/18473</link><guid isPermaLink="true">https://lcz.me/post/18473</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Wed, 16 Sep 2026 01:02:05 GMT</pubDate></item><item><title><![CDATA[Reply to 雙 2080 Ti 22G 魔改卡跑 Qwen3.8-27B：由 1 並發改 8 並發實測 — 總吞吐 +112%，單線只跌 3% on Tue, 15 Sep 2026 20:59:49 GMT]]></title><description><![CDATA[<p dir="auto">为什么你的单线程mtp3 decode这么慢 不应该啊，没装nvlink吗？ 实际decode应该有100tks</p>
<h2>测试结果 (OpenAI兼容接口 - Qwen3.8-27B-W4A16)</h2>
<p dir="auto">备注：2080tix2_Qwen3.8-27B-W4A16 | 并发数: 1</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>提示词长度 (tokens)</th>
<th>TTFT (ms)</th>
<th>ITL平均 (ms)</th>
<th>预填充速度 (tokens/s)</th>
<th>输出速度 (tokens/s)</th>
<th>状态</th>
</tr>
</thead>
<tbody>
<tr>
<td>2048</td>
<td>1822.42</td>
<td>35.49</td>
<td>1125.67</td>
<td>111.18</td>
<td>1/1 并发成功</td>
</tr>
<tr>
<td>4096</td>
<td>2253.48</td>
<td>36.06</td>
<td>1820.28</td>
<td>110.25</td>
<td>1/1 并发成功</td>
</tr>
<tr>
<td>6144</td>
<td>3496.46</td>
<td>36.18</td>
<td>1759.57</td>
<td>108.65</td>
<td>1/1 并发成功</td>
</tr>
</tbody>
</table>
<h2>测试结果 (OpenAI兼容接口 - Qwen3.8-27B-W4A16)</h2>
<p dir="auto">备注：2080tix2_Qwen3.8-27B-W4A16 | 并发数: 4</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>提示词长度 (tokens)</th>
<th>TTFT (ms)</th>
<th>ITL平均 (ms)</th>
<th>预填充速度 (tokens/s)</th>
<th>输出速度 (tokens/s)</th>
<th>状态</th>
</tr>
</thead>
<tbody>
<tr>
<td>512</td>
<td>2420.56</td>
<td>42.30</td>
<td>363.41</td>
<td>189.68</td>
<td>4/4 并发成功</td>
</tr>
<tr>
<td>1024</td>
<td>2189.48</td>
<td>43.36</td>
<td>1509.46</td>
<td>267.87</td>
<td>4/4 并发成功</td>
</tr>
<tr>
<td>2048</td>
<td>3585.16</td>
<td>44.90</td>
<td>1710.21</td>
<td>300.96</td>
<td>4/4 并发成功</td>
</tr>
<tr>
<td>4096</td>
<td>6680.39</td>
<td>48.72</td>
<td>1735.14</td>
<td>241.81</td>
<td>4/4 并发成功</td>
</tr>
</tbody>
</table>
]]></description><link>https://lcz.me/post/18456</link><guid isPermaLink="true">https://lcz.me/post/18456</guid><dc:creator><![CDATA[明风影视mfys]]></dc:creator><pubDate>Tue, 15 Sep 2026 20:59:49 GMT</pubDate></item></channel></rss>