An agent does not produce one answer and stop. It calls a tool, reads the result, decides what to do next, and may recover from a mistake several turns later. Training that system on isolated answers teaches the wrong unit. Hugging Face's Training Agents curriculum makes the whole trajectory the object of the work.
The guide moves through five steps: supervised fine-tuning on agent traces, distillation from a teacher, reinforcement learning from rewards, reinforcement learning inside environments, and harnesses that can run full agent tasks at scale. The progression is less a checklist than a way to match the training signal to the failure you are trying to fix.
The harness is part of the dataset
SFT is comparatively cheap and stable, but it only shows the model successful traces. Distillation adds a dense teacher signal, while RL lets the model learn from its own attempts. Environments add the consequences of actions, and the final harness step makes the agent's tools, sandbox, and multi-turn recovery part of the training run rather than an afterthought.
That distinction changes the infrastructure bill. Builders need a task environment, a reliable reward or verifier, an agent harness, and enough separation between generation and training to run the loop repeatedly. A benchmark score from a single response cannot tell you whether the agent knows how to recover after a tool timeout or a partially completed action.
Train the sequence that contains the decision, the tool call, the consequence, and the recovery—not just the polished sentence at the end.
Choose the smallest real environment
The most useful starting point is not a giant benchmark. It is one environment with observable outcomes, a task that matters to the product, and a harness that records every turn. Once the failure trace is legible, the team can decide whether SFT, distillation, rewards, or more realistic environments are the cheapest next intervention.
Hugging Face's October 20 curriculum organizes agent post-training into SFT, distillation, reinforcement learning, RL environments, and harnesses at scale. It is an educational guide based on the Training Agents livestream series and linked documentation, not an independent benchmark of the recommended sequence.
Hugging Face · A curriculum for post-training agents ↗

