Vibeleaderboard
← All Intel
Intel / video

RL for Agents Workshop - Deep Dive on Training Agents with RL and Open Source

Source
youtube.com
Author
Hugging Face
Date

Context

This Hugging Face workshop on training agents with reinforcement learning keeps coming back to one idea. The difficult part is describing the task well, and that description also serves as your test. Lewis from Hugging Face opens by explaining how the work changes. The RL recipe that most open-source work has used gives the model a prompt and has a checker return 1 or 0 for the answer. An agent instead acts over many steps inside an environment. It calls tools or runs commands, receives observations, and gets scored only when the episode ends, which can be hours later. He lists what an environment holds: the tasks, an execution backend such as a sandbox, browser or terminal, some state such as a database or files, and a way to assign reward. That reward is now often a mix of simple rules and rubrics graded by another LLM.

Will Brown of Prime Intellect goes further and says, by his own account somewhat provocatively, that evals and environments are the same thing. In his framing an environment bundles tasks (the dataset), a harness (the agent or tool interface the model runs inside) and metrics (reward functions in RL, scoring rules in an eval). Once it is built, the same object can tell you whether a prompt change, a cheaper model or a training run helped. His team's verifiers library describes itself as a way of creating environments to train and evaluate LLMs. Brown argues that the harness a model is trained in should match the one it will be deployed in. His answer to where the data comes from is your own usage: log the prompts you give your coding agent, then treat the diff that was finally merged, or the tests added with it, as the target.

The other talks explain why a good test is the scarce part. Ofir Press, from the team, says benchmarks usually saturate within a year or two, and he prefers answers that can be checked deterministically over LLM judges. Lewis warns that agent evals with terminal access invite reward hacking, meaning the agent scores well by exploiting a flaw in the test instead of doing the task, and that open models can look strong on public benchmarks but then underperform on newer ones. His advice is to keep evals of your own. Brown is less strict about judges. He trusts them for narrow yes-or-no questions that most informed people would agree on, averaged over many such criteria.

The panel adds a practical caveat. Asked what reliably works, Brown and Lewis both point first to : plain supervised fine-tuning of a small model on a larger model's traces. Lewis notes that this is what most teams, especially in enterprises, already do, while Brown expects RL to become cheaper and easier to justify. An earlier session in Hugging Face's Training Agents series explains step by step why rewards end up inside environments, and a live distillation tutorial shows that simpler route in practice.

Key takeaways · AI-distilled
  • Hugging Face's Lewis Tunstall said agent RL now runs generation and training asynchronously, because in synchronous batches one slow rollout idles every GPU; updating weights mid-generation adds some off-policyness that typically does not hurt.
  • Ofir Press's benchmark rules: launch near 0% accuracy, and use deterministic verifiers rather than LLM judges; his AlgoTune caps each task at $1, where cheaper models sometimes beat frontier ones because they get more attempts to iterate.
  • In Press's CodeClash, agents rewrite game-playing code over 15 rounds against each other; it separated two models with similar SWE-bench scores, and the best agent lost about a thousand straight rounds to the best human-written solution.
  • The recursive language models author argued the idea is not sub-agents or file offloading: the model works in a REPL where sub-model calls are ordinary functions, so no single call needs to see beyond a bounded .
  • Prime Intellect's Will Brown described synthetic Tau-bench style worlds that keep the simulator logic but replace the data and tasks; training on library, tech-support and gym worlds improved scores on the held-out telecom split.
Terms in this piece · Glossary
  • SWE-bench — The standard benchmark for AI coding agents: real GitHub issues from real repositories, scored by whether the agent's patch passes the project's own tests.
  • distillation — Training a small, cheap model to imitate a big one's outputs, keeping much of the capability at a fraction of the cost.
  • tool use — A model's ability to call external functions — run code, search the web, edit files — instead of only generating text.
  • context window — The maximum amount of text a model can consider at once — its working memory for the current conversation or task.
Read the source youtube.com
More from Hugging Face
Recommended reads
Comments

Checking sign-in…

Loading comments…