MiniCPM5三项多轮智能体测试全通过
3 out of 3 multi-turn agent tasks passed with just 2.5B active parameters! 🔥
MiniCPM5-15B-A2.5B以2.5B激活参数通过3项多轮智能体任务测试。OpenBMB感谢测试与反馈,并表示正致力于让高能力智能体更易获取,期待发布后的本地测试。
查看原帖做智能体任务不需要 100B 模型:MiniCPM5-15B-A2.5B 三项测试全部通过 大多数人家里都没有 256GB 内存。要让智能体真正惠及普通用户,突破口在于能够完成实际多轮任务的小模型,而它们每个月都在进步。 @OpenBMB 在发布前向我开放了 MiniCPM5-15B-A2.5B(总参数 15B、MoE 激活参数 2.5B)的早期 API 访问权限,供我测试。注意:测试使用的是他们的预发布 API,而不是我自己的硬件。等权重发布后,我会在本地运行。 他们的主张是:打造高效的边缘端智能体,提升多轮工具调用能力,并用更少的 token 完成任务。 所以我没有安排任何单轮简单题。我把它接入 OMP 智能体测试框架,运行了 3 项多轮测试,专门设置在小模型通常容易出错的环节。每项测试都在独立文件夹中进行,仅可使用 Python 标准库,并设有严格规则和真实陷阱。每项测试只运行一次。它 3 项全部通过。 测试 1:跨文件排查 bug 一个功能开关服务共有 7 项测试,其中 3 项失败。根本原因位于 config_loader.py:带连字符的环境变量覆盖项存在键名规范化不一致的问题,此外还有一个 Python 的“or”逻辑错误,导致 enabled: false 被忽略。陷阱包括 http://cache.py 中一条误导性注释,以及一个未被使用、长达 160 行的 audit_log.py。规则:不得修改 tests/。 结果:通过(7/7)。它找出了两个 bug 并进行了简洁修复,避开了干扰项,从未打开 audit_log.py,也没有改动 tests/。 测试 2:脏数据处理流水线 共有 14 个混乱的 JSON/CSV 文件:存在模式漂移(camelCase、Unix 时间戳、混合时区偏移)、跨文件重复数据(较旧记录不得覆盖较新记录,另有时间戳完全相同的冲突)、缺失 user_id、错误时间戳、截断的 JSON、无效 UTF-8,以及一个 0 字节文件。 它必须仅使用标准库编写一个 http://aggregate.py,确保永不崩溃、将所有数据转换为 UTC、进行去重、把不良记录隔离到 errors.json,并检查自己的输出。 结果:通过(100% 精确匹配)。共得到 26 个唯一事件,隔离了 5 个错误,所有边界情况均得到处理。 测试 3:速率限制器对抗严格验证器 实现一个线程安全、按键区分的令牌桶速率限制器,并接受只读 http://verify.sh 的验证:在 AST 层面检查是否仅导入标准库、禁止使用裸 except,并运行 14 项测试,包括小数速率、retry_after 计算、时钟倒退和 10 线程压力测试。 结果:通过(14/14,且通过静态检查)。实现简洁,仅 90 行,tests/ 和 http://verify.sh 均未改动。 OMP 日志显示的情况 案例 1:10 轮,15 次工具调用,1 个错误,输出 6.2K token,总计 139K 案例 2:14 轮,13 次工具调用,2 个错误,输出 23.5K token,总计 239K 案例 3:15 轮,19 次工具调用,4 个错误,输出 14.4K token,总计 271K 总计数字包含缓存,其中大部分来自智能体每轮重新读取上下文,因此并不全是新输出。 优点:对于仅激活 2.5B 参数的模型而言,其自主执行能力很强。它只打开所需文件,遵守了所有规则,检查了自己的工作,并能从错误中恢复而不陷入循环。 注意事项 1:思考过程占比很高。案例 2 的思考内容有 61.8K 个字符,而最终文本只有 2.5K 个字符。我没有进行基线测试,所以无法判断它是否比其他模型用得更多;但若要打造快速的边缘端智能体,精简常规轮次中的推理过程会是最显著的改进。 注意事项 2:补丁语法。在案例 3 中,它连续 3 次写错 OMP 的锚定编辑格式,之后才终于写对。逻辑本身很扎实;阻力来自测试框架的格式。工具错误共 7 次,违反规则次数为零。 结论 我们争论着几乎没人能在家运行的 100B–1T+ 模型,却忽略了小模型正在多快地迎头赶上。仅激活 2.5B 参数的模型,刚刚在真实智能体任务中取得了 3 项全胜的成绩。要在家运行一个实用的编程智能体,不应该非得配备拥有 256GB 内存的工作站。 感谢 @OpenBMB 推动小型智能体模型不断向前。很想看看它正式发布时会达到怎样的水平。
查看原文
You don't need a 100B model for agent work: MiniCPM5-15B-A2.5B went 3 for 3 Most people don't have 256GB of RAM at home. If agents are going to matter for normal users, the unlock is small models that can do real multi-turn work, and they're getting better every month. @OpenBMB gave me early API access to MiniCPM5-15B-A2.5B (15B total / 2.5B active MoE) to test before release. Note: this was through their pre-release API, not my own hardware. Local run once the weights drop. Their pitch: efficient edge agents, better multi-turn tool calling, and finishing tasks with fewer tokens. So no single-turn softballs. I put it in the OMP agent harness and ran 3 multi-turn tests built where small models usually break. Each in its own folder, Python stdlib only, strict rules, real traps. One run per test. It passed all 3. Test 1: Cross-file bug hunt A feature-flag service with 7 tests, 3 failing. Root cause in config_loader.py: a key-normalization mismatch on hyphenated env overrides, plus a Python "or" bug ignoring enabled: false. Traps: a misleading comment in http://cache.py and an unused 160-line audit_log.py. Rule: don't touch tests/. Result: PASS (7/7). Found both bugs with a clean fix, ignored the red herring, never opened audit_log.py, left tests/ untouched. Test 2: Dirty-data pipeline 14 messy JSON/CSV files: schema drift (camelCase, Unix epochs, mixed timezone offsets), cross-file duplicates (an older one must not overwrite a newer one, plus an exact-timestamp tie), a missing user_id, a bad timestamp, truncated JSON, invalid UTF-8 and a 0-byte file. It had to write a stdlib-only http://aggregate.py that never crashes, converts everything to UTC, dedupes, quarantines bad records to errors.json and checks its own output. Result: PASS (100% exact match). 26 unique events, 5 quarantined errors, every edge case handled. Test 3: Rate limiter vs a strict verifier A thread-safe, per-key token-bucket limiter against a read-only http://verify.sh: stdlib-only imports checked at AST level, no bare except, and 14 tests incl. fractional rates, retry_after math, clock going backwards and a 10-thread stress test. Result: PASS (14/14 + static checks). Clean 90-line implementation, tests/ and http://verify.sh untouched. What the OMP logs show Case 1: 10 turns, 15 tool calls, 1 error, 6.2K output tokens, 139K total Case 2: 14 turns, 13 tool calls, 2 errors, 23.5K output, 239K total Case 3: 15 turns, 19 tool calls, 4 errors, 14.4K output, 271K total Total includes cache, mostly the agent re-reading its context each turn, so it's not all new output. The good: strong agency for 2.5B active. It opened only the files it needed, followed every rule, checked its work and recovered from errors without looping. Caveat 1: thinking dominates. Case 2 had 61.8K thinking chars vs 2.5K of final text. I didn't run a baseline, so I can't say it uses more than others, but trimming reasoning on routine turns is the biggest win for a fast edge agent. Caveat 2: patch syntax. In case 3 it got OMP's anchored edit format wrong 3 times in a row before getting it right. Logic was solid; the friction was the harness format. 7 tool errors total, zero broken rules. The takeaway We argue about 100B-1T+ models almost nobody can run at home and miss how fast the small end is catching up. 2.5B active params just went 3 for 3 on real agent work. You shouldn't need a 256GB workstation to run a useful coding agent at home. Big credit to @OpenBMB for pushing small agent models forward. Curious where this lands at release.
正文
3 out of 3 multi-turn agent tasks passed with just 2.5B active parameters! 🔥
Thanks for putting MiniCPM5-15B-A2.5B to the test and sharing such thoughtful feedback. Making capable agents more accessible is exactly what we're working toward.
Excited to see your local tests after release! 💙
AI 热点