<?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[NInfer-4090 V3：单路218.7/多路348.5 tok/s]]></title><description><![CDATA[<p dir="auto">项目地址：<a href="https://github.com/zheteng-v/ninfer-4090" rel="nofollow ugc">NInfer-4090 GitHub 仓库</a></p>
<p dir="auto">这是 NInfer 在 48GB RTX 4090（sm_89）上的下游版本，主要围绕 Qwen3.8-27B 做原生 Linux 推理。V3 已从旧的 V2 artifact 和运行时切换到 artifact v3 与绑定实例的 Engine；模型加载、服务和推理走同一套 C++/CUDA 路径，不需要 Docker。</p>
<h2>V3 做了什么</h2>
<ul>
<li>更新到 v3 权重容器和新的 Engine 绑定方式，保留 V2 作为可回退版本。</li>
<li>完成 64K 到模型原生长上下文范围的正确性验证；64K NIAH（大海捞针）结果与 oracle 一致。</li>
<li>支持持久会话、Vision 图像/视频输入，以及 OpenAI 和 Anthropic 风格的服务接口。</li>
<li>针对 RTX 4090 调整了小批量 Q4/Q5 投影的 T=8 路由，包括 GDN 投影、attention Q5 投影和 SwiGLU 路径。</li>
<li>所有速度测试均使用 INT8 或更高精度的 KV cache；没有用降低 KV 精度换速度。</li>
</ul>
<h2>实测数据</h2>
<p dir="auto">短码单请求测试使用 V3 artifact、8K 上下文、INT8 KV、固定代码任务、4096 个输出 token。当前最快的实测配置是 DFlash2 K=7：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>配置</th>
<th style="text-align:right">解码速度</th>
<th style="text-align:right">每轮设备时间</th>
<th style="text-align:right">接受率</th>
</tr>
</thead>
<tbody>
<tr>
<td>V3 DFlash2 K=7</td>
<td style="text-align:right"><strong>213.17 tok/s</strong></td>
<td style="text-align:right">24.203 ms</td>
<td style="text-align:right">59.56%</td>
</tr>
<tr>
<td>V3 MTP3（同一二进制、同一任务）</td>
<td style="text-align:right">147.56 tok/s</td>
<td style="text-align:right">22.843 ms</td>
<td style="text-align:right">79.10%</td>
</tr>
</tbody>
</table>
<p dir="auto">保存的 V2 短码基线为 153.67 tok/s，使用的是 MTP3。213.17 tok/s 相对它高约 38.7%，但这是 V3 DFlash2 K=7 对 V2 MTP3 的跨后端比较，不是同配置的版本 A/B。相同的 64K NIAH 测试中，V2/V3 prefill 分别为 1884.70/1884.52 tok/s，decode 分别为 149.59/149.44 tok/s，长上下文表现基本持平。</p>
<p dir="auto">并发测试是另一种口径：DFlash2 K=7 的 C2/C4/C8 聚合吞吐分别为 125.7/218.7/348.5 tok/s。它表示多路请求的总吞吐，不代表单个请求能达到这些速度。</p>
<p dir="auto">算子测试也有改善，例如 T=8 attention Q5 gate/value 投影从 57.344 µs 降到 39.936 µs，GDN QK Q4 投影从 35.840 µs 降到 31.744 µs。这些是单算子结果，不能直接当成端到端提速比例。</p>
<h2>快速启动</h2>
<p dir="auto">在仓库根目录执行。下载脚本会校验官方 V3 artifact 的 SHA-256：</p>
<pre><code class="language-bash">NINFER_MODEL_DIR="$PWD/models" bash scripts/download-qwen38.sh
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CUDA_ARCHITECTURES=89
cmake --build build -j
</code></pre>
<p dir="auto">短上下文、偏重解码速度时，可从这组已测参数开始：</p>
<pre><code class="language-bash">./build/apps/ninfer-serve models/qwen3_8_27b.ninfer \
  --host 127.0.0.1 --port 8080 \
  --max-context 8192 --kv-capacity 8192 \
  --max-concurrency 1 --prefill-chunk 1024 --kv-dtype int8 \
  --spec dflash2 --draft-tokens 7 --lm-head-draft
</code></pre>
<p dir="auto">服务启动后，可以用下面的请求试一下：</p>
<pre><code class="language-bash">curl http://127.0.0.1:8080/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model":"qwen3.8-27b","messages":[{"role":"user","content":"用一句话介绍 CUDA Graph。"}],"max_tokens":128}'
</code></pre>
<p dir="auto">首次启动需要生成 CUDA Graph，冷启动可能需要几分钟；这是一次性准备时间，不计入上面的稳态解码速度。若需要长上下文，可把 <code>--max-context</code> 和 <code>--kv-capacity</code> 调高，并按显存余量选择并发数；KV 精度保持 <code>int8</code> 或更高。</p>
<h2>相关链接</h2>
<ul>
<li><a href="https://github.com/zheteng-v/ninfer-4090#readme" rel="nofollow ugc">项目 README 与完整说明</a></li>
<li><a href="https://github.com/zheteng-v/ninfer-4090/blob/main/docs/maintainer/2026-10-01-v3-sm89-release.md" rel="nofollow ugc">V3 发布记录与验证范围</a></li>
<li><a href="https://github.com/zheteng-v/ninfer-4090/blob/main/docs/maintainer/sm89-performance-roadmap.md" rel="nofollow ugc">性能实验记录</a></li>
<li><a href="https://github.com/zheteng-v/ninfer-4090/blob/main/model-cards/Qwen3.8-27B-NInfer/README.md" rel="nofollow ugc">模型卡与 artifact 信息</a></li>
</ul>
]]></description><link>https://lcz.me/topic/2047</link><generator>RSS for Node</generator><lastBuildDate>Mon, 12 Oct 2026 13:28:53 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/2047.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 02 Oct 2026 08:06:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NInfer-4090 V3：单路218.7/多路348.5 tok/s on Sat, 03 Oct 2026 14:46:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/_%E6%8A%98%E9%A8%B0_" aria-label="Profile: _折騰_">@<bdi>_折騰_</bdi></a> 加油，期待你的新帖子。</p>
]]></description><link>https://lcz.me/post/22142</link><guid isPermaLink="true">https://lcz.me/post/22142</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Sat, 03 Oct 2026 14:46:29 GMT</pubDate></item><item><title><![CDATA[Reply to NInfer-4090 V3：单路218.7/多路348.5 tok/s on Sat, 03 Oct 2026 14:46:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ny-zhao" aria-label="Profile: NY-Zhao">@<bdi>NY-Zhao</bdi></a> 我没感受到任何差距，FP8就是单纯的大一点。</p>
]]></description><link>https://lcz.me/post/22141</link><guid isPermaLink="true">https://lcz.me/post/22141</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Sat, 03 Oct 2026 14:46:12 GMT</pubDate></item><item><title><![CDATA[Reply to NInfer-4090 V3：单路218.7/多路348.5 tok/s on Sat, 03 Oct 2026 14:44:40 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ny-zhao" aria-label="Profile: NY-Zhao">@<bdi>NY-Zhao</bdi></a> <a href="/post/21994">说</a>:</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/_%E6%8A%98%E9%A8%B0_" aria-label="Profile: _折騰_">@<bdi>_折騰_</bdi></a> 修正下，按照大佬的配置部署好了，我的4090 48G，水冷的卡，2周前看 <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> 版主的youtube推荐，立刻就在京东找了个商家买了，用起来很爽，感谢两位大佬。</p>
<p dir="auto">汇报下，目前按照 <a href="https://github.com/zheteng-v/ninfer-4090" rel="nofollow ugc">https://github.com/zheteng-v/ninfer-4090</a> 的方法，部署成功了，我自己用token-speed-tester，只跑了一轮的测试，峰值150t/s左右，平均125t/s，用dsh，能保持在120t/s左右，不知道哪里设置不对，不过已经用起来很爽了，感谢两位大佬</p>
<p dir="auto">贴一下我的启动参数，我要的是256k上下文：<br />
cd ~/ninfer-4090</p>
<h1>终止所有使用显卡的残留进程（ninfer、python 等）</h1>
<p dir="auto">fuser -v /dev/nvidia* -k 2&gt;/dev/null</p>
<h1>确保旧的 ninfer 进程完全退出</h1>
<p dir="auto">pkill -9 -f "ninfer-serve"</p>
<p dir="auto">./build/apps/ninfer-serve <br />
~/models/Qwen3.8-27B-Uncensored-HauhauCS-Aggressive-DFlash2-ninfer-v3.ninfer <br />
--host 0.0.0.0 <br />
--port 30000 <br />
--max-context 262144 <br />
--host-kv-mib 40960 <br />
--host-state-slots 4 <br />
--max-concurrency 1 <br />
--max-pending-requests 10 <br />
--prefill-chunk 2048 <br />
--kv-dtype fp8 <br />
--spec dflash2 <br />
--draft-tokens 7</p>
<p dir="auto">刚开始接触本地部署，这次买的配置是4090 48g，128g内存，u7，pcie 5的双槽，计划留一个给未来加一张卡，主要是跑minimax H3，然后发现本地部署qwen 3.8 27b，也很爽。</p>
<p dir="auto">目前除了在论坛学习，主要是跟着gemini弄，初来乍到，多向各位大佬请教，祝论坛越来越好！</p>
</blockquote>
<p dir="auto">如果参数没问题，可能是硬件差异有关，试试8K短码结果，如果速度能大于170k+基本可以肯定是硬件差异。不只是来自于相同显卡，CPU，内存频率也有关系。配置更好的也许跑出的速度比我更快。</p>
]]></description><link>https://lcz.me/post/22139</link><guid isPermaLink="true">https://lcz.me/post/22139</guid><dc:creator><![CDATA[_折騰_]]></dc:creator><pubDate>Sat, 03 Oct 2026 14:44:40 GMT</pubDate></item><item><title><![CDATA[Reply to NInfer-4090 V3：单路218.7/多路348.5 tok/s on Sat, 03 Oct 2026 13:35:51 GMT]]></title><description><![CDATA[<p dir="auto">正在移植TierKV，完成后多并发会非常爽。。。<br />
之所以搞ninfer框架，速度上确实比sglang要快的多，精度反而比 awq 更高。</p>
]]></description><link>https://lcz.me/post/22118</link><guid isPermaLink="true">https://lcz.me/post/22118</guid><dc:creator><![CDATA[_折騰_]]></dc:creator><pubDate>Sat, 03 Oct 2026 13:35:51 GMT</pubDate></item><item><title><![CDATA[Reply to NInfer-4090 V3：单路218.7/多路348.5 tok/s on Sat, 03 Oct 2026 10:53:27 GMT]]></title><description><![CDATA[<p dir="auto">不是说AWQ，不太聪明嘛，我就换成了FP8 <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a></p>
]]></description><link>https://lcz.me/post/22107</link><guid isPermaLink="true">https://lcz.me/post/22107</guid><dc:creator><![CDATA[NY Zhao]]></dc:creator><pubDate>Sat, 03 Oct 2026 10:53:27 GMT</pubDate></item><item><title><![CDATA[Reply to NInfer-4090 V3：单路218.7/多路348.5 tok/s on Sat, 03 Oct 2026 10:02:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ny-zhao" aria-label="Profile: NY-Zhao">@<bdi>NY-Zhao</bdi></a> 我两个都测试了，都挺好的，你可以看下我的那个视频，我是实测了，长上下文没问题，很稳定。但是SGLang+DFlash2如果跑得通，体验肯定是最好的。还有你换AWQ模型，FP8太大了，不划算。</p>
]]></description><link>https://lcz.me/post/22097</link><guid isPermaLink="true">https://lcz.me/post/22097</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Sat, 03 Oct 2026 10:02:08 GMT</pubDate></item><item><title><![CDATA[Reply to NInfer-4090 V3：单路218.7/多路348.5 tok/s on Sat, 03 Oct 2026 09:09:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dardeaw-feng" aria-label="Profile: dardeaw-feng">@<bdi>dardeaw-feng</bdi></a> 我还在优化中，等晚点帖出来让大佬们给我指导指导，我看论坛有大佬说FP8+Dflash2+256K，能跑到100t/s，我用下来，sglang最大的好处是稳定，真的没有啥问题，而且响应好快</p>
]]></description><link>https://lcz.me/post/22085</link><guid isPermaLink="true">https://lcz.me/post/22085</guid><dc:creator><![CDATA[NY Zhao]]></dc:creator><pubDate>Sat, 03 Oct 2026 09:09:13 GMT</pubDate></item><item><title><![CDATA[Reply to NInfer-4090 V3：单路218.7/多路348.5 tok/s on Sat, 03 Oct 2026 09:04:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ny-zhao" aria-label="Profile: NY-Zhao">@<bdi>NY-Zhao</bdi></a> 我只有24G 所以打從一開始就放棄sglang了，能用的kv cache太少，其實現在推論引擎都有prefix cache，增量prefill下去速度都很快，差別只在於token級或是prompt級的頭而已。</p>
]]></description><link>https://lcz.me/post/22083</link><guid isPermaLink="true">https://lcz.me/post/22083</guid><dc:creator><![CDATA[dardeaw feng]]></dc:creator><pubDate>Sat, 03 Oct 2026 09:04:39 GMT</pubDate></item><item><title><![CDATA[Reply to NInfer-4090 V3：单路218.7/多路348.5 tok/s on Sat, 03 Oct 2026 08:57:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dardeaw-feng" aria-label="Profile: dardeaw-feng">@<bdi>dardeaw-feng</bdi></a> 然后我现在看了论坛的另一个贴，我改成sglang了，速度是慢了点，但是稳定，而且用的fp8，我觉得日常对话，反而比ninfer要舒服，不知道为什么ninfer，在dsh里的时候，对话特别慢，而且有时候会出错，我现在dflash2，单用户，大概能跑到50t/s，还在让ai在给我优化中</p>
]]></description><link>https://lcz.me/post/22078</link><guid isPermaLink="true">https://lcz.me/post/22078</guid><dc:creator><![CDATA[NY Zhao]]></dc:creator><pubDate>Sat, 03 Oct 2026 08:57:28 GMT</pubDate></item><item><title><![CDATA[Reply to NInfer-4090 V3：单路218.7/多路348.5 tok/s on Sat, 03 Oct 2026 08:55:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> 风冷受不了那个声音，我是从京东的商家买的整机，他们店保3年，然后是上门服务，我觉得还可以，我把机器放在厨房了，我家厨房是24小时空调，然后也不吵，我这个人就是对噪音有比较特殊的偏好</p>
]]></description><link>https://lcz.me/post/22077</link><guid isPermaLink="true">https://lcz.me/post/22077</guid><dc:creator><![CDATA[NY Zhao]]></dc:creator><pubDate>Sat, 03 Oct 2026 08:55:18 GMT</pubDate></item><item><title><![CDATA[Reply to NInfer-4090 V3：单路218.7/多路348.5 tok/s on Sat, 03 Oct 2026 07:38:52 GMT]]></title><description><![CDATA[<p dir="auto">ninfer真的讓4090變神卡了</p>
]]></description><link>https://lcz.me/post/22062</link><guid isPermaLink="true">https://lcz.me/post/22062</guid><dc:creator><![CDATA[dardeaw feng]]></dc:creator><pubDate>Sat, 03 Oct 2026 07:38:52 GMT</pubDate></item><item><title><![CDATA[Reply to NInfer-4090 V3：单路218.7/多路348.5 tok/s on Sat, 03 Oct 2026 07:07:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ny-zhao" aria-label="Profile: NY-Zhao">@<bdi>NY-Zhao</bdi></a> 你买了JD的卡改的水冷？？？那不保修了啊，我风冷的，坏掉了换了一个，现在挺好的。</p>
]]></description><link>https://lcz.me/post/22059</link><guid isPermaLink="true">https://lcz.me/post/22059</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Sat, 03 Oct 2026 07:07:56 GMT</pubDate></item><item><title><![CDATA[Reply to NInfer-4090 V3：单路218.7/多路348.5 tok/s on Fri, 02 Oct 2026 18:03:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/_%E6%8A%98%E9%A8%B0_" aria-label="Profile: _折騰_">@<bdi>_折騰_</bdi></a> 修正下，按照大佬的配置部署好了，我的4090 48G，水冷的卡，2周前看 <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> 版主的youtube推荐，立刻就在京东找了个商家买了，用起来很爽，感谢两位大佬。</p>
<p dir="auto">汇报下，目前按照 <a href="https://github.com/zheteng-v/ninfer-4090" rel="nofollow ugc">https://github.com/zheteng-v/ninfer-4090</a> 的方法，部署成功了，我自己用token-speed-tester，只跑了一轮的测试，峰值150t/s左右，平均125t/s，用dsh，能保持在120t/s左右，不知道哪里设置不对，不过已经用起来很爽了，感谢两位大佬</p>
<p dir="auto">贴一下我的启动参数，我要的是256k上下文：<br />
cd ~/ninfer-4090</p>
<h1>终止所有使用显卡的残留进程（ninfer、python 等）</h1>
<p dir="auto">fuser -v /dev/nvidia* -k 2&gt;/dev/null</p>
<h1>确保旧的 ninfer 进程完全退出</h1>
<p dir="auto">pkill -9 -f "ninfer-serve"</p>
<p dir="auto">./build/apps/ninfer-serve <br />
~/models/Qwen3.8-27B-Uncensored-HauhauCS-Aggressive-DFlash2-ninfer-v3.ninfer <br />
--host 0.0.0.0 <br />
--port 30000 <br />
--max-context 262144 <br />
--host-kv-mib 40960 <br />
--host-state-slots 4 <br />
--max-concurrency 1 <br />
--max-pending-requests 10 <br />
--prefill-chunk 2048 <br />
--kv-dtype fp8 <br />
--spec dflash2 <br />
--draft-tokens 7</p>
<p dir="auto">刚开始接触本地部署，这次买的配置是4090 48g，128g内存，u7，pcie 5的双槽，计划留一个给未来加一张卡，主要是跑minimax H3，然后发现本地部署qwen 3.8 27b，也很爽。</p>
<p dir="auto">目前除了在论坛学习，主要是跟着gemini弄，初来乍到，多向各位大佬请教，祝论坛越来越好！</p>
]]></description><link>https://lcz.me/post/21994</link><guid isPermaLink="true">https://lcz.me/post/21994</guid><dc:creator><![CDATA[NY Zhao]]></dc:creator><pubDate>Fri, 02 Oct 2026 18:03:44 GMT</pubDate></item><item><title><![CDATA[Reply to NInfer-4090 V3：单路218.7/多路348.5 tok/s on Fri, 02 Oct 2026 08:58:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/_%E6%8A%98%E9%A8%B0_" aria-label="Profile: _折騰_">@<bdi>_折騰_</bdi></a> 可以，欢迎跟进，更新抄作业范本。</p>
]]></description><link>https://lcz.me/post/21939</link><guid isPermaLink="true">https://lcz.me/post/21939</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Fri, 02 Oct 2026 08:58:34 GMT</pubDate></item><item><title><![CDATA[Reply to NInfer-4090 V3：单路218.7/多路348.5 tok/s on Fri, 02 Oct 2026 08:22:28 GMT]]></title><description><![CDATA[<p dir="auto">现阶段，Qwen3.8 Flash + GSQ-RCO 在 strata 上仍处于实验验证阶段，GSQ-RCO的量化在质量上还是存在很多问题。受单位推理成本偏高制约，其收益/成本比尚未显著优于 27B 方案。我也正在研究，优化重点转向降低内存占用、提升多卡并行扩展效率，以改善整体吞吐与性价比。毕竟显存才是发挥出效率的终极方案。</p>
]]></description><link>https://lcz.me/post/21937</link><guid isPermaLink="true">https://lcz.me/post/21937</guid><dc:creator><![CDATA[_折騰_]]></dc:creator><pubDate>Fri, 02 Oct 2026 08:22:28 GMT</pubDate></item><item><title><![CDATA[Reply to NInfer-4090 V3：单路218.7/多路348.5 tok/s on Fri, 02 Oct 2026 08:11:27 GMT]]></title><description><![CDATA[<p dir="auto">非常不错，有时间抄下作业，这几天各框架都很牛啊，Ninfer还没大火，千万别被strata干凉了。</p>
]]></description><link>https://lcz.me/post/21935</link><guid isPermaLink="true">https://lcz.me/post/21935</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Fri, 02 Oct 2026 08:11:27 GMT</pubDate></item></channel></rss>