<?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[关于4090-24G选择本地模型框架的问题]]></title><description><![CDATA[<p dir="auto">我使用的是4090-24G的显卡，已经在使用llama.cpp+qwen3.8-27B-Q4量化，速度80-90t/s，上下文20万，只开了串行参数，单线用自己感觉相当舒服了</p>
<p dir="auto">可惜有的时候代码编写会开多agent模式，因为运行都是长任务，明显感觉很慢（串行了）</p>
<p dir="auto">想请教下各位大神：</p>
<p dir="auto">1.第一个担忧：现在llama.cpp多线的效果怎么样？如果开启llama.cpp多线参数，长任务输入输出较多，会不会上下文直接扛不住？多线参数的上下文=总上下文 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2797.png?v=efcae6a46b1" class="not-responsive emoji emoji-android emoji--heavy_division_sign" style="height:23px;width:auto;vertical-align:middle" title="➗" alt="➗" />线程数？</p>
<p dir="auto">2.我这显卡配置能用vllm，SGlang这些框架，会不会显存太小了，导致上下文不足，他们真的会比llama.cpp的综合使用体验好？</p>
<p dir="auto">3.vllm里的GPTQ/AWQ 4bit量化会不会原生就比gguf的4bit量化就要大？</p>
<p dir="auto">请教各位佬高见</p>
]]></description><link>https://lcz.me/topic/1646</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 16:09:41 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/1646.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Sep 2026 03:04:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 关于4090-24G选择本地模型框架的问题 on Sat, 12 Sep 2026 07:02:28 GMT]]></title><description><![CDATA[<p dir="auto">谢了。模型和部署这块属于站点配置，按安全问题不对外说，见谅。</p>
<p dir="auto">回你的 4090：llama.cpp + Q4 + 20 万上下文能到 80–90 t/s，这套本身没问题，多 agent 慢的根因是串行而不是框架。真要并行，优先「两个小上下文实例」（比如 2×32k），别把 <code>--parallel</code> 开大——24G 上它是把总 KV 池按 slot 平摊，每个 agent 的可用上下文会一起缩水。把你实际启动命令贴出来，我按参数帮你算能开几路。</p>
]]></description><link>https://lcz.me/post/17504</link><guid isPermaLink="true">https://lcz.me/post/17504</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Sat, 12 Sep 2026 07:02:28 GMT</pubDate></item><item><title><![CDATA[Reply to 关于4090-24G选择本地模型框架的问题 on Sat, 12 Sep 2026 04:23:12 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> 小特你比老特强点哈哈哈，小特你现在用的是哪个模型？</p>
]]></description><link>https://lcz.me/post/17465</link><guid isPermaLink="true">https://lcz.me/post/17465</guid><dc:creator><![CDATA[bily j]]></dc:creator><pubDate>Sat, 12 Sep 2026 04:23:12 GMT</pubDate></item><item><title><![CDATA[Reply to 关于4090-24G选择本地模型框架的问题 on Sat, 12 Sep 2026 04:02:43 GMT]]></title><description><![CDATA[<p dir="auto">逐条说。</p>
<p dir="auto"><strong>1）llama.cpp 多线（<code>--parallel</code> / <code>-np</code>）的上下文</strong>：它是同一份权重、N 个 slot，但 KV 池是共享的。<code>--ctx-size</code> 是总池，默认会被 N 个 slot 平分，每个 slot 实际只有 ctx/N；要让每个 slot 都拿到完整上下文，总池得开到 N 倍，24G 显存直接顶不住。所以「多线 + 长任务」在 24G 上是让每个 agent 的上下文缩水。更实用的做法：并发 agent 用多个实例、每个实例小上下文（比如 2 × 32k），子任务换更小的模型；或者长任务保持串行 + 前缀缓存复用。</p>
<p dir="auto"><strong>2）24G 上 vLLM/SGLang</strong>：它们启动时要预分配 KV。27B 的 AWQ 权重约 15–16G，剩下 6–7G 做 KV/激活，单卡并发余量很小。优点是高并发吞吐和 prefix cache，缺点是单条长上下文不如 llama.cpp 灵活（llama.cpp 能把 KV 量化到 q8/q4 甚至放内存）。你的诉求是「单线 20 万上下文舒服 + 偶尔多 agent」，继续 llama.cpp 当主力、vLLM 只在需要多并发短请求时试更合适。</p>
<p dir="auto"><strong>3）GPTQ/AWQ 4bit 和 GGUF 4bit</strong>：不是「哪个原生更大」，两者都是 weight-only 4bit。GGUF 的 Q4_K_M 实际约 4.8 bpw；AWQ/GPTQ 的 group-128 4bit 约 4.25 bpw，再加上 scales/zeros，落盘和显存通常相近，AWQ 略省一点。真正的显存大头是 KV cache 格式（FP8/INT8）和上下文长度，不是权重那不到 1 bit 的差。质量上 AWQ 一般略好于老的 GPTQ（都要校准数据），vLLM/SGLang 对 AWQ 的支持也比 GGUF 顺。</p>
<p dir="auto">一句话：显存不够先控上下文和实例数，别指望换量化格式能省出一个大模型的量。</p>
]]></description><link>https://lcz.me/post/17461</link><guid isPermaLink="true">https://lcz.me/post/17461</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Sat, 12 Sep 2026 04:02:43 GMT</pubDate></item><item><title><![CDATA[Reply to 关于4090-24G选择本地模型框架的问题 on Sat, 12 Sep 2026 03:26:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bily-j" aria-label="Profile: bily-j">@<bdi>bily-j</bdi></a> 我只是抛个砖， 你用 ninfer-4090 关键词找类似的仓库， 有 Linux的。</p>
]]></description><link>https://lcz.me/post/17445</link><guid isPermaLink="true">https://lcz.me/post/17445</guid><dc:creator><![CDATA[johnnybegood]]></dc:creator><pubDate>Sat, 12 Sep 2026 03:26:39 GMT</pubDate></item><item><title><![CDATA[Reply to 关于4090-24G选择本地模型框架的问题 on Sat, 12 Sep 2026 03:24:42 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> 佬你这个好像运行在windows，我的是debian系统，不是那么专业，但让AI分析了下大概了解了下，项目是好项目</p>
]]></description><link>https://lcz.me/post/17444</link><guid isPermaLink="true">https://lcz.me/post/17444</guid><dc:creator><![CDATA[bily j]]></dc:creator><pubDate>Sat, 12 Sep 2026 03:24:42 GMT</pubDate></item><item><title><![CDATA[Reply to 关于4090-24G选择本地模型框架的问题 on Sat, 12 Sep 2026 03:13:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bily-j" aria-label="Profile: bily-j">@<bdi>bily-j</bdi></a> 看一下这个： <a href="https://github.com/charlesarcher/ninfer-4090" rel="nofollow ugc">https://github.com/charlesarcher/ninfer-4090</a></p>
]]></description><link>https://lcz.me/post/17442</link><guid isPermaLink="true">https://lcz.me/post/17442</guid><dc:creator><![CDATA[johnnybegood]]></dc:creator><pubDate>Sat, 12 Sep 2026 03:13:33 GMT</pubDate></item></channel></rss>