All videos
0:00 / 0:00
research

Training Agents: Live tutorial on how to fine-tune a coding agent for continual learning

Hugging Face16 June 2026Watch on YouTube

Part of series

Ep. 1 · RL voor AI-Agenten

Praktische workshops over reinforcement learning en beloningsfuncties voor het trainen van agentic AI-systemen met open-source tools.

View the series

What you'll learn

  • SFT is the first step in agentic post-training for coding agents, before advancing to methods like GRPO or environment RL.
  • Agent traces can be converted into training data by creating prompt/completion pairs and applying completion-only loss to chat and tool traces.
  • TRL and LoRA enable efficient fine-tuning of coding agents on Hugging Face Jobs with reproducible experiments.
  • Evaluation metrics in the early phase have limitations and cannot fully prove the real performance of trained agents.
  • A complete agentic post-training workflow combines SFT with experiments that are continuously designed, run, and monitored by agents themselves.

Frequently asked questions

Why start with SFT instead of directly using GRPO or environment RL?
SFT forms the fundamental foundation for agentic post-training. It helps the model first learn from existing agent traces before advancing to more sophisticated training methods like GRPO or reinforcement learning in an environment.
How are agent traces converted into training data?
Agent traces are structured as prompt/completion pairs. By applying completion-only loss, the model learns only on the output portion of chat and tool traces, enabling more efficient training.
What tools and frameworks are used for fine-tuning coding agents?
TRL and LoRA are used to efficiently fine-tune coding agents on Hugging Face Jobs. This enables reproducible experiments without checking in checkpoints.
What are the limitations of evaluation metrics in the early phase of training?
Evaluation metrics in the early phase cannot prove all aspects of agent performance. They provide an initial indication, but are not always sufficient to demonstrate the real effectiveness of trained agents.

Topics

In this video

Read next

Description from the channel

Training Agents, Session 1: from raw agent traces to a supervised fine-tuning baseline. In this live session, I’ll set up the first rung of an agentic post-training workflow: SFT. We’ll take public coding-agent traces, turn them into prompt/completion training data, run a small TRL + LoRA fine-tune, and inspect what the first metrics can and cannot tell us. What we’ll cover: - Why start with SFT before GRPO or environment RL - How agent traces become training examples - Completion-only loss for chat/tool traces - Running TRL SFT on Hugging Face Jobs - Keeping experiments reproducible without checking in logs or checkpoints - What the first eval metrics do and do not prove Repo: https://github.com/burtenshaw/training-agents This is part of the Training Agents series: using coding agents to design, run, monitor, and review post-training experiments, while training models to become better agents. #TRL #HuggingFace #PostTraining #AIAgents #FineTuning