AI & ML interests

None defined yet.

Recent Activity

burtenshawΒ  updated a dataset about 19 hours ago
agents-course/certificates
sergiopaniegoΒ  updated a dataset about 20 hours ago
agents-course/final-certificates
sergiopaniegoΒ  updated a dataset about 20 hours ago
agents-course/course-certificates-of-excellence
View all activity

sergiopaniegoΒ 
posted an update 5 days ago
view post
Post
189
async RL in TRL is fast, and now it's stable!

sync RL training alternates between writing answers and learning from them, so part of the GPUs is always waiting. TRL's async trainer does both at the same time

on the same number of training steps you get:
> 5h on 16 GPUs instead of 20h on 8
> about the same reward at every step
> 2x the GPUs, but about half the GPU-hours

how it works and how to run it: trl-lib/async-grpo-stable
sergiopaniegoΒ 
posted an update 10 days ago
sergiopaniegoΒ 
posted an update 16 days ago
view post
Post
291
AsyncGRPOTrainer is now stable in TRL v1.18.0!

generation and training run at the same time on separate GPUs, instead of taking turns

we wrote up how to run it, what you can train with it and how it compares with GRPOTrainer: trl-lib/async-grpo-stable
sergiopaniegoΒ 
posted an update 19 days ago
view post
Post
6,917
New post-training example: SFT on agent traces with TRL

β†’ A large model works as a coding agent in OpenCode, run through OpenEnv
β†’ The tasks it solves become the training data
β†’ A 2B model goes from 5.5% to 34.4% on held-out tasks

About 500 traces get most of the gain. Five times more add only 3 to 4 points, so SFT gets the agent working and RL has to do the rest

Full guide, with the models, traces and every rollout open:
https://github.com/huggingface/trl/tree/main/examples/sft_agent_traces
  • 1 reply
Β·
sergiopaniegoΒ 
posted an update 26 days ago
view post
Post
4,787
TRL now supports MOPD (Multi-Teacher On-Policy Distillation) natively❗️

Many frontier open models use it. labs train one RL expert per domain and then distill them all into one model

Blog with what it is, who uses it and an experiment you can run on HF Jobs with one command

https://huggingface.co/blog/sergiopaniego/mopd-trl
sergiopaniegoΒ 
posted an update about 1 month ago
view post
Post
1,270
if you want to deep dive into how the new @MistralAI Large 4 was built, we sat down with the team to learn straight from them!

scaling, specialization, evals, cyber, sandboxing and why open weights matter

a really detailed look at what it takes to build and release an open frontier model, super recommended

https://www.youtube.com/watch?v=FczbSauVvjw
sergiopaniegoΒ 
posted an update about 1 month ago
sergiopaniegoΒ 
posted an update about 1 month ago
view post
Post
3,129
how do you post-train an agent?

we laid it out as a 5-step curriculum, from SFT to RL through a real harness, with livestreams, code and docs for each step

https://huggingface.co/blog/huggingface/train-agents
  • 2 replies
Β·
sergiopaniegoΒ 
posted an update about 1 month ago
view post
Post
223
Last week we closed the Training Agents series IRL at the GitHub offices in SF

4 talks, a panel and audience Q&A. almost 2h on post-training agents with open models

> Learnings from enterprise RL (Govind Kamtamneni Microsoft)
> Environments and benchmarks in industry (Victor Barres Mercor)
> How to train your agents with Miles (Tao Lin RadixArk)
> Why we built OpenEnv Arena (Xiangyi Li BenchFlow)

Full recording + Slides

https://www.youtube.com/watch?v=CKFUx7COIwQ
sergiopaniegoΒ 
posted an update about 2 months ago
sergiopaniegoΒ 
posted an update about 2 months ago
view post
Post
366
Repo2RLEnv just shipped TaskSmith + 50 high quality RL envs generated from HF repos πŸ”¨

TaskSmith is a specialized harness that turns a merged PR into a verified RL env

the envs come from HF repos (Transformers, TRL, PEFT, Accelerate, Diffusers), shipped as Harbor tasks you can eval or train on

> code: github.com/huggingface/Repo2RLEnv
> dataset: huggingface.co/datasets/FineEnvs/HF_ML_Tasksmith
sergiopaniegoΒ 
posted an update about 2 months ago
view post
Post
3,883
ThinkingBox from @microsoft is now available as an OpenEnv env (cc @tuhink πŸ€— )!

> ThinkingBox is a sandbox for testing agents on business workflows. it simulates a customer, gives the agent MCP tools over a real database, and at the end checks what changed in that database instead of trusting the agent's last message

> ThinkingBox-Bench is the benchmark built on it: 507 tasks across retail, insurance, travel, banking and consulting

> the OpenEnv env runs each task as an episode in its own isolated backend and returns a pass/fail reward from those checks

https://huggingface.co/blog/microsoft/thinkingbox
sergiopaniegoΒ 
posted an update about 2 months ago
sergiopaniegoΒ 
posted an update 2 months ago
view post
Post
499
ICYMI, Async GRPO in TRL now supports LoRA and we wrote a looong blog testing it

> the adapter is a few megabytes, so the weight sync is a file instead of an NCCL transfer
> 3 HF Jobs: 1 trainer and 2 vLLM replicas
> the adapter travels through an HF Storage Bucket mounted in all 3 at the same path
> a proxy in front of the replicas routes each rollout to the one already holding its KV prefix

https://huggingface.co/blog/asyncgrpo-lora-hfjobs
sergiopaniegoΒ 
posted an update 3 months ago
view post
Post
3,434
while preparing the last class of the Training Agents live series during the summer, i spent some time reading the post-training sections of many frontier model reports, to learn how they use RL environments to improve their models, and wrote a blog about it

if you use any kind of coding harness, or you saw the Blender scenes that went viral recently, this might be interesting to you

Blog: https://huggingface.co/blog/sergiopaniego/rl-environments-2026