<?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是不是可以代替llama.cpp了？]]></title><description><![CDATA[<p dir="auto">看了几个视频介绍，但都要linux安装，只会windows的小白就没法试。<br />
找到个windows版本的<br />
<a href="https://github.com/natpate/ninfer-windows" rel="nofollow ugc">https://github.com/natpate/ninfer-windows</a><br />
但只能5090用，不知道啥时候能出适配40系的</p>
<p dir="auto">如果真能超越llama.cpp一两倍的速度，那跑qwen3.8-27b是不是就可以放弃llama.cpp了</p>
]]></description><link>https://lcz.me/topic/1720</link><generator>RSS for Node</generator><lastBuildDate>Thu, 22 Oct 2026 21:53:10 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/1720.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 Sep 2026 08:46:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 这个ninfer是不是可以代替llama.cpp了？ on Thu, 17 Sep 2026 16:02:05 GMT]]></title><description><![CDATA[<p dir="auto">这个用例我同意：单卡、单模型、只追 decode 速度，ninfer 就是对的选择，我上一条说的是「通用替代不了」。</p>
<p dir="auto">分界给你两条：</p>
<ol>
<li>模型/量化在它支持列表内、上下文开不大、不需要 vision 或多模型热切 → 直接用 ninfer，别折腾。单卡 24G 跑 27B Q4，权重约占 15–16G，能留给 KV 的只剩 8–9G，开到 32k 以上照样爆。这点 ninfer 和 llama.cpp 一样，它快的是 decode kernel，不是省显存。</li>
<li>一旦要 128k、要 agent 反复读仓库（prefill 重）、要换 Q8/BF16/别的 GGUF、或想上双卡 TP → 回 llama.cpp / SGLang。ninfer 单卡那 328 个 tensor core 在双卡上帮不了你。</li>
</ol>
<p dir="auto">验证最省事：同机同模型同 prompt，llama-bench 和 ninfer 各跑一轮，pp（prefill）和 tg（decode）分开记。若你九成是短 prompt 聊天，ninfer 赢；长 prompt 那头可能反过来。两个都留、按场景切最省心。</p>
]]></description><link>https://lcz.me/post/18888</link><guid isPermaLink="true">https://lcz.me/post/18888</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Thu, 17 Sep 2026 16:02:05 GMT</pubDate></item><item><title><![CDATA[Reply to 这个ninfer是不是可以代替llama.cpp了？ on Thu, 17 Sep 2026 15:46:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/xiaote" aria-label="Profile: Xiaote">@<bdi>Xiaote</bdi></a> 可以替代 因為單卡4090 3090載了27b模型後 其他事都不能幹了，這時候 只想要盡量讓他單模型更快就好</p>
]]></description><link>https://lcz.me/post/18885</link><guid isPermaLink="true">https://lcz.me/post/18885</guid><dc:creator><![CDATA[dardeaw feng]]></dc:creator><pubDate>Thu, 17 Sep 2026 15:46:25 GMT</pubDate></item><item><title><![CDATA[Reply to 这个ninfer是不是可以代替llama.cpp了？ on Thu, 17 Sep 2026 13:33:38 GMT]]></title><description><![CDATA[<p dir="auto">这个分享很好，大家可以交互下自己跑出的实际数据</p>
]]></description><link>https://lcz.me/post/18863</link><guid isPermaLink="true">https://lcz.me/post/18863</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Thu, 17 Sep 2026 13:33:38 GMT</pubDate></item><item><title><![CDATA[Reply to 这个ninfer是不是可以代替llama.cpp了？ on Thu, 17 Sep 2026 06:08:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joker_chang" aria-label="Profile: joker_chang">@<bdi>joker_chang</bdi></a> 128k, ubuntu</p>
]]></description><link>https://lcz.me/post/18801</link><guid isPermaLink="true">https://lcz.me/post/18801</guid><dc:creator><![CDATA[johnnybegood]]></dc:creator><pubDate>Thu, 17 Sep 2026 06:08:05 GMT</pubDate></item><item><title><![CDATA[Reply to 这个ninfer是不是可以代替llama.cpp了？ on Thu, 17 Sep 2026 02:14:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johnnybegood" aria-label="Profile: johnnybegood">@<bdi>johnnybegood</bdi></a> 大神，3090上跑，您的上下文开到多少？64K还是128k？</p>
]]></description><link>https://lcz.me/post/18761</link><guid isPermaLink="true">https://lcz.me/post/18761</guid><dc:creator><![CDATA[joker_chang]]></dc:creator><pubDate>Thu, 17 Sep 2026 02:14:59 GMT</pubDate></item><item><title><![CDATA[Reply to 这个ninfer是不是可以代替llama.cpp了？ on Wed, 16 Sep 2026 07:25:39 GMT]]></title><description><![CDATA[<p dir="auto">很快应该有双卡，我让HERMES调研过，有人已经做了3090双卡方案了，不过可能不成熟，单卡328个 tensor core,双卡 656个 tensor core，想想还有点小激动呢，不过目前看vllm/sglang，似乎也只有int8权重最适合双3090</p>
]]></description><link>https://lcz.me/post/18556</link><guid isPermaLink="true">https://lcz.me/post/18556</guid><dc:creator><![CDATA[stxpnet]]></dc:creator><pubDate>Wed, 16 Sep 2026 07:25:39 GMT</pubDate></item><item><title><![CDATA[Reply to 这个ninfer是不是可以代替llama.cpp了？ on Tue, 15 Sep 2026 19:02:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/marsempire" aria-label="Profile: marsempire">@<bdi>marsempire</bdi></a> 结论：ninfer 替代不了 llama.cpp，它是「单卡专用引擎」对「通用引擎」，不是同一条赛道。</p>
<p dir="auto">ninfer 快的原因不是算法更强，是它主动放弃了通用性：</p>
<ul>
<li>只为一种架构手写 kernel（原版 sm_120a，社区分支才补 sm_89/sm_86），模型结构、量化格式、并行度都写死；</li>
<li>单卡、单模型、固定量化（groupwise-int 这类），没有张量并行、没有多模型热切换、没有通用 vision/图形路径；</li>
<li>所以 3090 / 4080s 上 50 到 70–80 tok/s 是真的，但那是「decode 单路、且模型正好在支持列表里」的数字。</li>
</ul>
<p dir="auto">什么时候用它：一张卡、模型和量化都在支持列表、只追 decode 单路延迟（聊天、单 agent）。<br />
什么时候留 llama.cpp / SGLang：</p>
<ul>
<li>双卡以上 TP，要 NVLink 或 PCIe 协同（ninfer 单卡用不了双卡；楼上 22 号也实测双 3090 不如 SGLang+DFlash2）；</li>
<li>要换模型、换量化、换精度（Q8、BF16、各种 GGUF 变体）；</li>
<li>agent、读代码仓库这种 prefill 为主、长上下文反复读的负载——看的是 prefill 和 cache 命中，ninfer 的强项不在那。</li>
</ul>
<p dir="auto">务实做法是两个都留：ninfer 当单卡聊天/短任务端点，llama.cpp 或 SGLang 当默认和 agent 端点，按模型和并发切。你 4080s 32G 跑到 70–80 已经很好了；写文章掉到 60 也正常，长输入一上来就转到 prefill，那正是通用引擎的主场。</p>
<p dir="auto">补一句：ninfer-windows 是社区 fork，pull 时留意有没有跟上游更新，别把带 bug 的旧 kernel 留在生产。</p>
]]></description><link>https://lcz.me/post/18436</link><guid isPermaLink="true">https://lcz.me/post/18436</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Tue, 15 Sep 2026 19:02:34 GMT</pubDate></item><item><title><![CDATA[Reply to 这个ninfer是不是可以代替llama.cpp了？ on Tue, 15 Sep 2026 13:19:20 GMT]]></title><description><![CDATA[<p dir="auto">写文章好像就慢了，只有60了</p>
]]></description><link>https://lcz.me/post/18385</link><guid isPermaLink="true">https://lcz.me/post/18385</guid><dc:creator><![CDATA[marsempire]]></dc:creator><pubDate>Tue, 15 Sep 2026 13:19:20 GMT</pubDate></item><item><title><![CDATA[Reply to 这个ninfer是不是可以代替llama.cpp了？ on Tue, 15 Sep 2026 13:05:46 GMT]]></title><description><![CDATA[<p dir="auto">初步优化了下，可以平均80token/s了，50%的提升，可以可以。</p>
<p dir="auto">就是可选的大模型有点少</p>
]]></description><link>https://lcz.me/post/18381</link><guid isPermaLink="true">https://lcz.me/post/18381</guid><dc:creator><![CDATA[marsempire]]></dc:creator><pubDate>Tue, 15 Sep 2026 13:05:46 GMT</pubDate></item><item><title><![CDATA[Reply to 这个ninfer是不是可以代替llama.cpp了？ on Tue, 15 Sep 2026 12:39:37 GMT]]></title><description><![CDATA[<p dir="auto">我试过我的双卡3090+nvlink 整体跑起来没有sglang+dflash2 好</p>
]]></description><link>https://lcz.me/post/18375</link><guid isPermaLink="true">https://lcz.me/post/18375</guid><dc:creator><![CDATA[starryskyknight]]></dc:creator><pubDate>Tue, 15 Sep 2026 12:39:37 GMT</pubDate></item><item><title><![CDATA[Reply to 这个ninfer是不是可以代替llama.cpp了？ on Tue, 15 Sep 2026 11:04:17 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rori" aria-label="Profile: rori">@<bdi>rori</bdi></a> <a href="/post/18336">说</a>:</p>
<p dir="auto">4090的在這:<br />
<a href="https://github.com/UDPSendToFailed/ninfer-4090" rel="nofollow ugc">https://github.com/UDPSendToFailed/ninfer-4090</a></p>
</blockquote>
<p dir="auto">谢谢，试了下，我4080s 32g ，原来平均50token/s，现在可以到70 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f60a.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--blush" style="height:1.4em;width:auto;vertical-align:middle" title=":blush:" alt="😊" /></p>
]]></description><link>https://lcz.me/post/18355</link><guid isPermaLink="true">https://lcz.me/post/18355</guid><dc:creator><![CDATA[marsempire]]></dc:creator><pubDate>Tue, 15 Sep 2026 11:04:17 GMT</pubDate></item><item><title><![CDATA[Reply to 这个ninfer是不是可以代替llama.cpp了？ on Tue, 15 Sep 2026 09:18:47 GMT]]></title><description><![CDATA[<p dir="auto">我4090只拿來單卡單模型 無腦用ninfer</p>
]]></description><link>https://lcz.me/post/18341</link><guid isPermaLink="true">https://lcz.me/post/18341</guid><dc:creator><![CDATA[dardeaw feng]]></dc:creator><pubDate>Tue, 15 Sep 2026 09:18:47 GMT</pubDate></item><item><title><![CDATA[Reply to 这个ninfer是不是可以代替llama.cpp了？ on Tue, 15 Sep 2026 09:17:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/marsempire" aria-label="Profile: marsempire">@<bdi>marsempire</bdi></a> llamacpp可用模型很多還可以多卡...ninfer只能單卡....模型可用範圍被限制在極窄的內容上<br />
光是ninfer用不了雙卡 BF16 或 Q8精度以上就是失敗了</p>
<p dir="auto">那妳問我用什麼呢? 我是用ninfer.......（挑貨才是買貨人）<br />
平常跑ninfer....不行時上雲或是切換llamacpp成全精度模型</p>
]]></description><link>https://lcz.me/post/18340</link><guid isPermaLink="true">https://lcz.me/post/18340</guid><dc:creator><![CDATA[David Chen]]></dc:creator><pubDate>Tue, 15 Sep 2026 09:17:39 GMT</pubDate></item><item><title><![CDATA[Reply to 这个ninfer是不是可以代替llama.cpp了？ on Tue, 15 Sep 2026 09:11:40 GMT]]></title><description><![CDATA[<p dir="auto">4090的在這:<br />
<a href="https://github.com/UDPSendToFailed/ninfer-4090" rel="nofollow ugc">https://github.com/UDPSendToFailed/ninfer-4090</a></p>
]]></description><link>https://lcz.me/post/18336</link><guid isPermaLink="true">https://lcz.me/post/18336</guid><dc:creator><![CDATA[rori]]></dc:creator><pubDate>Tue, 15 Sep 2026 09:11:40 GMT</pubDate></item><item><title><![CDATA[Reply to 这个ninfer是不是可以代替llama.cpp了？ on Tue, 15 Sep 2026 08:53:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/marsempire" aria-label="Profile: marsempire">@<bdi>marsempire</bdi></a> 你找找， 早就有大神修改版支持4090和3090了， 我在3090上面跑191tok/s qwen3.8 27B Q4</p>
]]></description><link>https://lcz.me/post/18332</link><guid isPermaLink="true">https://lcz.me/post/18332</guid><dc:creator><![CDATA[johnnybegood]]></dc:creator><pubDate>Tue, 15 Sep 2026 08:53:05 GMT</pubDate></item></channel></rss>