AI & ML interests
None defined yet.
Recent Activity
Training Agents Course on Hugging Face Learn
This free course teaches how language models are post-trained to work as agents. In Units 1 to 4 you train a small model to solve coding tasks with a tool, and improve it with supervised fine-tuning, distillation and reinforcement learning. Later units train a data-analysis agent inside an RL environment and through real agent harnesses.
š Sign up: follow this organization. The course material, datasets, models and certificates are published here.
š Certificates: a Fundamentals certificate for a model you trained in Units 2 to 4, and a Final certificate for the final project. Both compare your model with the base model on held-out problems the course never showed you.
š Course material: hf.co/learn/training-agents-course (coming soon).
š» Code: the course pages and every script are on GitHub.
Course Syllabus
| Unit | Topic | Description |
|---|---|---|
| 0 | Welcome | Set up your account, HF Jobs, Trackio and, if you use one, your coding agent. |
| 1 | Foundations | What it means to train an agent: trajectories, the harness, the loss mask, and how to evaluate an agent. Measure your baseline. |
| 2 | SFT on agent traces | Generate traces with a stronger model and fine-tune on them, with the loss on the agent's own turns. |
| 3 | Distillation | Learn from a teacher's probabilities on the student's own text (on-policy distillation). |
| 4 | RL with GRPO | Learn from a score on the model's own attempts, and see how a reward can be hacked. |
| 5 | RL environments | Train a data-analysis agent inside an environment with OpenEnv, over full episodes. |
| 6 | Harnesses and scale | Async RL, one sandbox per rollout, and training through a real agent harness. |
| 7 | Final project | Train the best data-analysis agent you can, with the method and budget you choose, and compare it with the base model for the Final certificate. |
Units contain: written material with interactive figures, a hands-on exercise on HF Jobs, an evaluation against the base model in the same job, and a quiz.
Every exercise runs on Hugging Face Jobs, so you don't need a GPU of your own. Doing all of them, with their evaluations, costs about $21 to $22.50.
Prerequisites
- Familiarity with LLMs. Fine-tuning experience helps but isn't required (see the LLM Course)
- Python and the command line
- A Hugging Face account (free): register here
Instructors
Community
To study or discuss the course, join the Hugging Face Discord. Found a bug or want to improve something? Open an issue or a pull request on GitHub.
