In this video I explain how we train the neural networks of TD-MPC.
TD-MPC paper: https://arxiv.org/abs/2203.04955
FOWM paper (this is what's behind the implementation in the LeRobot library): https://arxiv.org/abs/2310.16029
LeRobot code: https://github.com/huggingface/lerobot/blob/main/lerobot/common/policies/tdmpc/modeling_tdmpc.py
Many thanks to Nicklas Hansen et. al. for publishing their research and open sourcing their code.
Chapters:
0:00 - Listing the neural networks we need to train
04:53 - What a training batch item looks like
06:09 - Forward passes and losses
13:41 - Why the latent state representation does not collapse
14:24 - Understanding TD Learning
23:42 - TD learning intuition in real experiments
26:58 - Optimizing the Q network using the TD error
30:34 - Offline vs online data collection and training loop
36:20 - Wrapping up
Choose to Build with AI
Matched to Neural Networks
AI Maker Residence 3
The third AI workshop taught by our legendary teacher, Nick Sarafa. This is a full-day hands-on training workshop for purposeful co-creation with AI using Claude Code.
Imagine having access to hundreds of billions of dollars of computing power and knowing exactly how to make it work for you through the power of super intelligence.
◆ Fri 09 Oct 2026◆ KOKO Cafe, London◆ With Nick Sarafa