<?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[5060 Ti 16GB 跑本地 Coding Agent：折腾到 96K 上下文后的真实体验]]></title><description><![CDATA[<p dir="auto">分享一下我最近用 <strong>RTX 5060 Ti 16GB</strong> 折腾本地大模型 Coding Agent 的经历。</p>
<p dir="auto">对我来说，真正有意义的并不是模型单轮聊天能跑多少 token/s，而是它能不能持续完成：</p>
<blockquote>
<p dir="auto"><strong>读项目 → 理解需求 → 写代码 → 跑测试 → 看报错 → 修改 → 再测试 → 打包 → 验收</strong></p>
</blockquote>
<p dir="auto">折腾了一段时间以后，目前我体验最好的一套配置是：</p>
<p dir="auto"><strong>Qwen3.8-27B GSQ-RCO IQ3_S-MTP + NInfer + DeepSeek Harness + 96K Context。</strong></p>
<h2>我的硬件和当前配置</h2>
<p dir="auto">主机并不是什么高端 AI 工作站：</p>
<ul>
<li>CPU：i5-14400F</li>
<li>GPU：RTX 5060 Ti 16GB</li>
<li>内存：32GB DDR5</li>
<li>系统：Windows 10 x64</li>
</ul>
<p dir="auto">当前本地模型使用 <strong>Qwen3.8-27B GSQ-RCO IQ3_S-MTP</strong>，推理后端是 <strong>NInfer</strong>，Coding Agent 使用 <strong>DeepSeek Harness</strong>。主要参数为：96K 上下文、RK8V4 KV Cache、MTP 4、Thinking Budget 8K、单 Agent 为主、本地 API 服务。</p>
<p dir="auto">我之前也跑过 48K 的 Q4 模型。实际体验下来，新的 IQ3_S + NInfer 方案不仅把上下文从 48K 提到了 96K，长上下文生成速度还能维持在 <strong>60 token/s 左右</strong>。这不是标准 benchmark，而是我自己真实开发时看到的运行数据。</p>
<h2>我拿它开发了什么？</h2>
<p dir="auto">我直接拿自己在做的「服装色彩造型系统 V3」做长任务测试。这是一个用于人物形象设计和服装色彩教学的 Windows 桌面软件，包含换装、服装分区调色、花型、叠穿和 Look 管理等功能。项目从 9 月初的设计与交接到 10 月初持续迭代，前后约 4 周（断续开发）；截图中的素材栏显示约 <strong>35 件服装与配饰素材</strong>，并有 4 个独立造型 Look。</p>
<p dir="auto">它不是只展示图片的 Demo。系统里要处理的功能包括：</p>
<ul>
<li>服装与配饰穿脱、四套 Look 独立编辑</li>
<li>服装分区域换色，支持 HSL / RGB / HEX 调色和快捷色板</li>
<li>圆点、条纹、格纹、菱纹等花型，以及上传自定义花型</li>
<li>平涂 / 光影模式、SVG / Path2D 矢量服装结构、分区编辑与图层遮挡</li>
<li>保存、打开作品，Undo / Redo、复制造型、PNG 导出</li>
<li>离线授权与 60 天试用、绿色版和 Windows 安装包</li>
</ul>
<p dir="auto">所以项目涉及 Electron 桌面应用、状态管理、本地文件、IPC、授权、矢量绘图、服装几何、图层、导出、自动测试、E2E 和 Windows 进程生命周期等多个环节。</p>
<p dir="auto">为了测试本地模型，我不是只让它在现有代码上补几行，而是整理产品需求，让本地 Qwen 根据需求参与系统实现和后续开发。这更接近测试它能否理解产品、拆分任务、实现功能、修 Bug、跑测试并完成交付。</p>
<h2>连续长任务的实际表现</h2>
<p dir="auto">这个项目后来成了一个长链 Agent 压力测试。在一段核心开发过程中，Agent 连续参与了代码修改、测试、打包和视觉优化。一次长链记录显示：</p>
<ul>
<li>9 轮以上、1100+ Agent steps</li>
<li>累计处理 6600 万+ tokens</li>
<li>生成速度约 60 token/s，缓存命中约 96%</li>
</ul>
<p dir="auto">这里的 6600 万 token 不是模型一次生成了 6600 万字，也不是一次塞进了 96K 上下文。Harness 显示的是多轮任务累计处理量，其中有大量重复上下文、工具结果和缓存命中的内容。比如一次统计里，总处理量约 6430 万，缓存读取约 6080 万，未缓存输入约 252 万，实际输出约 95 万。这个累计数不能直接拿去套 API 输出价格，但能看出长任务对上下文和缓存系统的压力。</p>
<h2>最终测试做到什么程度？</h2>
<p dir="auto">我要求 Agent 不只写完代码，还要建立自动测试和验收流程。最终工程阶段做到：</p>
<ul>
<li>Unit Test：57 / 57 PASS</li>
<li>E2E：74 / 74 PASS</li>
<li>安装测试：17 / 17 PASS</li>
<li>Build：PASS</li>
<li>Dist：PASS</li>
<li>Security Scan：PASS</li>
</ul>
<p dir="auto">E2E 覆盖调色、花型、像素颜色断言、保存、打开、Undo / Redo、导出、授权、应用关闭守护、重启恢复和安装版启动。</p>
<p dir="auto">中间还遇到过一个典型的 Electron / Playwright 问题：软件实际已经退出，但自动测试一直认为应用没有退出。模型一路排查到 Electron → Playwright → V8 Inspector → Process Transport，发现是测试环境停在 “Waiting for the debugger to disconnect...” 导致进程生命周期检测异常，最后修到了完整 74/74。只做几轮聊天很难测出这类问题。</p>
<h2>96K 上下文的实际价值</h2>
<p dir="auto">我现在觉得，长上下文最大的价值不是一次塞一本书，而是让 Agent 有更大的工作记忆空间。开发过程中，它需要保留需求、项目结构、前面改过的文件、测试失败信息、Git / Build 状态、工具调用结果和前几轮排错结论。</p>
<p dir="auto">48K 也能做，但复杂任务里会更早压缩。96K 让我能把一个开发阶段保持得更久。Harness 会自动 compact；有一次上下文接近 97% 后，历史约 31K tokens 被压缩，占用从 97% 降到 65%，Agent 没有重开会话，接着完成后续工作。它不是永远不压缩，而是减少压缩频率，让更多近期工程细节保持原样。</p>
<h2>8K Thinking Cap 的作用</h2>
<p dir="auto">刚开始 Qwen 偶尔会进入很长的 reasoning：一直思考，最后把 16K 输出额度消耗得差不多，却没有真正调用工具。后来我给 NInfer 设置 default-thinking-budget = 8192，效果明显好一些。</p>
<p dir="auto">它不是把整个 Agent 的思考限制为 8K，而是给单次模型调用设一个边界，避免单次推理占满输出空间、迟迟不进入回答或工具调用。</p>
<h2>16GB 显存上的限制</h2>
<p dir="auto">5060 Ti 只有 16GB 显存，96K 可以跑，但余量很小。深度压测时最低剩余显存约 180MB；同时开 Electron、Playwright、浏览器、微信等使用 GPU 的程序，有过 Harness 返回 503、inference engine unavailable 的情况。后来重启 NInfer，模型又恢复了。</p>
<p dir="auto">我现在的判断是：5060 Ti 16GB 跑 96K 可用，但属于比较极限的配置。日常可以考虑留一个约 90K 的稳定档，96K 留给特别长的任务；具体余量仍取决于模型、运行时和同时打开的程序。</p>
<h2>本地模型的视觉短板</h2>
<p dir="auto">这套 Qwen 是 Text + MTP，没有 Vision。它能写 SVG / Path2D、算坐标、调服装几何、做图层和像素断言，但看不到自己画出来的东西是否好看。</p>
<p dir="auto">有一次它重做人台后自动测试全过，截图里人物左肩却伸出一个巨大的米白色三角形。视觉模型检查后，我把反馈交回本地 Qwen；它发现颈部路径控制点少加了 <a href="http://B.cx" rel="nofollow ugc">B.cx</a>，导致坐标从人物中心附近飞到 x≈26，Path2D 闭合后就出现了这个三角形。修完后人台恢复正常。</p>
<p dir="auto">现在我的工作流是：本地 Qwen 连续开发 → 自动测试 → 生成截图 → 视觉模型验收 → 把结构化意见交回本地 Qwen → 继续修改。Coding 能力和视觉能力是两件事，视觉验收仍要有人或视觉模型参与。</p>
<h2>一个提高效率的测试流程</h2>
<p dir="auto">一开始每次改一点视觉细节，我都让 Agent 跑完整 Unit、E2E、Build、Dist 和安装测试，一次微调要花四五十分钟。后来改成 Visual Fast Loop：修改 → 快速几何检查 → Build / Smoke → 截图 → 人工视觉检查。视觉确认后，再统一跑 57/57、74/74、Build 和 Dist。</p>
<p dir="auto">这让我发现，Agent 的效率不只取决于模型 token/s，也取决于任务怎么编排。60 token/s 的模型，如果每次都做不必要的全量测试，一样会很慢。</p>
<h2>量化模型带来的取舍</h2>
<p dir="auto">以前我觉得 27B 压到 3bit 左右，能力损失肯定很明显。但这次在长链开发、工具调用、Electron、JS、Windows、自动测试和调试中，IQ3_S 的实际表现比我预想好。更低的权重占用也给上下文和 KV Cache 留出了空间，让我从之前的 Q4 + 48K 转到 IQ3_S + 96K。</p>
<p dir="auto">对 Coding Agent，我现在会一起看模型质量、上下文、KV Cache、推理速度、工具链、缓存和 compact 机制，而不是只看 Q4 是否一定比 Q3 聪明。对长 Agent 来说，略微量化但能跑 96K、维持约 60 tok/s 的模型，对我的工作流可能更实用。</p>
<h2>最后的实际感受</h2>
<p dir="auto">这次折腾以后，我觉得 16GB 显存上的本地模型已经进入“能干活”的阶段。它不能替代最强云模型，也不是所有项目都能全自动完成，但已经能承担我手头的写代码、修 Bug、看日志、跑测试、Electron 开发、文档处理和长时间项目推进。</p>
<p dir="auto">一个优点是可以让它持续做本地任务，不按云 API 的 token 用量计费；这次项目累计处理了 6000 多万 token。这个数是多轮任务的累计处理量，不等于实际输出量或一次上下文长度。本地使用的成本结构更像硬件投入加电费。</p>
<h2>我目前最满意的组合</h2>
<p dir="auto"><strong>RTX 5060 Ti 16GB + Qwen3.8-27B GSQ-RCO IQ3_S-MTP + NInfer + 96K Context + RK8V4 KV + MTP4 + 8K Thinking Budget + DeepSeek Harness + Auto Compact。</strong></p>
<p dir="auto">后面我还准备继续测试 90K 与 96K 的稳定性、多 Agent 工作流、云端与本地模型 A/B、Vision Reviewer，以及多人共享推理服务。</p>
<p dir="auto">至少对我自己来说，问题已经不是“5060 Ti 16GB 能不能跑 27B”，而是怎么让本地 27B Agent 更稳定、更长时间、更少人工干预地完成一整个任务。</p>
]]></description><link>https://lcz.me/topic/2106</link><generator>RSS for Node</generator><lastBuildDate>Mon, 12 Oct 2026 13:28:48 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/2106.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 05 Oct 2026 03:17:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 5060 Ti 16GB 跑本地 Coding Agent：折腾到 96K 上下文后的真实体验 on Fri, 09 Oct 2026 15:14:36 GMT]]></title><description><![CDATA[<p dir="auto">llama.cpp的dflash2原来是把2种组合一起用</p>
]]></description><link>https://lcz.me/post/23612</link><guid isPermaLink="true">https://lcz.me/post/23612</guid><dc:creator><![CDATA[hyaska]]></dc:creator><pubDate>Fri, 09 Oct 2026 15:14:36 GMT</pubDate></item><item><title><![CDATA[Reply to 5060 Ti 16GB 跑本地 Coding Agent：折腾到 96K 上下文后的真实体验 on Fri, 09 Oct 2026 01:10:25 GMT]]></title><description><![CDATA[<p dir="auto">用dflash2可以开到128K，还更快一点<br />
<img src="https://upload.lcz.me/uploads/e8e65f59-648e-4925-bd71-6a546386af1c.jpeg" alt="image.jpeg" class="img-markdown  img-fluid" /></p>
]]></description><link>https://lcz.me/post/23383</link><guid isPermaLink="true">https://lcz.me/post/23383</guid><dc:creator><![CDATA[MysteryZhou]]></dc:creator><pubDate>Fri, 09 Oct 2026 01:10:25 GMT</pubDate></item><item><title><![CDATA[Reply to 5060 Ti 16GB 跑本地 Coding Agent：折腾到 96K 上下文后的真实体验 on Fri, 09 Oct 2026 01:03:03 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> 嗯嗯就是，非常同意你的观点</p>
]]></description><link>https://lcz.me/post/23379</link><guid isPermaLink="true">https://lcz.me/post/23379</guid><dc:creator><![CDATA[懒人烘培]]></dc:creator><pubDate>Fri, 09 Oct 2026 01:03:03 GMT</pubDate></item><item><title><![CDATA[Reply to 5060 Ti 16GB 跑本地 Coding Agent：折腾到 96K 上下文后的真实体验 on Thu, 08 Oct 2026 18:47:38 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%E6%87%92%E4%BA%BA%E7%83%98%E5%9F%B9" aria-label="Profile: 懒人烘培">@<bdi>懒人烘培</bdi></a> <a href="/post/23066">说</a>:</p>
<p dir="auto">我也测试了NInfer，不过是windows平台，也就只能开到96K，如果在ubuntu系统下，能开到128K</p>
</blockquote>
<p dir="auto">為了128K強烈建議去裝linux 在200K以下每多一點都很有感</p>
]]></description><link>https://lcz.me/post/23359</link><guid isPermaLink="true">https://lcz.me/post/23359</guid><dc:creator><![CDATA[dardeaw feng]]></dc:creator><pubDate>Thu, 08 Oct 2026 18:47:38 GMT</pubDate></item><item><title><![CDATA[Reply to 5060 Ti 16GB 跑本地 Coding Agent：折腾到 96K 上下文后的真实体验 on Thu, 08 Oct 2026 18:57:51 GMT]]></title><description><![CDATA[<p dir="auto">感謝!<br />
把這個成功編譯:<br />
<a href="https://github.com/YukinoKaorisuna/ninfer-5070ti" rel="nofollow ugc">https://github.com/YukinoKaorisuna/ninfer-5070ti</a></p>
<p dir="auto">作者的提供的模型是V2, 但程式需求V3...</p>
]]></description><link>https://lcz.me/post/23357</link><guid isPermaLink="true">https://lcz.me/post/23357</guid><dc:creator><![CDATA[rori]]></dc:creator><pubDate>Thu, 08 Oct 2026 18:57:51 GMT</pubDate></item><item><title><![CDATA[Reply to 5060 Ti 16GB 跑本地 Coding Agent：折腾到 96K 上下文后的真实体验 on Thu, 08 Oct 2026 00:51:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rori" aria-label="Profile: rori">@<bdi>rori</bdi></a> 5070ti连接在这里：<a href="https://huggingface.co/YukinoKaorisuna/Qwen3.8-27B-Uncensored-ninfer5080-5070ti" rel="nofollow ugc">https://huggingface.co/YukinoKaorisuna/Qwen3.8-27B-Uncensored-ninfer5080-5070ti</a></p>
]]></description><link>https://lcz.me/post/23148</link><guid isPermaLink="true">https://lcz.me/post/23148</guid><dc:creator><![CDATA[懒人烘培]]></dc:creator><pubDate>Thu, 08 Oct 2026 00:51:33 GMT</pubDate></item><item><title><![CDATA[Reply to 5060 Ti 16GB 跑本地 Coding Agent：折腾到 96K 上下文后的真实体验 on Wed, 07 Oct 2026 16:45:15 GMT]]></title><description><![CDATA[<p dir="auto">感謝, 找時間來試試, 不執著雙卡了.</p>
]]></description><link>https://lcz.me/post/23122</link><guid isPermaLink="true">https://lcz.me/post/23122</guid><dc:creator><![CDATA[XXX]]></dc:creator><pubDate>Wed, 07 Oct 2026 16:45:15 GMT</pubDate></item><item><title><![CDATA[Reply to 5060 Ti 16GB 跑本地 Coding Agent：折腾到 96K 上下文后的真实体验 on Wed, 07 Oct 2026 16:22:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%E6%87%92%E4%BA%BA%E7%83%98%E5%9F%B9" aria-label="Profile: 懒人烘培">@<bdi>懒人烘培</bdi></a><br />
感謝, 但我沒有5080。<br />
用它來試5070TI, 結果是不行的。</p>
]]></description><link>https://lcz.me/post/23118</link><guid isPermaLink="true">https://lcz.me/post/23118</guid><dc:creator><![CDATA[rori]]></dc:creator><pubDate>Wed, 07 Oct 2026 16:22:34 GMT</pubDate></item><item><title><![CDATA[Reply to 5060 Ti 16GB 跑本地 Coding Agent：折腾到 96K 上下文后的真实体验 on Wed, 07 Oct 2026 11:30:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rori" aria-label="Profile: rori">@<bdi>rori</bdi></a> <a href="https://huggingface.co/ninfer-5080/Qwen3.8-27B-RTX5080" rel="nofollow ugc">https://huggingface.co/ninfer-5080/Qwen3.8-27B-RTX5080</a> 这是5080的</p>
]]></description><link>https://lcz.me/post/23067</link><guid isPermaLink="true">https://lcz.me/post/23067</guid><dc:creator><![CDATA[懒人烘培]]></dc:creator><pubDate>Wed, 07 Oct 2026 11:30:50 GMT</pubDate></item><item><title><![CDATA[Reply to 5060 Ti 16GB 跑本地 Coding Agent：折腾到 96K 上下文后的真实体验 on Wed, 07 Oct 2026 11:37:08 GMT]]></title><description><![CDATA[<p dir="auto">我也测试了NInfer，不过是windows平台，也就只能开到96K，如果在ubuntu系统下，能开到128K</p>
]]></description><link>https://lcz.me/post/23066</link><guid isPermaLink="true">https://lcz.me/post/23066</guid><dc:creator><![CDATA[懒人烘培]]></dc:creator><pubDate>Wed, 07 Oct 2026 11:37:08 GMT</pubDate></item><item><title><![CDATA[Reply to 5060 Ti 16GB 跑本地 Coding Agent：折腾到 96K 上下文后的真实体验 on Wed, 07 Oct 2026 10:18:08 GMT]]></title><description><![CDATA[<p dir="auto">請問NInfer 的下載地址是什麼? 是用官方原版嗎?<br />
Qwen3.8-27B GSQ-RCO IQ3_S-MTP 這個模型是GGUF還是.ninfer?</p>
]]></description><link>https://lcz.me/post/23054</link><guid isPermaLink="true">https://lcz.me/post/23054</guid><dc:creator><![CDATA[rori]]></dc:creator><pubDate>Wed, 07 Oct 2026 10:18:08 GMT</pubDate></item><item><title><![CDATA[Reply to 5060 Ti 16GB 跑本地 Coding Agent：折腾到 96K 上下文后的真实体验 on Wed, 07 Oct 2026 01:01:37 GMT]]></title><description><![CDATA[<p dir="auto">请教一下，批处理应该怎么写</p>
]]></description><link>https://lcz.me/post/22938</link><guid isPermaLink="true">https://lcz.me/post/22938</guid><dc:creator><![CDATA[hyaska]]></dc:creator><pubDate>Wed, 07 Oct 2026 01:01:37 GMT</pubDate></item><item><title><![CDATA[Reply to 5060 Ti 16GB 跑本地 Coding Agent：折腾到 96K 上下文后的真实体验 on Tue, 06 Oct 2026 12:24:22 GMT]]></title><description><![CDATA[<p dir="auto">5060ti  已经站起来了，完全可以干活了</p>
]]></description><link>https://lcz.me/post/22831</link><guid isPermaLink="true">https://lcz.me/post/22831</guid><dc:creator><![CDATA[focuser li]]></dc:creator><pubDate>Tue, 06 Oct 2026 12:24:22 GMT</pubDate></item><item><title><![CDATA[Reply to 5060 Ti 16GB 跑本地 Coding Agent：折腾到 96K 上下文后的真实体验 on Tue, 06 Oct 2026 08:49:37 GMT]]></title><description><![CDATA[<p dir="auto">这个后端没听说过，不会玩</p>
]]></description><link>https://lcz.me/post/22794</link><guid isPermaLink="true">https://lcz.me/post/22794</guid><dc:creator><![CDATA[hyaska]]></dc:creator><pubDate>Tue, 06 Oct 2026 08:49:37 GMT</pubDate></item><item><title><![CDATA[Reply to 5060 Ti 16GB 跑本地 Coding Agent：折腾到 96K 上下文后的真实体验 on Tue, 06 Oct 2026 03:53:46 GMT]]></title><description><![CDATA[<p dir="auto">非常实用的分享，5060Ti也支棱起来了，还是27B。</p>
]]></description><link>https://lcz.me/post/22746</link><guid isPermaLink="true">https://lcz.me/post/22746</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Tue, 06 Oct 2026 03:53:46 GMT</pubDate></item><item><title><![CDATA[Reply to 5060 Ti 16GB 跑本地 Coding Agent：折腾到 96K 上下文后的真实体验 on Mon, 05 Oct 2026 03:33:23 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://upload.lcz.me/uploads/f1acaedd-9642-4c70-810e-03a72f482af3.png" alt="下载.png" class="img-markdown  img-fluid" /><br />
<img src="https://upload.lcz.me/uploads/9c871941-3c41-45d2-8898-4b11b00afea8.png" alt="下载.png" class="img-markdown  img-fluid" /></p>
]]></description><link>https://lcz.me/post/22497</link><guid isPermaLink="true">https://lcz.me/post/22497</guid><dc:creator><![CDATA[focuser li]]></dc:creator><pubDate>Mon, 05 Oct 2026 03:33:23 GMT</pubDate></item></channel></rss>