<?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[让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！]]></title><description><![CDATA[<h2>由于工程类工作的需要，要把本地模型纳入日常工作流。可是他们在搞数字的时候偶尔还是会出错，这是一个用大模型来说很严重的而且无法避免的问题，和模型参数关系不大，哪怕95%的准确率也不能用，所以做了一些研究。发现方法是有的，只不过是没有一个好的现成的解决方案。总的痛点就是不确定性，但是工程工作又需要确定性，所以我们要使用外部工具，比如说Python让他把这个不确定性完全消除，结果还是喜人的：</h2>
<p dir="auto"><img src="https://upload.lcz.me/uploads/5c86df93-2bcd-4277-9db0-699d630086fb.png" alt="cover-1280x720.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">一、背景与结论</p>
<p dir="auto">之前 8080 主力是花了好大精力调优的 Qwen3.8-Flash-Next（QFN-IQ3_XXS，Strata 跑的）。但是Strata这个玩意就没有并发，PP速度也是慢了点，处理工程文件的时候很痛苦。做了大量的俩模型输出质量测试，发现质量没有什么肉眼可见的变化，只是flash next的输出细腻度确实高一些，毕竟脑容量大，再三权衡之后最后还是决定换回 PaitonMvLLM跑27B（W3A4），证据很充分：</p>
<p dir="auto">C1：200K 冷读 176.3s → 91.3s（1.9×）<br />
C1：200K 二次命中 28.4s → 1.7s（16.7×）<br />
C4：墙钟 36.8s → 4.3s，聚合 9.7 → 107.6 tok/s（11.1×）</p>
<p dir="auto">QFN 的 C4 是排队——四条 TTFT 0.7/8.4/17.6/25.4 秒；27B 是 0.1/0.6/0.6/0.7 秒，真并发。</p>
<p dir="auto">3bit 够不够强？同 20 题逐组对照，两边完全相同：200K长文 3/3、识图 6/6、并发 4/4、工程计算 2/3、代码 0/2（判分严实际对）、结构化 1/2（同）。人工复核 19 vs 18。</p>
<p dir="auto">结论：27B 又快又不弱，但数学不可信——日常 110 题 92.7%、高数 70 题 75.7%。</p>
<p dir="auto">二、问题定位</p>
<p dir="auto">把 26 道错题按类别拆开，发现一件反直觉的事：</p>
<p dir="auto">单位换算（长度/面积/重量）15/15 全对<br />
百分比/折扣/税费 25/25 全对<br />
小费分摊 2/5（最差）<br />
温度 4/5、配比 4/5、加权 4/5、复利 4/5、日期 4/5<br />
高数 14 类 53/70</p>
<p dir="auto">26 道错题里，零道是算术错。全是：公式用错（加权平均算成简单平均）、语义偏（"每人付"）、边界（日期含不含首日、样本还是总体）、单位链（45m@1:1000 答 45cm）。</p>
<p dir="auto">结论：算术可以外包，公式不行。</p>
<p dir="auto">三、方案与实现</p>
<p dir="auto">两层：模型只出「子命令 + 参数」，calc 出全部数值。</p>
<p dir="auto">calc 是 systemd 常驻服务（sympy 只 import 一次，跨机 42ms）：</p>
<pre><code>calc eval "4827+3916"                  → 8743
calc tip 240 20 3                      → 96.00
calc diff "x**2*exp(x)" --at 1         → 8.155
calc det "[[1,2,3],[4,5,6],[7,8,10]]"  → -3
calc stat "2,4,4,4,5,5,7,9" --ddof 0   → 方差 4.00
</code></pre>
<p dir="auto">子命令：eval conv pct tip temp ratio wavg compound dates diff integ limit solve det inv matmul binom comb stat vec cplx</p>
<p dir="auto">真正的体力活是接口容错——模型不会按你的文档传参：</p>
<p dir="auto"><code>{"cmd":"add"}</code> → 加 add/mul 别名<br />
<code>eval "sqrt((3-6)^2+...)"</code> → 表达式支持 sqrt/log/exp/sin，<code>^</code> 认作幂<br />
<code>det "[[1,2,3],[4,5,6]]"</code> → 矩阵认 JSON 数组/分号/换行<br />
<code>integ "x^2+1" 0 2</code> → 认位置参数<br />
<code>stat "3,5,7,9 std"</code> → 认 std/variance/总体/样本，容忍多余词<br />
<code>binom 10 4 0.3</code> → 自动识别 n/p/k 顺序<br />
<code>wavg 80 90 70 3 2 1</code> → 自动判断"值组+权重组"<br />
<code>solve "x**2-2*x-1=0"</code> → 自动去 =0<br />
参数写错 → 打印正确用法，让模型自己改</p>
<p dir="auto">四、注入</p>
<p dir="auto">工具做好，模型不一定用。第一次实测 27 题只有 9 题主动调。</p>
<p dir="auto">解法是写进 chat template，不是写提示词：</p>
<pre><code class="language-jinja">{%- set CALC_RULE = "【计算纪律】凡涉及数值计算……必须调用 calc 工具，禁止心算。
拿到工具结果后立即给出最终答案，不要重复调用；收尾：自检：单位✓ 量级✓ 工具✓" %}
{{- "&lt;|im_start|&gt;system\n" + CALC_RULE + "&lt;|im_end|&gt;\n" }}
</code></pre>
<p dir="auto">改模板不改客户端，任何 agent 接进来都一样。验证方法很土：问它"系统提示里关于计算的规则怎么写的"，能一字不差背出来。结果：27/27 全部调工具。</p>
<p dir="auto">五、折腾经过</p>
<p dir="auto">先走了两条弯路：加了代理层（模型前面套一个自动执行 tool_call 的 proxy），能用，但违背"越简单越好"；又把模型挪到 8090 让 proxy 占 8080，所有客户端配置都要跟着改。最后全拆了，回到不改端口、不加中间层，只改模板。</p>
<p dir="auto">calc 一开始是每次新起 Python，sympy import 350ms，单次 540ms。改成 systemd 常驻后 42ms。</p>
<p dir="auto">模型会写 <code>{"cmd":"add"}</code> 这种名字，加了别名还得在工具描述里写"四则用 eval"。</p>
<p dir="auto">拿到工具结果还会再调一次，模板加"直接作答，不要重复调用"。</p>
<p dir="auto">3×3 行列式两个都答 0——不是算错，是根本不会展开。</p>
<p dir="auto">复数 (2+3i)(1−2i)，3i×(−2i) 算成 −6（应 +6），分配律符号。</p>
<p dir="auto">测的时候判分取第一个数字，题面数字先出现，把 14.0 判成 −10；改成"任一数字命中即通过"。</p>
<p dir="auto">全角减号 −1 和 -1 认不出。</p>
<p dir="auto">六、结果</p>
<p dir="auto">27 道必错题，修复 26（96%），工具调用 27/27。</p>
<p dir="auto">小费 3/3、温度 2/2、配比 1/1、加权 1/1、复利 1/1、日期 1/1、比例尺 1/1、导数 3/3、定积分 1/1、行列式 2/2、矩阵 2/2、概率 2/2、统计 2/2、向量 2/2、复数 2/2、多项式 0/1（单跑两次都过，批量偶发空正文）。</p>
<p dir="auto">代价：每题 +0.65 秒（多一轮请求 + 工具执行），绝对值 0.78s/题，无感。</p>
<p dir="auto">说明：</p>
<p dir="auto">能外包的：算术、单位换算、日期、矩阵/积分/统计。不能外包的：公式选择、题意识别、边界定义——后者只能靠模板固化，写死公式让模型填参数。</p>
<p dir="auto">部署就三样：docker-compose.yml（端口不变）、chat_template_calc.jinja（纪律写死）、calc.service（systemd，sympy 常驻）。</p>
<p dir="auto">个人的repo，欢迎指教<br />
<a href="https://github.com/halonc/local-llm-27b-reliability-boost" rel="nofollow ugc">https://github.com/halonc/local-llm-27b-reliability-boost</a></p>
]]></description><link>https://lcz.me/topic/2679</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Nov 2026 01:12:21 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/2679.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Oct 2026 02:53:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 10:59:02 GMT]]></title><description><![CDATA[<p dir="auto">你说的rag赋能节点返回占位符的事我也遇到了，即使挂qc门控他们也照样绕行，反正我是被杭州那小子伤透了，几个月时间将近一年来趟他的坑，信他们的谎言@fcme</p>
]]></description><link>https://lcz.me/post/29140</link><guid isPermaLink="true">https://lcz.me/post/29140</guid><dc:creator><![CDATA[范志刚]]></dc:creator><pubDate>Thu, 29 Oct 2026 10:59:02 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 10:56:56 GMT]]></title><description><![CDATA[<p dir="auto">咱们在做的实际就是专家的外化，干嘛用他们雇高中生和外网对超来的数据呢，一个不大不小的逻辑宽度够执行态度严谨的本地稠密模型就够了，当然moe的作用是用来吹打泡泡，也挺好，框架出来了用严谨模给他擦屁股，我就这么干哈哈@fcme</p>
]]></description><link>https://lcz.me/post/29138</link><guid isPermaLink="true">https://lcz.me/post/29138</guid><dc:creator><![CDATA[范志刚]]></dc:creator><pubDate>Thu, 29 Oct 2026 10:56:56 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 10:55:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%E8%8C%83%E5%BF%97%E5%88%9A" aria-label="Profile: 范志刚">@<bdi>范志刚</bdi></a><br />
给他喂说明书，软件的说明书也好，或者其他整理好的操作说明也好，这就属于是知识外挂了。当然如果给他喂了这些知识，他还走偏，那就是模型能力问题了。</p>
]]></description><link>https://lcz.me/post/29137</link><guid isPermaLink="true">https://lcz.me/post/29137</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Thu, 29 Oct 2026 10:55:58 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 10:54:22 GMT]]></title><description><![CDATA[<p dir="auto">给模型配skill和我这种做法本质上是一样的，配技能是扩充他的知识库，某个特定方向的知识库或者说固化他的逻辑。而我给他配个计算模块，就是给模型强化计算能力，保证他不出错。从这个意义来讲，这也是某种程度上的moe啊，主干只要保证逻辑ok就行，外挂各种需要的知识或者能力模块。</p>
]]></description><link>https://lcz.me/post/29136</link><guid isPermaLink="true">https://lcz.me/post/29136</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Thu, 29 Oct 2026 10:54:22 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 10:54:12 GMT]]></title><description><![CDATA[<p dir="auto">举个实例，过去我用qwen3.6 27b送生成词给ltx2.3并推节点工作，他写那个节点推送脚本因为模型里没有过训练，怎么都给我抓ltx20的节点，怎么训怎么存也是这次会了下次必插模型内训练的ltx2.0节点，当时我都要疯了，这还不如没任何训练只执行我写好的脚本，撂爪就忘，抬爪就是模内的淘汰信息，我用了几个月掰他这种幻觉，现在看只能从两点解决，顺从他ltx2.0，或者认输。反而我用3.5 9b感觉教会他容易多了，但他复杂任务格局不够，逻辑宽度不够，做不了复杂树轮询</p>
]]></description><link>https://lcz.me/post/29135</link><guid isPermaLink="true">https://lcz.me/post/29135</guid><dc:creator><![CDATA[范志刚]]></dc:creator><pubDate>Thu, 29 Oct 2026 10:54:12 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 10:52:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%E8%8C%83%E5%BF%97%E5%88%9A" aria-label="Profile: 范志刚">@<bdi>范志刚</bdi></a><br />
对，这个李姐，我是非常赞同的。真正涉及到硬核逻辑或者其他就是通用知识的，真的，哪需要那么大的模型啊。<br />
大学学逻辑的时候，章节是最短的了，我之前刚开始在mac上面玩小模型4b/8b的那种模型的时候就感觉他们逻辑推理是很在线的，只是知识不够。</p>
]]></description><link>https://lcz.me/post/29133</link><guid isPermaLink="true">https://lcz.me/post/29133</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Thu, 29 Oct 2026 10:52:07 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 10:40:42 GMT]]></title><description><![CDATA[<p dir="auto">就是每个分支任务跟个qc？高级啊!顺巡逻辑树这事其实不用那么大模型，30b框架和填肉足够了，我要速度的时候都用8b跑刮削填肉，他只是框架不够大，没moe会吹大泡，单论执行不比大moe差，甚至更稳，主要是关键时刻能反得回主逻辑树，大moe可能就按他想象跑了@applejuice 模型出厂训练内容少点还能听话点，大不了咱自己给他赋能，垂直领域我是信不过moe的“专家”能力？真犯错就会罗圈错，永远跳不出，除非你就依赖他自己的训练通识内容，那还咋创作了，个人觉得那些通识正是幻觉的来源</p>
]]></description><link>https://lcz.me/post/29131</link><guid isPermaLink="true">https://lcz.me/post/29131</guid><dc:creator><![CDATA[范志刚]]></dc:creator><pubDate>Thu, 29 Oct 2026 10:40:42 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 10:33:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/applejuice" aria-label="Profile: applejuice">@<bdi>applejuice</bdi></a><br />
就两张，一个r9700，一个5070ti（想玩玩视频，但是太忙了，一直没搞）</p>
]]></description><link>https://lcz.me/post/29128</link><guid isPermaLink="true">https://lcz.me/post/29128</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Thu, 29 Oct 2026 10:33:03 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 10:30:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bunsei" aria-label="Profile: Bunsei">@<bdi>Bunsei</bdi></a> 其实一开始是差不多一样的<br />
最近strata 3090 都在发挥 突然prefill 就干上去了<br />
造成27b 有点慢 以前27b 这样的速度是爽玩的程度</p>
]]></description><link>https://lcz.me/post/29127</link><guid isPermaLink="true">https://lcz.me/post/29127</guid><dc:creator><![CDATA[applejuice]]></dc:creator><pubDate>Thu, 29 Oct 2026 10:30:52 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 10:19:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/applejuice" aria-label="Profile: applejuice">@<bdi>applejuice</bdi></a> 其实我觉得这个实在不行可以让agent改一下修改一下调度规则。平衡一下各会话的吞吐。</p>
]]></description><link>https://lcz.me/post/29122</link><guid isPermaLink="true">https://lcz.me/post/29122</guid><dc:creator><![CDATA[Bunsei]]></dc:creator><pubDate>Thu, 29 Oct 2026 10:19:41 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 10:16:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%E8%8C%83%E5%BF%97%E5%88%9A" aria-label="Profile: 范志刚">@<bdi>范志刚</bdi></a> 其实如果可以我也想要单卡<br />
问题是 现在处境有点尴尬</p>
<p dir="auto">单卡 不够跑大型moe qfn 除非你买6000 pro<br />
双卡跑moe 基本也已经榨干显卡</p>
<p dir="auto">strata 方案 却只能排队，这时候有另一个模型做子任务就好多了<br />
而且我分拆子任务也是因为一个工作一个检查<br />
不是为了分拆而分拆</p>
]]></description><link>https://lcz.me/post/29120</link><guid isPermaLink="true">https://lcz.me/post/29120</guid><dc:creator><![CDATA[applejuice]]></dc:creator><pubDate>Thu, 29 Oct 2026 10:16:31 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 10:08:01 GMT]]></title><description><![CDATA[<p dir="auto">直给直要的工程需求往往不会用多卡做单任务来增加稳定性风险和维护成本@applejuice 需求不同吧，我俩追求的是简单直给的确定性结果，有点臭味相投哈哈</p>
]]></description><link>https://lcz.me/post/29118</link><guid isPermaLink="true">https://lcz.me/post/29118</guid><dc:creator><![CDATA[范志刚]]></dc:creator><pubDate>Thu, 29 Oct 2026 10:08:01 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 10:01:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fcme" aria-label="Profile: fcme">@<bdi>fcme</bdi></a> 别笑我了 论讨人手平均一张pro 6000</p>
<p dir="auto">一开始搞3090 幸好前一个月2 手买到几乎新的1万1 r9700</p>
<p dir="auto">你现在有几张卡？</p>
]]></description><link>https://lcz.me/post/29117</link><guid isPermaLink="true">https://lcz.me/post/29117</guid><dc:creator><![CDATA[applejuice]]></dc:creator><pubDate>Thu, 29 Oct 2026 10:01:04 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 09:58:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/applejuice" aria-label="Profile: applejuice">@<bdi>applejuice</bdi></a><br />
你是多卡狂人，比不了比不了<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f602.png?v=a055419e292" class="not-responsive emoji emoji-android emoji--joy" style="height:1.4em;width:auto;vertical-align:middle" title="😂" alt="😂" /></p>
]]></description><link>https://lcz.me/post/29116</link><guid isPermaLink="true">https://lcz.me/post/29116</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Thu, 29 Oct 2026 09:58:05 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 09:57:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fcme" aria-label="Profile: fcme">@<bdi>fcme</bdi></a> 我两张3090跑strata prefill 4.5k 以上<br />
r9700 跑27b 2.5k prefill<br />
现在主模型 等待时间比较长 利用率有点低</p>
]]></description><link>https://lcz.me/post/29114</link><guid isPermaLink="true">https://lcz.me/post/29114</guid><dc:creator><![CDATA[applejuice]]></dc:creator><pubDate>Thu, 29 Oct 2026 09:57:46 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 09:50:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/applejuice" aria-label="Profile: applejuice">@<bdi>applejuice</bdi></a><br />
不瞒你说，你说的这个想法我也试了。你另一张卡用的什么跑的什么模型？我是把另一张5070ti让他跑27b给qfn调用子代理的时候去用，结果翻车了。一来有那个派任务和验收的开销，二来5070Ti跑27b本来就不快，pp也就才1100左右，tg的话在三四十，算下来还不如用本体Strata跑呢，尴尬死了。</p>
]]></description><link>https://lcz.me/post/29113</link><guid isPermaLink="true">https://lcz.me/post/29113</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Thu, 29 Oct 2026 09:50:09 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 09:44:06 GMT]]></title><description><![CDATA[<p dir="auto">我用strata 用到很开心呢..<br />
只是我有另一张卡跑子任务</p>
]]></description><link>https://lcz.me/post/29110</link><guid isPermaLink="true">https://lcz.me/post/29110</guid><dc:creator><![CDATA[applejuice]]></dc:creator><pubDate>Thu, 29 Oct 2026 09:44:06 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 09:35:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/suboyang" aria-label="Profile: suboyang">@<bdi>suboyang</bdi></a><br />
底子不好，llamacpp本本来就是单流玩玩的东西，没有并发能力，导致浅浅测速感觉很哇塞！实际一用就卡死！</p>
]]></description><link>https://lcz.me/post/29103</link><guid isPermaLink="true">https://lcz.me/post/29103</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Thu, 29 Oct 2026 09:35:52 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 09:34:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul-hou" aria-label="Profile: paul-hou">@<bdi>paul-hou</bdi></a><br />
我让27b翻了一下我的调试记录，关键点在于你pcie的速度，而且并发的时候总速度反而会掉，你可以做个参考，如下：</p>
<p dir="auto">找到了。完整记录在会话 <strong><code>session-4ec38542</code></strong>（标题：R9700-Strata-调优全记录），2026-10-26 当天实测。以下是搬出来的原始数据：</p>
<hr />
<h2>Radiance Flash-Next 实测数据（2026-10-26，单卡 R9700，204800 窗口，4096 chunk，MTP=4，fp8 KV）</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项</th>
<th>数值</th>
</tr>
</thead>
<tbody>
<tr>
<td>prefill 8.9K / 33K / 134K</td>
<td><strong>1,077 / 1,303 / 1,339 tok/s</strong></td>
</tr>
<tr>
<td>TTFT 同上</td>
<td>8.3 / 25.9 / 100.6 s</td>
</tr>
<tr>
<td>decode（temp 0.7，400 tok）</td>
<td><strong>55.9 / 63.0 tok/s</strong></td>
</tr>
<tr>
<td>decode（贪心）</td>
<td>57.9 tok/s</td>
</tr>
<tr>
<td>decode（temp 0.7，多轮）</td>
<td>41.6 / 40.3 tok/s</td>
</tr>
<tr>
<td>decode @125K 上下文</td>
<td>34.9 tok/s</td>
</tr>
<tr>
<td>并发 2 / 4 聚合</td>
<td>31 / 50 tok/s</td>
</tr>
<tr>
<td>同对话追问（命中 12,288 tok 前缀）</td>
<td>TTFT <strong>1.53 s</strong></td>
</tr>
<tr>
<td>冷启首轮</td>
<td>25 tok/s（必须预热）</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>启动日志关键量</strong>：专家 17.31 GiB 显存 + <strong>43 GiB pinned 主机池</strong>；KV 4.86 GiB；PLE(n-gram) 表 <strong>47.68 GiB 在磁盘</strong>（内存装不下）；模型总文件 <strong>113.6 GiB</strong>。</p>
<hr />
<h2>为什么放弃（三条硬理由）</h2>
<p dir="auto"><strong>1. 链路硬顶，prefill 被 PCIe 3.0 卡死</strong></p>
<p dir="auto">R9700 上游链路被降级到 Gen3 x16（宿主 <code>LnkSta: 8GT/s (downgraded)</code>），GPU 空载 2 GiB 大页拷贝实测 <strong>13.8 GB/s</strong>。Radiance 的架构是每步把 43 GiB 专家池从主机内存搬过 PCIe，算下来 PP ≈ 14 GB/s ÷ 11.3 MB/token ≈ <strong>1,240 tok/s</strong>——与实测 1,300 完全吻合。官方 2,545 tok/s 是 Gen4/5 平台的成绩，你这台 Dell 7820（Xeon Gold 6252，PCIe 3.0）物理上到不了。</p>
<p dir="auto"><strong>2. 内存模型撑不住并发和缓存</strong></p>
<p dir="auto">43 GiB pinned 池把内存吃死，只剩 <strong>6–9 GB</strong> 给对话缓存——8 条对话缓存根本开不了，SSD session 也不支持。而 Strata 只用 ~40 GiB 匿名内存 + 页缓存，剩 <strong>16 GB</strong>，才装得下 6 GiB / 8 槽的对话缓存 + SSD session。</p>
<p dir="auto"><strong>3. 同卡对比 Strata 全面胜出</strong></p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项</th>
<th>Radiance</th>
<th>Strata（同卡同窗口）</th>
</tr>
</thead>
<tbody>
<tr>
<td>prefill</td>
<td>1,300</td>
<td><strong>2,250–2,336</strong>（1.8×）</td>
</tr>
<tr>
<td>decode</td>
<td>57–63</td>
<td><strong>116–122</strong>（adapt-every 1）</td>
</tr>
<tr>
<td>8 槽对话缓存</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/274c.png?v=a055419e292" class="not-responsive emoji emoji-android emoji--x" style="height:1.4em;width:auto;vertical-align:middle" title="❌" alt="❌" /></td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=a055419e292" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /> 0.54 s 热态</td>
</tr>
<tr>
<td>SSD session</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/274c.png?v=a055419e292" class="not-responsive emoji emoji-android emoji--x" style="height:1.4em;width:auto;vertical-align:middle" title="❌" alt="❌" /></td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=a055419e292" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></td>
</tr>
<tr>
<td>可用内存</td>
<td>6–9 GB</td>
<td><strong>~16 GB</strong></td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>附带现实约束</strong>：当时 <code>/data</code> 池只剩 36 GB，Radiance 的 113.6 GB 模型必须删掉才装得下 Strata 的 81 GB 权重——只能二选一，不是偏好。</p>
<hr />
<p dir="auto"><strong>一句话总结</strong>：Radiance 的架构（专家每步过 PCIe）在你这台 PCIe 3.0 宿主上被链路带宽锁死，prefill 天花板 ~1,300、decode ~60，而 Strata 把专家算在 CPU/常驻显存，同卡直接翻倍。模型已删，要复核需重新下载 113.6 GB。</p>
]]></description><link>https://lcz.me/post/29099</link><guid isPermaLink="true">https://lcz.me/post/29099</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Thu, 29 Oct 2026 09:34:11 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 09:31:45 GMT]]></title><description><![CDATA[<p dir="auto">Strata 会不会是昙花一现的推理框架，我其实考虑过扩大内存去跑Strata，但是后来发现Strata其实是鸡肋。</p>
]]></description><link>https://lcz.me/post/29095</link><guid isPermaLink="true">https://lcz.me/post/29095</guid><dc:creator><![CDATA[suboyang]]></dc:creator><pubDate>Thu, 29 Oct 2026 09:31:45 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 09:24:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fcme" aria-label="Profile: fcme">@<bdi>fcme</bdi></a><br />
RADIANCE單卡也能跑QFN，KV會是300K上下文左右，這個應該是可以小小的2併發。<br />
我的DRAM還沒拿到，拿到了才要試。</p>
]]></description><link>https://lcz.me/post/29082</link><guid isPermaLink="true">https://lcz.me/post/29082</guid><dc:creator><![CDATA[paul hou]]></dc:creator><pubDate>Thu, 29 Oct 2026 09:24:19 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 09:09:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul-hou" aria-label="Profile: paul-hou">@<bdi>paul-hou</bdi></a><br />
对，这个框架用多了，它的局限性就逐渐显现出来了，而且是无法克服的那种。<br />
他爱开子代理，如果子代理给其他的大模型也还好，本地运行的话，基本上都只有一个模型在跑，所以就是很频繁的卡死。我之前针对strata的冒烟优化，就是着力挖掘了它的缓存方面的潜力，让单流处理的时候，时间尽量缩短来缓解这个问题，但是最后还是无解的。以后需要质量高一点的时候，直接调用云端API就好了，他和27比真的没有差那么多。至少是咱们运行的量化版本来说。</p>
]]></description><link>https://lcz.me/post/29075</link><guid isPermaLink="true">https://lcz.me/post/29075</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Thu, 29 Oct 2026 09:09:01 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 09:05:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fcme" aria-label="Profile: fcme">@<bdi>fcme</bdi></a><br />
我的STRATA每次運算都會把實體核心跑滿。<br />
我現在還是用QFN比較多，就是只能一個一個來，他又很愛開子代理，提示詞都還要加上叫他不要開，確實是很麻煩。</p>
]]></description><link>https://lcz.me/post/29072</link><guid isPermaLink="true">https://lcz.me/post/29072</guid><dc:creator><![CDATA[paul hou]]></dc:creator><pubDate>Thu, 29 Oct 2026 09:05:20 GMT</pubDate></item><item><title><![CDATA[Reply to 让本地27B(或任意)模型数学从只有92.7% 准确到工程可靠！可用！ on Thu, 29 Oct 2026 08:48:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%E8%8C%83%E5%BF%97%E5%88%9A" aria-label="Profile: 范志刚">@<bdi>范志刚</bdi></a><br />
对这个AI说的很到位，Strata本质上是llamacpp的魔改版本。所以最最最核心的缺点还是继承了llamacpp的，只是在资源调度方面做了大量的文章。分家分层加载的可以抽象为在显存里开了个小一点的稠密模型的同时还能借用一点点，开在显存里的储存更多不常用知识的调用频率（对应专家未命中率）很低的大型的稠密模型。<br />
所以我把我的Strata优化到冒烟以后发现GPU和CPU的占用都很高，如图：</p>
<p dir="auto"><img src="https://upload.lcz.me/uploads/e4295326-ddc9-43bc-82fb-de3b1281ca2d.jpg" alt="Screenshot_20261027_010014_com_termux_TermuxActivity.jpg" class="img-markdown  img-fluid" /></p>
<p dir="auto">所以从原理上他就不适合跑稠密模型，因为稠密模型无法切块，而MoE可以抽象成俩分块的稠密。</p>
]]></description><link>https://lcz.me/post/29063</link><guid isPermaLink="true">https://lcz.me/post/29063</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Thu, 29 Oct 2026 08:48:54 GMT</pubDate></item></channel></rss>