跳到正文
Hugging Face· @huggingface · X·· 6 天前精选AI 评分63
AI 导读

Hugging Face 团队与 @adithya_s_k 发布多 harness RL 完整指南,全部开源。

推荐理由

原文给出多 harness RL 的具体做法和完整开源资源,读者可以照此让同一个模型在多个 Agent 框架中同时提升。

正文 · 原文

The same model, with the same weights, scores 62% in one agent harness and 33% in another.

@adithya_s_k and the @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 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 👇
https://huggingface.co/spaces/FineEnvs/multi-harness-rl

来源:Hugging Face · x.com