<?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 3080 20G 单卡跑 Qwen3.8-Flash-Next IQ2_XS：Strata 上机实测（128K 上下文 / int8 KV / MTP）]]></title><description><![CDATA[<h1>RTX 3080 20G 单卡跑 Qwen3.8-Flash-Next IQ2_XS：Strata 上机实测（128K 上下文 / int8 KV / MTP）</h1>
<p dir="auto">發現一個有趣項目<br />
<a href="https://github.com/Niko1221/Strata" rel="nofollow ugc">https://github.com/Niko1221/Strata</a></p>
<p dir="auto">我这边是一单张 3080 20G，用 <a href="https://github.com/Niko1221/Strata" rel="nofollow ugc">Strata</a> 把 IQ2_XS 量化版跑起来，对外提供 OpenAI 相容 API。这篇只写<strong>这台机器的配置、踩过的坑、以及目前验证到哪一步</strong>。</p>
<h2>一、机器与部署</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项目</th>
<th>配置</th>
</tr>
</thead>
<tbody>
<tr>
<td>主机</td>
<td>HP Z440，Xeon E5-2690 v4，Ubuntu 26.04.1，约 45 GiB RAM</td>
</tr>
<tr>
<td>显卡</td>
<td>RTX 3080 <strong>20 GB</strong>，驱动 595.91.07</td>
</tr>
<tr>
<td>引擎</td>
<td>Strata（<code>main.zip</code> 本机 CMake 编译，未记录 commit）</td>
</tr>
<tr>
<td>权重</td>
<td>原版 Qwen3.8-Flash-Next <strong>IQ2_XS</strong>（纯文字），约 72 GB</td>
</tr>
<tr>
<td>模型 ID</td>
<td><code>qwen3.8-flash-next-iq2_xs</code></td>
</tr>
<tr>
<td>API</td>
<td><code>http://192.168.1.200:1234/v1</code>（LAN 监听，API key 保存在权限 600 的配置里，不贴明文）</td>
</tr>
<tr>
<td>上下文</td>
<td><strong>131072</strong> tokens；KV <code>int8</code>；MTP <code>--spec 4</code>（模型数据自带 MTP runtime）</td>
</tr>
</tbody>
</table>
<h2>二、编译踩坑：CUDA 13.1 的 rsqrt 冲突</h2>
<p dir="auto">GitHub 预编译 binary 当时下载 404，只能本机 CMake 编译。Ubuntu 26.04 的自动 CUDA 安装流程不适用，改用发行版仓库的 CUDA 13.1 编译器/运行库。</p>
<p dir="auto">第一次编译卡在一个很具体的坑：<code>cuda-crt-13-1 13.1.115-0ubuntu1</code> 的 <code>rsqrt</code>/<code>rsqrtf</code> 与 glibc 2.43 的 exception specification 冲突。对策是对 <code>/usr/local/cuda-13.1/targets/x86_64-linux/include/crt/math_functions.h</code> 的相关声明加 <code>noexcept(true)</code>（<code>patch -b</code> 留了 <code>.orig</code> 备份）。</p>
<p dir="auto">这是<strong>系统 CUDA header 的兼容性 workaround</strong>，套件更新会覆盖，别不确认就照搬到其他版本。相关 bug 报告：<a href="https://www.mail-archive.com/ubuntu-bugs@lists.ubuntu.com/msg6300608.html" rel="nofollow ugc">Ubuntu bug</a>、<a href="https://forums.developer.nvidia.com/t/fedora-43-and-nvcc-cuda13-1-error-exception-specification-is-incompatible-rsqrt-rsqrtf/354510" rel="nofollow ugc">NVIDIA forum</a>。</p>
<h2>三、启动方式</h2>
<pre><code class="language-bash">sudo systemd-run --unit=strata-trial \
  --property=User=simon \
  --property=WorkingDirectory=/home/simon/Strata-main \
  /home/simon/Strata-main/run-iq2_xs.sh
</code></pre>
<p dir="auto">注意这是 transient unit，<code>systemctl is-enabled</code> 返回 <code>transient</code>——<strong>不会随开机自启</strong>，重启后要另行启动（或日后做正式持久化 unit）。</p>
<h2>四、验证（2026-09-28）</h2>
<ul>
<li>服务端 <code>ss -ltn</code> 显示 <code>192.168.100.200:1234</code> 监听；UFW inactive。</li>
<li>Windows 客户端 <code>Test-NetConnection 192.168.100.200 -Port 1234</code> → <code>TcpTestSucceeded: True</code>。</li>
<li>无 key 调 <code>/v1/models</code> 得 401；带 key 得模型 ID <code>qwen3.8-flash-next-iq2_xs</code>。</li>
<li>LAN 调 <code>/v1/chat/completions</code>（<code>reasoning_effort=low</code>、<code>max_tokens=64</code>）→ HTTP 200，<code>finish_reason=stop</code>；SSH 断开后仍可响应。</li>
<li>短测资源占用：内存约 <strong>38/45 GiB</strong>，显存约 <strong>19761/20480 MiB</strong>，swap 约 1.2 MiB。</li>
<li>localhost 短测约 <strong>57.8 tokens/s</strong>。</li>
</ul>
<p dir="auto">可重复的安全检查（key 自己填，别贴真实 key）：</p>
<pre><code class="language-bash">systemctl status strata-trial.service
ss -ltnp | grep ':1234'
curl -sS -H 'Authorization: Bearer &lt;STRATA_API_KEY&gt;' http://192.168.100.200:1234/v1/models
</code></pre>
<h2>五、还没做的事（先把丑话说前面）</h2>
<ol>
<li><strong>57.8 t/s 是短请求数字，不是长 context 的保证。</strong> 程序报 context 131072，但我还没送入接近 128K 的完整输入，也没测多并发。按论坛惯例，prefill/decode 分开测、冷缓存自证，才算数。</li>
<li>IQ2_XS 权重 72 GB，显存 20G 装不下全部——这必然涉及 offload，长 ctx 下 decode 会被 PCIe + 内存带宽压住（小特在 KVMem 帖里说得很清楚：能跑通 ≠ 跑得快）。下一步补 <code>nvidia-smi dmon</code> 的 SM%/mem% 曲线。</li>
<li><code>reasoning_effort=low</code> 仍可能吃思考 tokens：早前 <code>max_tokens=16</code> 的测试只见到思考没有最终文字，那不是 API 故障，是思考预算把输出窗口吃光了。</li>
</ol>
<h2>六、一句话总结</h2>
<p dir="auto">单张 3080 20G 上，IQ2_XS + int8 KV + MTP4 + 128K 配置已经能稳定对外提供 API，短请求 ~58 t/s 日常够用；但「配了 128K」不等于「128K 全程稳定」，长输入实测和持久化 systemd unit 是接下来两件事。有 3080/3090 单卡想抄这套的，编译那个 rsqrt 坑和 transient unit 这两点先看完再动手。</p>
<hr />
]]></description><link>https://lcz.me/topic/1987</link><generator>RSS for Node</generator><lastBuildDate>Mon, 12 Oct 2026 10:13:03 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/1987.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 28 Sep 2026 15:47:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to RTX 3080 20G 单卡跑 Qwen3.8-Flash-Next IQ2_XS：Strata 上机实测（128K 上下文 / int8 KV / MTP） on Sun, 11 Oct 2026 16:30:03 GMT]]></title><description><![CDATA[<p dir="auto">的确最快能到100t/s，但是慢慢会衰减到35左右，然后基本就这速度了。就是缓慢降速问题，一直没能解决</p>
]]></description><link>https://lcz.me/post/24056</link><guid isPermaLink="true">https://lcz.me/post/24056</guid><dc:creator><![CDATA[zrlhk]]></dc:creator><pubDate>Sun, 11 Oct 2026 16:30:03 GMT</pubDate></item><item><title><![CDATA[Reply to RTX 3080 20G 单卡跑 Qwen3.8-Flash-Next IQ2_XS：Strata 上机实测（128K 上下文 / int8 KV / MTP） on Sun, 11 Oct 2026 01:46:05 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://upload.lcz.me/uploads/ff45fd2d-dd9d-4e70-b63b-0b91be5c6ea0.jpg" alt="1791683143622.jpg" class="img-markdown  img-fluid" /></p>
]]></description><link>https://lcz.me/post/23884</link><guid isPermaLink="true">https://lcz.me/post/23884</guid><dc:creator><![CDATA[陳瑋]]></dc:creator><pubDate>Sun, 11 Oct 2026 01:46:05 GMT</pubDate></item><item><title><![CDATA[Reply to RTX 3080 20G 单卡跑 Qwen3.8-Flash-Next IQ2_XS：Strata 上机实测（128K 上下文 / int8 KV / MTP） on Sun, 11 Oct 2026 01:43:45 GMT]]></title><description><![CDATA[<p dir="auto">為什麼我3080 20g的 q2跑到95tokens</p>
]]></description><link>https://lcz.me/post/23883</link><guid isPermaLink="true">https://lcz.me/post/23883</guid><dc:creator><![CDATA[陳瑋]]></dc:creator><pubDate>Sun, 11 Oct 2026 01:43:45 GMT</pubDate></item><item><title><![CDATA[Reply to RTX 3080 20G 单卡跑 Qwen3.8-Flash-Next IQ2_XS：Strata 上机实测（128K 上下文 / int8 KV / MTP） on Thu, 01 Oct 2026 16:15:00 GMT]]></title><description><![CDATA[<p dir="auto">为什么我长上下文掉到只有16-29 token 每秒</p>
]]></description><link>https://lcz.me/post/21863</link><guid isPermaLink="true">https://lcz.me/post/21863</guid><dc:creator><![CDATA[Prio]]></dc:creator><pubDate>Thu, 01 Oct 2026 16:15:00 GMT</pubDate></item><item><title><![CDATA[Reply to RTX 3080 20G 单卡跑 Qwen3.8-Flash-Next IQ2_XS：Strata 上机实测（128K 上下文 / int8 KV / MTP） on Wed, 30 Sep 2026 14:46:48 GMT]]></title><description><![CDATA[<p dir="auto">我试过了，稳如泰山，越用越快，我实际输入最长上下文已经跑到180K，不见速度有明显降低，50-150K一直保持满速</p>
]]></description><link>https://lcz.me/post/21617</link><guid isPermaLink="true">https://lcz.me/post/21617</guid><dc:creator><![CDATA[vosrock]]></dc:creator><pubDate>Wed, 30 Sep 2026 14:46:48 GMT</pubDate></item><item><title><![CDATA[Reply to RTX 3080 20G 单卡跑 Qwen3.8-Flash-Next IQ2_XS：Strata 上机实测（128K 上下文 / int8 KV / MTP） on Wed, 30 Sep 2026 07:54:03 GMT]]></title><description><![CDATA[<p dir="auto">有試過這樣配置的效果怎樣嗎?<br />
容易發生死循環嗎?</p>
]]></description><link>https://lcz.me/post/21548</link><guid isPermaLink="true">https://lcz.me/post/21548</guid><dc:creator><![CDATA[rori]]></dc:creator><pubDate>Wed, 30 Sep 2026 07:54:03 GMT</pubDate></item><item><title><![CDATA[Reply to RTX 3080 20G 单卡跑 Qwen3.8-Flash-Next IQ2_XS：Strata 上机实测（128K 上下文 / int8 KV / MTP） on Wed, 30 Sep 2026 07:33:05 GMT]]></title><description><![CDATA[<p dir="auto">不错，就是不知干活能力如何， IQ2_XS这个量化是不是太严重了。</p>
]]></description><link>https://lcz.me/post/21540</link><guid isPermaLink="true">https://lcz.me/post/21540</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Wed, 30 Sep 2026 07:33:05 GMT</pubDate></item></channel></rss>