最新资讯
dev.to 精简 MCP server 工具数量:更少工具、更小影响面,双重收益 dev.to 为什么 git checkout 无法撤销 AI 编码 agent 的改动? wechat AI短剧门槛降降降!实测即梦短剧工作室:剧本分镜预演一条龙,伙伴计划长期护航 dev.to 让模型改写文档前,先量化事实保真度 dev.to 回放 153 个 Claude Code 与 Codex 会话,审计 Agent 的生产影响范围 dev.to 银行 77 意图分类最便宜 LLM:GPT-6.1 Terra 每次成功任务 $0.000727 theinformation.com Chesky的副业:Airbnb向CEO新设AI实验室出售IP theverge.com OpenAI 宣布数据中心项目不再与公职人员签署保密协议 dev.to NVIDIA 发布四个开放 Cosmos 3 仿真模型 dev.to 真实 MCP 客户端击穿我们服务器的五种方式 theverge.com Airbnb 正在开发 AI 旅行 agent,计划 2027 年上半年推出 wechat 这可能是美国AI最魔幻的一天。
多元动态
登录 注册
AI编码 x.com · @huggingface

Hugging Face 发布多 harness RL 指南:同一模型在不同 agent 框架下得分 62% vs 33%

原文 我的收藏

Hugging Face 与 @adithya_s_k 发布多 harness 强化学习指南。方法是在模型前加代理层,兼容 OpenAI Chat Completions、OpenAI Responses、Anthropic Messages、Gemini 四种 API 格式,记录 vLLM 采样的 token id 和 logprobs 用于训练,无需修改 Claude Code、Codex、OpenCode 代码。结果:LFM2.5-2.6B 跨 4 个 harness 训练从 42% 升至 54%,工具调用减少 31%;仅用 OpenCode 训练使其从 34% 升至 58%,多 harness 模型在各环境均有提升;用 Qwen3.8-27B 的 3189 条成功轨迹做模仿学习仅达 47.5%,低于 RL。捕获代理、训练器、任务、SFT 数据和七个模型均已开源。

AI推荐理由 Hugging Face 与研究者联合发布的多 harness RL 指南,给出具体可验证数据:同一模型在不同 agent harness 下得分 62% vs 33%;LFM2.5-2.6B 跨 4 个 harness 训练从 42% 提升到 54%,工具调用减少 31%;OpenCode 单 harness 训练从 34% 到 58%;模仿 3189 条成功轨迹的 SFT 仅到 47.5%,低于 RL。核心方法(代理层捕获 token id 与 logprobs,不改 harness 代码)和开源组件(OpenEnv 捕获代理、TRL 训练器、任务、SFT 数据、七个模型)明确,对 agent 训练与评测有直接参考价值。局限是数据来自推文自述,未提供独立复现。

88 浏览 9,445 点赞 94 评论 36 转发 9

正文

The same model, with the same weights, scores 62% in one agent harness and 33% in another. [@adithya\_s\_k](https://x.com/adithya_s_k) and the [@huggingface](https://x.com/huggingface) team just released the ultimate guide to multi-harness RL, and it's one of the most practical RL write-ups this year, and everything open! The trick is simple. Don't touch the harness. Point it at a proxy instead of the model. The proxy speaks all four API formats coding agents use (OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, Gemini). It records the exact token ids and logprobs vLLM sampled, and you train on that. You don't change a single line of Claude Code, Codex or OpenCode. Results: 🔹 Trained across 4 harnesses at once, LFM2.5-2.6B by [@liquidai](https://x.com/liquidai) went from 42% to 54% 🔹 31% fewer tool calls, thanks to a small bonus for solving tasks in fewer steps 🔹 Training in OpenCode alone took OpenCode from 34% to 58%, but the multi-harness model improved everywhere They also tried the shortcut everyone reaches for: fine-tune on 3,189 successful rollouts from Qwen3.8-27B. Imitation plateaued at 47.5%, below both RL runs. Copying a bigger model doesn't get you there. Practice does. The best part is that everything is open: the capture proxy in OpenEnv, the trainer in TRL, the tasks, the SFT data, the training code and all seven trained models. Agents will run in dozens of harnesses. Now open models can be trained for each of them, by anyone. Read it here[huggingface.co/spaces/FineEnv…](https://huggingface.co/spaces/FineEnvs/multi-harness-rl)9SLS ![Tweet Image](https://pbs.twimg.com/media/HToib44XsAA-VYJ.jpg)

来源报道 · 1 篇 · 以下链接均前往原始媒体

← 返回精选动态 原文

更多内容