Skip to main content

LeRobot Datasets and Training

LeRobot is a robot learning data and policy training framework maintained by Hugging Face. The platform exports annotated recordings as LeRobot datasets for use by the platform training service or an external LeRobot training stack.

Supported Models and Dataset Versions​

Applicable Scenarios​

ReaderConcernEntry
Algorithm engineerDataset fields, version compatibility, and the model and training entry pointsDataset Export, Model Training
Training operationsTraining images, GPUs and mounts, logs and checkpointsModel Training
Project ManagerData format for delivery and the range of available modelsDataset Export

Core Capabilities​

CapabilityDescriptionEntry
Dataset exportExport LeRobot v3.0 or v2.1 with configurable image format, sampling rate, and subtasksData → Export
Online previewPlay ingested LeRobot data in the browserData → LeRobot
Format validationLoad with LeRobotDataset, or check the directory and metadata through LeRobot StudioSee "Dataset validation"
In-platform trainingStart training with a selected model and framework, and view logs and checkpointsModel → Training

For the Data → LeRobot preview entry, see LeRobot Studio.

Models and Frameworks​

The platform training service registers 11 policy models. The model IDs, training frameworks, and dataset versions are listed below.

Model IDTraining frameworkDataset versionDedicated page
actact, lerobotv2, v3ACT model training
diffusionlerobotv2, v3Diffusion Policy model training
grootlerobotv2, v3—
pi0lerobot, jaxv2, v3π0 and π0.5 model fine-tuning
pi05lerobot, jaxv2, v3π0 and π0.5 model fine-tuning
reward_classifierlerobotv2, v3—
saclerobotv2, v3—
smolvlalerobotv2, v3SmolVLA model fine-tuning
spirit-v1.5spiritrobochallenge, v2, v3Spirit-v1.5 model fine-tuning
tdmpclerobotv2, v3—
vqbetlerobotv2, v3—

A dash (—) means no dedicated page exists yet; use the official LeRobot documentation for the parameters and limits.

Dataset Versions​

The LeRobot dataset version follows the export option and is independent of the Python package version.

Export optionData format versionDescription
v3.0 (default)v3.0Supports subtask mode; not all models support it yet
v2.1v2.1Best compatibility; does not support subtask mode

The interface option v3.0 maps to the export parameter version=latest, and v2.1 maps to version=v2.1. The training service uses the two dataset version identifiers v2 and v3. For the differences, see LeRobot v2 vs. v3 format differences.

Training Preparation​

Training Images​

The platform training service selects a LeRobot training image by dataset version. The defaults below can be overridden by the deployment environment.

Dataset versionDefault imageTraining entry
v2lerobot:v0.3.3/lerobot/.venv/bin/lerobot-train
v3lerobot:v0.4.4/lerobot/.venv/bin/lerobot-train
Unspecifiedlerobot:latest/lerobot/.venv/bin/lerobot-train

When a training job converts v2 data to v3, it uses the v3 default image. Runs with more than one GPU use accelerate launch to enter the same entry point. The following models use dedicated images.

ModelDefault image
pi0ioaitech/train_openpi:pi0
pi05ioaitech/train_openpi:pi05
actioaitech/train_act:cuda
spirit-v1.5ioaitech/train_spirit:1.5

Training Pipeline​

Dataset Validation​

Validate the export once before connecting it to training. Prefer opening the archive or extracted directory with LeRobot Studio; for scripted validation, load the dataset directly.

from lerobot.datasets import LeRobotDataset

dataset = LeRobotDataset("local/my_dataset", root="/path/to/lerobot_dataset")
print(dataset.num_frames, dataset.num_episodes)

A successful load does not guarantee suitability for training, but it rules out a wrong directory hierarchy, missing metadata, and gaps in file numbering.

Dataset Export Essentials​

Export Configuration​

The data selection and parameter panels appear below.

Select the data to export

Export parameters

ParameterValueDescription
Data sampling rate1–60 Hz, default 30Lower values make the dataset smaller; 10–30 is recommended
Image formatMP4, JPGMP4 by default; MP4 saves about 80% storage compared with JPG
Strict match of model inputs and outputsAllow / DenyWhen enabled, crops make observations and instructions correspond one to one, reducing noise
Automatic face blurAllow / DenyWhen enabled, blurs faces in the footage for data compliance
Enable subtasksAllow / DenyWhen enabled, each annotation becomes a subtask within an episode; v3.0 only
Adaptation mappingAllow / DenyWhen configured, fields are generated from the mapping and strict_match is ignored
LeRobot versionv3.0, v2.1See the previous section for the version differences

For the full format and quota details, see Dataset Export.

Field Mapping​

The platform infers state and action fields from ROS topic name suffixes. When topic naming differs, standardize the names during recording; when existing data cannot be renamed, fill the gap with adaptation mapping.

Dataset fieldTopic name suffixBasis
observation.state/joint_state, /joint_states, /arm_joint_statetools/mcap2lerobot/mcap2lerobot.py
action/joint_commandtools/mcap2lerobot/mcap2lerobot.py

Export Results​

After the export finishes, download the archive and extract it to a separate directory. --dataset.root points to the directory that contains meta/info.json.

Export results

New folder

Extract the data

your_dataset/
├── meta/
│ └── info.json
├── data/
└── videos/

Limitations​

Export and training are subject to the existing limits below.

ItemLimitDescription
Export format versionv3.0, v2.1The interface option v3.0 maps to version=latest, and v2.1 to version=v2.1
Subtask modev3.0 onlyAfter subtasks are enabled, only v3.0 can be selected; selecting v2.1 when creating a job is also rejected
Data sampling rate1–60 Hz, default 3010–30 is recommended; lower rates make the dataset smaller
Image formatMP4, JPGMP4 by default
Strict matchIgnored after adaptation mapping is configuredThe two settings are mutually exclusive, and adaptation mapping takes precedence
Adaptation mapping sizeWithin 256 KiBAn export job is rejected when the limit is exceeded
Model image inputvqbet and tdmpc keep only one imageExtra images are ignored during training and logged
QC gateEnabled by defaultDatasets that fail QC cannot be exported
Face blurDepends on the SCRFD model and uses CPU onlyA failed blur aborts the export
Training dataset versionv2, v3spirit-v1.5 also supports robochallenge; see "Supported models and dataset versions"

Reading Order​

  1. Export the dataset: Dataset Export
  2. Validate the data: LeRobot Studio
  3. Install the environment: Install LeRobot
  4. Choose a model: ACT, Diffusion Policy, π0 and π0.5, SmolVLA, Spirit-v1.5
  5. Start training: Model Training