<?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[【实测】3080-20G 单卡 vs 双卡：启动耗时、1/2/4 槽吞吐（Strata + Qwen3.8-Flash-Next 125B IQ3_S）]]></title><description><![CDATA[<p dir="auto">【实测】3080-20G 单卡 vs 双卡：启动耗时、1/2/4 槽吞吐（Strata + Qwen3.8-Flash-Next 125B IQ3_S）</p>
<p dir="auto"><strong>结论：一张 3080-20G 已经可以当个人 AI 工作站使用，单流 80 t/s（约合每分钟 8000 汉字）；加装第二张卡对单流体验只提升 40%，主要价值是支撑多客户端并发（4 槽合计 187 t/s 对 103 t/s）。真正决定速度的是专家缓存命中率，而不是算力——单卡 86–88%，双卡 98–99%。</strong></p>
<h2>1. 测试环境</h2>
<h3>1.1 硬件（实测）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项目</th>
<th>实测值</th>
<th>来源</th>
</tr>
</thead>
<tbody>
<tr>
<td>主板</td>
<td>aigo X99L D3</td>
<td>dmidecode</td>
</tr>
<tr>
<td>CPU</td>
<td>Intel Xeon E5-2696 v4，22C/44T，2.20 GHz（睿频 3.70），L3 55 MiB</td>
<td>lscpu</td>
</tr>
<tr>
<td>内存</td>
<td>4 × 32 GB DDR3-1866 ECC REG（Hynix HMT84GL7AMR4C-RD），共 128 GB，可用 125 GiB</td>
<td>dmidecode / free</td>
</tr>
<tr>
<td>GPU</td>
<td>2 × NVIDIA RTX 3080 20 GB（GA102，20,480 MiB，sm_86），PCIe 3.0 ×16，功耗上限锁 250 W</td>
<td>nvidia-smi</td>
</tr>
<tr>
<td>显卡驱动</td>
<td>595.99.02</td>
<td>nvidia-smi</td>
</tr>
<tr>
<td>系统盘</td>
<td>INTEL SSDPEKNW512G8，NVMe，476.9 GB</td>
<td>lsblk</td>
</tr>
<tr>
<td>操作系统</td>
<td>Ubuntu 24.04.4 LTS，内核 6.8.0-149-generic</td>
<td>/etc/os-release</td>
</tr>
<tr>
<td>CUDA</td>
<td>13.2（V13.2.78）</td>
<td>nvcc --version</td>
</tr>
<tr>
<td>待机温度</td>
<td>GPU0 43 °C / GPU1 36 °C</td>
<td>nvidia-smi</td>
</tr>
</tbody>
</table>
<h3>1.2 软件与模型</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项目</th>
<th>值</th>
</tr>
</thead>
<tbody>
<tr>
<td>推理引擎</td>
<td>Strata 0.1.61（CUDA 构建，<code>-DSTRATA_ENABLE_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=86</code>）</td>
</tr>
<tr>
<td>服务层</td>
<td><code>serve/server.py</code>，Python 3.12.3 venv（无 torch，只 numpy/pillow/psutil/pyyaml/regex/requests/tqdm/jinja2）</td>
</tr>
<tr>
<td>模型</td>
<td>Swift-1.5-Qwen3.8-Flash-Next-GSQ-RCO-abliterated <strong>IQ3_S</strong>，2 分片 54.94 + 28.80 = 83.7 GB</td>
</tr>
<tr>
<td>视觉塔</td>
<td>mmproj-Swift-…-BF16.gguf 907 MB（CPU 8 线程）</td>
</tr>
<tr>
<td>MTP 草稿层</td>
<td>5.7 GB</td>
</tr>
<tr>
<td>关键参数</td>
<td><code>--kv k8v4</code>、<code>--max-context 262144</code>、<code>--kv-resident 32768</code>、<code>parallel 4</code>、<code>--spec 4 --spec-min-p 0.5</code>、<code>--mtp-q4 all</code>、<code>--expert-cache auto</code>、<code>--pool-workers 22</code>（物理核数）、<code>reasoning_effort: none</code></td>
</tr>
<tr>
<td>单卡/双卡差别</td>
<td>只有 <code>gpu</code> 字段：<code>[0]</code> 或 <code>[0,1]</code>，其余完全相同</td>
</tr>
</tbody>
</table>
<blockquote>
<p dir="auto">两张卡合计 40 GB，模型 83.7 GB，装不进显存——<strong>专家常驻内存（47–55 GB），显存只放常驻权重加热专家缓存</strong>。瓶颈是「内存 + 显存能装多少专家」，不是 GPU 算力。</p>
</blockquote>
<h2>2. 启动速度</h2>
<p dir="auto">从进程启动到 <code>/v1/models</code> 返回 <code>loaded</code>（不看 systemd 的 is-active）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>配置</th>
<th>热启动（文件已在页缓存）</th>
<th>冷启动（drop_caches 后从 NVMe 读 83.7 GB）</th>
</tr>
</thead>
<tbody>
<tr>
<td>单卡 3080 20G</td>
<td><strong>32 s</strong></td>
<td><strong>88.6 s</strong></td>
</tr>
<tr>
<td>双卡 3080 40G</td>
<td><strong>38–41 s</strong></td>
<td><strong>96.8 s</strong></td>
</tr>
</tbody>
</table>
<p dir="auto">冷启动多出来的时间基本就是读盘。日常重启服务（页缓存仍在）只需 30–40 秒。</p>
<h2>3. 运行速度</h2>
<p dir="auto">协议：固定 prompt、greedy、256 token 输出、每档热身两次、每轮换新 prompt（避开会话缓存）、数字取引擎回报的 timings。</p>
<h3>3.1 单流 decode（tok/s）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>配置</th>
<th>4K 输入</th>
<th>32K 输入</th>
<th>128K 输入</th>
</tr>
</thead>
<tbody>
<tr>
<td>单卡 3080 20G</td>
<td><strong>80.3 – 82.4</strong></td>
<td><strong>81.8 – 84.6</strong></td>
<td><strong>79.9 – 81.7</strong></td>
</tr>
<tr>
<td>双卡 3080 40G</td>
<td><strong>112.6 – 115.8</strong></td>
<td><strong>111.0 – 111.2</strong></td>
<td><strong>111.6 – 114.1</strong></td>
</tr>
</tbody>
</table>
<p dir="auto">单流 prefill（tok/s，首读真实值）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>配置</th>
<th>4K</th>
<th>32K</th>
<th>128K</th>
</tr>
</thead>
<tbody>
<tr>
<td>单卡</td>
<td>787</td>
<td>1,948</td>
<td>2,940</td>
</tr>
<tr>
<td>双卡</td>
<td>1,117</td>
<td>2,846</td>
<td>4,056</td>
</tr>
</tbody>
</table>
<p dir="auto">两个现象：<strong>单卡长上下文不掉速</strong>（4K→128K 都在 80–85，KV 用 k8v4 + kv-resident 32768，大头在系统内存）；<strong>双卡单流只高 40%</strong> 而非 2 倍，因为专家缓存已满，多一张卡主要多装专家。</p>
<h3>3.2 槽位阶梯（1 / 2 / 4 槽，4K 输入）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>配置</th>
<th>1 槽</th>
<th>2 槽合计（每流）</th>
<th>4 槽合计（每流）</th>
</tr>
</thead>
<tbody>
<tr>
<td>单卡 3080 20G</td>
<td><strong>80.3 – 82.4</strong></td>
<td><strong>73.5（36.8）</strong></td>
<td><strong>103.5（25.6）</strong></td>
</tr>
<tr>
<td>双卡 3080 40G</td>
<td><strong>112.6 – 115.8</strong></td>
<td><strong>127.5（63.8）</strong></td>
<td><strong>187.0（46.0）</strong></td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>单卡的 2 槽是个坑</strong>：合计 73.5 比单槽 81 还低（两轮结果一致），到 4 槽才回到 103.5。单卡最划算的用法是「1 人用 1 槽」或「4 人排队用 4 槽」，2 槽两头不占。双卡则是线性上升：1→2 槽 +12%，1→4 槽 +66%。</p>
<h3>3.3 真实写作负载（1100 token 长输出，公文任务）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>配置</th>
<th>1 路</th>
<th>2 路合计（每路）</th>
<th>4 路合计（每路）</th>
</tr>
</thead>
<tbody>
<tr>
<td>单卡 3080 20G</td>
<td>71.8 – 75.5</td>
<td>68.0 – 70.7（34–35）</td>
<td>88.5 – 88.9（22.1）</td>
</tr>
<tr>
<td>双卡 3080 40G</td>
<td>79.5</td>
<td>113.4（56.7）</td>
<td>153.7 – 171.1（38–43）</td>
</tr>
</tbody>
</table>
<p dir="auto">单卡 73 t/s ≈ <strong>每分钟 8000 汉字</strong>，5000 字的小说一节 40 秒写完。</p>
<h3>3.4 专家缓存与命中率（最关键的一栏）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>配置</th>
<th>专家缓存</th>
<th>显存占用</th>
<th>decode 命中率</th>
</tr>
</thead>
<tbody>
<tr>
<td>单卡 3080 20G</td>
<td>4,582 slots / 8.74 GiB</td>
<td>19,609 MiB</td>
<td><strong>86 – 88 %</strong></td>
</tr>
<tr>
<td>双卡 3080 40G</td>
<td>6,193 slots（GPU1）/ 12.45 GiB</td>
<td>19,509 + 19,423 MiB</td>
<td><strong>98 – 99 %</strong></td>
</tr>
</tbody>
</table>
<p dir="auto">命中率跌破 90% 后每步都要走 PCIe 搬专家，速度会断崖式下滑。之前测过一组对照：把显存压到 32 GB，专家缓存掉到 8.3 GB、命中 80–84%，单流从 85 掉到 18 t/s——<strong>4.7 倍</strong>。所以选卡先算「总显存 − 常驻权重 = 专家缓存」，别看算力。</p>
<h2>4. 结论与选型建议</h2>
<ol>
<li><strong>只一个人用 → 单卡 3080-20G 足够</strong>：单流 80 t/s、命中 86–88%，不在断崖区。省下的钱加到内存上更值（内存 ≥125 GB 才能让专家驻留，低于 100 GB 只能 mmap，速度打四五折）。</li>
<li><strong>要多客户端 → 双卡</strong>：4 槽合计 187 t/s、每流 46 t/s，命中 98–99%，排队感受完全不同。</li>
<li><strong>单卡不要配 2 槽</strong>，实测是负优化。</li>
<li><strong>长上下文不掉速</strong>：128K 输入单卡仍 80 t/s。真正贵的是首字（128K prompt prefill 2,940 t/s ≈ 38 秒出第一个字）——那要用会话缓存去省，不是换卡能解决。</li>
<li>功耗锁 250 W（默认 320 W），温度噪音都更舒服，实测影响在噪声内。</li>
</ol>
<h2>5. 配置差异（单卡 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2194.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--left_right_arrow" style="height:1.4em;width:auto;vertical-align:middle" title="↔" alt="↔" /> 双卡只改一处）</h2>
<pre><code>"gpu": [0]        // 单卡
"gpu": [0, 1]     // 双卡

## 6. 测速口径（不复现这几条，数字没法比）

1. 先热身 2 次：冷启动第一请求低 40%（prefill 会临时借走专家缓存槽）。
2. 每轮换新 prompt：Strata 会缓存会话，重发同一 prompt 会出现 `新读=7`、prefill 几十万 t/s 的假数字。
3. decode/prefill 取引擎回报的 timings，不要用客户端墙钟（含排队）。
4. 多槽必须同时发（线程并发），报「每路中位 + 合计」。
5. 命中率跟着每个数字一起报——86% 和 98% 能解释 30% 的差距。
6. 冷启动必须 `echo 3 &gt; /proc/sys/vm/drop_caches` 之后再测，否则测的是页缓存。

---</code></pre>
]]></description><link>https://lcz.me/topic/3205</link><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 03:22:25 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/3205.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 19 Nov 2026 14:00:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 【实测】3080-20G 单卡 vs 双卡：启动耗时、1/2/4 槽吞吐（Strata + Qwen3.8-Flash-Next 125B IQ3_S） on Thu, 19 Nov 2026 14:35:30 GMT]]></title><description><![CDATA[<p dir="auto">我用单卡3080-20g的测试结果如下，可以上256K 上下文。</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>配置</th>
<th>实测 prompt</th>
<th>prefill tok/s</th>
<th>TTFT</th>
<th>decode 首次</th>
<th>decode 热</th>
<th>专家缓存</th>
<th>显存</th>
</tr>
</thead>
<tbody>
<tr>
<td>32K</td>
<td>13,065</td>
<td>2,061</td>
<td>6.3 s</td>
<td>60.0</td>
<td><strong>79.0</strong></td>
<td>13,268 MiB</td>
<td>~19.6 GB</td>
</tr>
<tr>
<td>64K</td>
<td>13,065</td>
<td>2,027</td>
<td>—</td>
<td>58.5</td>
<td>79.5</td>
<td>13,205 MiB</td>
<td>~19.6 GB</td>
</tr>
<tr>
<td><strong>128K</strong></td>
<td><strong>127,462</strong></td>
<td><strong>2,455</strong></td>
<td>51.9 s</td>
<td>56.9</td>
<td>未测</td>
<td>13,093 MiB</td>
<td>19,645 MiB</td>
</tr>
<tr>
<td><strong>160K</strong></td>
<td><strong>158,662</strong></td>
<td>2,300</td>
<td>69.0 s</td>
<td>51.6</td>
<td>65.1</td>
<td>13,035 MiB</td>
<td>19,695 MiB</td>
</tr>
<tr>
<td><strong>256K</strong></td>
<td><strong>254,862</strong></td>
<td>2,204</td>
<td>115.6 s</td>
<td>51.7</td>
<td><strong>70.9</strong></td>
<td>12,864 MiB</td>
<td>19,651 MiB</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>关键观察</strong>：256K 相比 32K，专家缓存只少 404 MiB，decode 只低约 10%。<code>--max-context 262144</code> 是模型的训练上限，已是理论最大值。</p>
<blockquote>
<p dir="auto">32K / 64K 行的测量 prompt 是 1.3 万 token；128K 及以上是填满整个上下文。两组不可直接横比"上下文对速度的影响"，但都说明<strong>配置到 256K 是可行的</strong>。</p>
</blockquote>
]]></description><link>https://lcz.me/post/34656</link><guid isPermaLink="true">https://lcz.me/post/34656</guid><dc:creator><![CDATA[PhilipShi2026]]></dc:creator><pubDate>Thu, 19 Nov 2026 14:35:30 GMT</pubDate></item></channel></rss>