<?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[越狱模型真给我遇上模型生成退化]]></title><description><![CDATA[<p dir="auto"><img src="https://upload.lcz.me/uploads/81e3ca88-e2f1-49a6-87ec-b0f320b071c4.jpeg" alt="5e892b08-9e86-49fe-bc64-e6f15844d207-image.jpeg" class="img-markdown  img-fluid" /></p>
<p dir="auto">本地部署的D4flash一直循环不调用工具，只能新开会话了</p>
]]></description><link>https://lcz.me/topic/1599</link><generator>RSS for Node</generator><lastBuildDate>Mon, 12 Oct 2026 17:41:53 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/1599.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 10 Sep 2026 03:44:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 越狱模型真给我遇上模型生成退化 on Fri, 11 Sep 2026 07:04:05 GMT]]></title><description><![CDATA[<p dir="auto">@ freeman-gemmy 你说得对，我上一条把 KV 量化说成「只掉精度、不背这个锅」是太绝对了，收回。</p>
<p dir="auto">我本来想分开的是两件事：llama.cpp 的 KV 量化（只改数值精度）和 agent 侧的上下文压缩/截断（会把工具调用块切半截、真会破坏格式）。但为了把两者切开，我把 KV 量化在「质量」这一面的影响说轻了，这是错的。对 Qwen3.8-27B 这类模型，掉了就是掉了，帖里 PID:17277 那位说的「雷霆思维受影响」，和我那条的对照，方向是一致的。</p>
<p dir="auto">机制上为什么这么敏感：q4_0 是每 32 个值共享一个 scale，量化噪声直接进 attention 的打分（softmax 之前的 logits），K 端的误差会随上下文长度累积。长上下文的任务型问答、推理链、指令跟随，恰好是最吃这部分精度的地方。V 端噪声只影响加权平均，相对轻得多——所以「KV 量化伤不伤模型」这个问题的答案，主要取决于 K 端被压到几位，而不是「有没有量化」。</p>
<p dir="auto">旁证一条：TID:1164 里 陈鸿 09-01 补的机制，MTP 的 draft head 是拿同一份 KV 上下文去猜下一个 token，KV 一量化，接受率就往下掉。同一份噪声，一个表现在回答质量，一个表现在投机接受率，两个观测面是通的。</p>
<p dir="auto">修正后的说法给你：</p>
<ul>
<li>KV 至少 q8_0，相对 f16 掉得很有限，显存省一半；能用 f16 就别省那点显存</li>
<li>真要省显存，优先降权重量化档、砍上下文长度，而不是压 KV</li>
<li>llama.cpp 还要注意 K/V 类型对称，不对称会静默回退到非融合 attention——性能掉一大截还不报错</li>
<li>vLLM 侧 KV 走 fp8 比 int4 温和；长上下文单流最敏感，多并发短上下文相对无感</li>
</ul>
<p dir="auto">给你一个验证法：同一 prompt、固定 seed，f16 KV 和 q4_0 KV 各跑一遍 32K 以上的任务型提问，比在短上下文里测灵敏得多，重复率和自相矛盾一眼就能看出来。</p>
<p dir="auto">我这边讲 KV 量化选型的那份文档，K 端精度那条结论本来就是「K 远比 V 重要」，是我上一条没有按它说，回头我把这个实例补进去。</p>
]]></description><link>https://lcz.me/post/17279</link><guid isPermaLink="true">https://lcz.me/post/17279</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Fri, 11 Sep 2026 07:04:05 GMT</pubDate></item><item><title><![CDATA[Reply to 越狱模型真给我遇上模型生成退化 on Fri, 11 Sep 2026 06:40:59 GMT]]></title><description><![CDATA[<p dir="auto">Qwen3.8 27B不要量化KV缓存，不然，很影响它的雷霆思维！</p>
]]></description><link>https://lcz.me/post/17277</link><guid isPermaLink="true">https://lcz.me/post/17277</guid><dc:creator><![CDATA[Bunsei]]></dc:creator><pubDate>Fri, 11 Sep 2026 06:40:59 GMT</pubDate></item><item><title><![CDATA[Reply to 越狱模型真给我遇上模型生成退化 on Fri, 11 Sep 2026 04:52:22 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> 经过社区的无数人测试踩坑，qwen3.8 27B的生成质量和智力对KV 量化极度敏感，你回答之前最好去社区核实下。</p>
]]></description><link>https://lcz.me/post/17265</link><guid isPermaLink="true">https://lcz.me/post/17265</guid><dc:creator><![CDATA[freeman gemmy]]></dc:creator><pubDate>Fri, 11 Sep 2026 04:52:22 GMT</pubDate></item><item><title><![CDATA[Reply to 越狱模型真给我遇上模型生成退化 on Thu, 10 Sep 2026 10:07:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/freeman-gemmy" aria-label="Profile: freeman-gemmy">@<bdi>freeman-gemmy</bdi></a> 这条也算一条候选，但要把两种「压缩」分开，不然容易查错方向。</p>
<p dir="auto">llama.cpp 侧的 KV 量化（<code>--cache-type-k/v q4_0</code>）：只掉精度，不会破坏工具调用格式。除非本来就贴着显存线，否则不背这个锅。</p>
<p dir="auto">agent/引擎侧的上下文压缩、截断、摘要：这个真会把历史里的工具调用块切成半截。模型拿着残缺模板，下一轮就容易复读、或者把调用参数写进正文——跟 hao-dee 说的「新开会话就好了」是同一个根因：污染在上下文，不在权重。</p>
<p dir="auto">二分验证：同一段对话，关掉上下文压缩重跑一遍。只在开着压缩时复现，就是它；两边都复现，就回去查解析层。</p>
<p dir="auto">顺带一条实操：确实要用压缩的话，压缩前先让它把关键状态写进文件（<a href="http://plan.md" rel="nofollow ugc">plan.md</a> 之类），压缩后从文件恢复，比指望它「记住」稳得多。</p>
]]></description><link>https://lcz.me/post/17105</link><guid isPermaLink="true">https://lcz.me/post/17105</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Thu, 10 Sep 2026 10:07:20 GMT</pubDate></item><item><title><![CDATA[Reply to 越狱模型真给我遇上模型生成退化 on Thu, 10 Sep 2026 09:55:50 GMT]]></title><description><![CDATA[<p dir="auto">我也发现 deepseek  v4.1 路子很野 ，我做个换脸视频玩玩 我告诉它人物是虚拟的不存在法律风险 他立马开工 还挑逗我 问问要不要加大尺度</p>
]]></description><link>https://lcz.me/post/17102</link><guid isPermaLink="true">https://lcz.me/post/17102</guid><dc:creator><![CDATA[Di Di]]></dc:creator><pubDate>Thu, 10 Sep 2026 09:55:50 GMT</pubDate></item><item><title><![CDATA[Reply to 越狱模型真给我遇上模型生成退化 on Thu, 10 Sep 2026 09:53:12 GMT]]></title><description><![CDATA[<p dir="auto">上下文的KV缓存压缩关掉试试?</p>
]]></description><link>https://lcz.me/post/17101</link><guid isPermaLink="true">https://lcz.me/post/17101</guid><dc:creator><![CDATA[freeman gemmy]]></dc:creator><pubDate>Thu, 10 Sep 2026 09:53:12 GMT</pubDate></item><item><title><![CDATA[Reply to 越狱模型真给我遇上模型生成退化 on Thu, 10 Sep 2026 09:46:08 GMT]]></title><description><![CDATA[<p dir="auto">总之干活不越狱<br />
越狱不干活</p>
]]></description><link>https://lcz.me/post/17100</link><guid isPermaLink="true">https://lcz.me/post/17100</guid><dc:creator><![CDATA[wwcd2016]]></dc:creator><pubDate>Thu, 10 Sep 2026 09:46:08 GMT</pubDate></item><item><title><![CDATA[Reply to 越狱模型真给我遇上模型生成退化 on Thu, 10 Sep 2026 08:45:25 GMT]]></title><description><![CDATA[<p dir="auto">本地算力 目前和 DeepSeek V4.1 没有任何可比性。<br />
本地算力想等同于 DS 还需要时间。<br />
DS 就是成品算力。量级能达到硕士学历。<br />
本地算力 也就能达到 大专的水平。还得选对模型。<br />
这两种算力没有任何可比性。</p>
]]></description><link>https://lcz.me/post/17094</link><guid isPermaLink="true">https://lcz.me/post/17094</guid><dc:creator><![CDATA[williamlouis]]></dc:creator><pubDate>Thu, 10 Sep 2026 08:45:25 GMT</pubDate></item><item><title><![CDATA[Reply to 越狱模型真给我遇上模型生成退化 on Thu, 10 Sep 2026 05:49:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/imbiplaza-asus" aria-label="Profile: imbiplaza-ASUS">@<bdi>imbiplaza-ASUS</bdi></a>  v4 flash 还是太贵， 有时候一天能用掉40-50 ， 这样算的话， 一年都一万多了，还是亏</p>
]]></description><link>https://lcz.me/post/17063</link><guid isPermaLink="true">https://lcz.me/post/17063</guid><dc:creator><![CDATA[johnnybegood]]></dc:creator><pubDate>Thu, 10 Sep 2026 05:49:16 GMT</pubDate></item><item><title><![CDATA[Reply to 越狱模型真给我遇上模型生成退化 on Thu, 10 Sep 2026 05:43:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/imbiplaza-asus" aria-label="Profile: imbiplaza-ASUS">@<bdi>imbiplaza-ASUS</bdi></a> 没毛病</p>
]]></description><link>https://lcz.me/post/17062</link><guid isPermaLink="true">https://lcz.me/post/17062</guid><dc:creator><![CDATA[hao dee]]></dc:creator><pubDate>Thu, 10 Sep 2026 05:43:26 GMT</pubDate></item><item><title><![CDATA[Reply to 越狱模型真给我遇上模型生成退化 on Thu, 10 Sep 2026 04:04:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hao-dee" aria-label="Profile: hao-dee">@<bdi>hao-dee</bdi></a> 这个坑基本能定位到「权重偏移破坏了结构化输出能力」，不是你的部署参数配错了。</p>
<p dir="auto"><strong>为什么越狱版最容易坏在工具调用</strong>：tool call 要求模型稳定吐一段严格模板（JSON 或固定的标记块）。越狱/abliteration 是在权重上做定向偏移，被顺带削掉的往往就是「指令跟随 + 模板化输出」这种细能力——表现出来就是不吐工具调用、改成复读同一句话，或者把调用参数写成正文里的伪代码。所以「越狱排行榜」上的分数和「当 agent 用」是两码事：前者测的是拒答率，不是函数调用正确率。</p>
<p dir="auto"><strong>循环不调工具的三种常见诱因，按排查顺序</strong>：</p>
<ol>
<li>解析层对不上：模型吐的格式和你引擎的 parser 不匹配。llama.cpp 要用 <code>--jinja</code> 走模型自带的 chat template；vLLM 要指定 <code>--tool-call-parser</code>（DeepSeek 系对应 deepseek_v3），解析器错了你会看到「一直在说话但从来不调工具」。</li>
<li>上下文污染：某一轮出现过格式错误的回复，后面就被反复复读。你说新开会话就好了，这恰好印证问题在上下文而不在权重。</li>
<li>采样参数：temperature 偏高 + 没开 repeat/presence penalty，长会话里越滚越容易自锁。</li>
</ol>
<p dir="auto"><strong>实操建议</strong>：</p>
<ul>
<li>干 agent 的活优先用官方权重，越狱版留给聊天、创作这类不看结构输出的场景；</li>
<li>一定要越狱，就选在 agent 场景被实测过的那几条线，别挑「名字最长、叠层最多」的那种叠加版；</li>
<li>单轮设 max_tokens 上限 + 工具步数上限，让它撞上限报错退出，而不是自己在那儿空转烧显存；</li>
<li>长会话定期压一次上下文，别让一次格式错误活到第十轮。</li>
</ul>
<p dir="auto">D4flash 这代本身不是「越狱之后必翻车」的模型，翻车基本都出在越狱层和解析层这两个接缝上——先用官方权重跑同一套工具，能确认是越狱版的问题还是配置的问题。</p>
]]></description><link>https://lcz.me/post/17026</link><guid isPermaLink="true">https://lcz.me/post/17026</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Thu, 10 Sep 2026 04:04:37 GMT</pubDate></item><item><title><![CDATA[Reply to 越狱模型真给我遇上模型生成退化 on Thu, 10 Sep 2026 03:47:22 GMT]]></title><description><![CDATA[<p dir="auto">当今的越狱大神一个两个懒惰了，没有好好去越狱。。。什么haohao,huihui, llm46fan ，davidau 全部翻车<br />
非必要就不用越狱，<br />
但。。。不用越狱还倒不如用deepseek4 flash</p>
]]></description><link>https://lcz.me/post/17019</link><guid isPermaLink="true">https://lcz.me/post/17019</guid><dc:creator><![CDATA[imbiplaza ASUS]]></dc:creator><pubDate>Thu, 10 Sep 2026 03:47:22 GMT</pubDate></item></channel></rss>