Skip to main content
This tutorial walks you through training your first robot learning policy from scratch using LeRobot. We’ll train a Diffusion Policy on the PushT task, a popular benchmark for imitation learning.

Prerequisites

Make sure you have LeRobot installed:
For GPU acceleration (recommended):

Training Steps

Using the CLI

For production training, use the lerobot-train CLI which includes advanced features:
The CLI provides:
  • Automatic checkpointing and resumption
  • WandB integration for logging
  • Distributed training support
  • Evaluation during training
  • Configuration management

Training with Your Own Data

To train on your own collected data:

Monitoring Training

Using WandB

Integrate with Weights & Biases for detailed logging:

Tensorboard

View training logs with Tensorboard:

Common Issues

Out of Memory

Reduce batch size or image resolution:

Slow Training

Increase number of dataloader workers:

Loss Not Decreasing

Check learning rate and try gradient clipping:

Next Steps

Complete Example Script

See the complete training example at: