This guide is for two situations: you are about to train on a dataset recorded with LeRobot and want to know what is actually inside it, or you opened an older v2.1 dataset with a current LeRobot release and hit a BackwardCompatibilityError. Using the real file list and info.json of a public v3.0 dataset, it walks through the folder layout, the v2.1 → v3.0 conversion, how to verify the result, and where v2-era code breaks.
Recording and ACT training commands are covered in the SO-101 ACT policy training guide, and the reverse conversion to v2 plus modality.json for GR00T are in the Isaac GR00T fine-tuning guide, so neither is repeated here.
Taking a real v3.0 dataset apart file by file
The official v3.0 documentation describes the core design principle as decoupling storage from the user API: data is stored in a few large files, while the public API still hands you episodes. Low-dimensional, high-frequency signals (states, actions, timestamps) go into Apache Parquet, camera frames go into MP4, and schema plus episode segmentation go into metadata.
Here is the Hub file list for lerobot/svla_so101_pickplace, the public dataset the Dataset Tools docs use as their SO-101 example (its info.json records robot_type as so100_follower). Sizes are in bytes as of 2026-10-31.
meta/info.json 3,401
meta/stats.json 5,914
meta/tasks.parquet 2,246
meta/episodes/chunk-000/file-000.parquet 72,560
data/chunk-000/file-000.parquet 369,943
videos/observation.images.side/chunk-000/file-000.mp4 45,541,633
videos/observation.images.up/chunk-000/file-000.mp4 40,124,489
All 50 episodes and 11,939 frames sit in one Parquet file and one MP4 per camera. Under v2.1’s one-file-per-episode rule, the same data would have been split into 50 Parquet files and 100 MP4s. What each file holds:
| Path | Format | Contents |
|---|---|---|
meta/info.json | JSON | Codebase version, fps, features (names, dtypes, shapes), path templates, shard size settings |
meta/stats.json | JSON | Global per-feature statistics (mean/std/min/max) used for normalization, exposed as dataset.meta.stats |
meta/tasks.parquet | Parquet | Natural-language task strings mapped to task_index |
meta/episodes/chunk-XXX/file-XXX.parquet | Parquet | Per-episode length, tasks, data and video shard locations and offsets, per-episode stats |
data/chunk-XXX/file-XXX.parquet | Parquet | One row per frame, many episodes concatenated |
videos/<camera_key>/chunk-XXX/file-XXX.mp4 | MP4 | Per-camera video shards, many episodes concatenated |
The path rules are constants in datasets/utils.py. CHUNK_FILE_PATTERN is chunk-{chunk_index:03d}/file-{file_index:03d}, a chunk holds at most 1,000 files (DEFAULT_CHUNK_SIZE), and a data file rolls over to the next one past 100 MB (DEFAULT_DATA_FILE_SIZE_IN_MB). The video limit on the current main branch is 200 MB, yet the dataset above records video_files_size_in_mb: 500 in its info.json. The value that governs a given dataset is the one written in that dataset’s info.json, not the library default.
One documentation gap to be aware of: the directory overview in the official docs lists meta/tasks.jsonl, but the code’s DEFAULT_TASKS_PATH and real v3.0 datasets use meta/tasks.parquet. In the code, tasks.jsonl is LEGACY_TASKS_PATH, meaning the v2.1 location.
How the features block in info.json fixes joint order and camera keys
features in info.json is the schema for every Parquet column and video stream. In the dataset above, observation.state and action are both float32 with shape [6], and names lists shoulder_pan.pos, shoulder_lift.pos, elbow_flex.pos, wrist_flex.pos, wrist_roll.pos, gripper.pos in that order. Index 0 of the six-element vector is shoulder pan and index 5 is the gripper. If you merge data from another robot config or another dataset whose order differs, every value stays in a plausible range while the policy learns actions for the wrong joints. The data loader does not check what the numbers mean, so nothing raises an error.
Cameras are keyed by the name after the observation.images. prefix, such as observation.images.up and observation.images.side. Each dtype: video entry records video.height and video.width (480×640 here), video.codec (av1) and video.fps (30). When a policy config expects a different camera key or resolution, training either fails to find the key or receives mismatched input sizes. The remaining columns, timestamp (float32) and frame_index, episode_index, index, task_index (all int64), are the index columns every v3.0 dataset carries.
Finding episode boundaries in the meta/episodes Parquet files
In v3.0, the answer to “where is episode 3?” is a row in meta/episodes/, not a filename. The columns written by the conversion script make the structure explicit:
data/chunk_index,data/file_index: the data shard holding this episode’s rowsdataset_from_index,dataset_to_index: frame range across the whole dataset (end exclusive)videos/<camera_key>/chunk_index,videos/<camera_key>/file_index: the video shard per cameravideos/<camera_key>/from_timestamp,videos/<camera_key>/to_timestamp: start and end time in seconds inside that MP4tasks,length,stats/<feature>/<min|max|mean|std|count>: tasks, frame count and per-episode statistics
To inspect this without downloading the full dataset, use LeRobotDatasetMetadata, which loads only the metadata.
from lerobot.datasets import LeRobotDatasetMetadata
meta = LeRobotDatasetMetadata("lerobot/svla_so101_pickplace")
print(meta.info.codebase_version, meta.fps, meta.total_episodes, meta.total_frames)
print(meta.names["observation.state"]) # check joint order
ep = meta.episodes[3] # row for episode 3
print(ep["data/chunk_index"], ep["data/file_index"],
ep["dataset_from_index"], ep["dataset_to_index"], ep["length"])
for key in meta.video_keys:
print(key, ep[f"videos/{key}/file_index"],
ep[f"videos/{key}/from_timestamp"], ep[f"videos/{key}/to_timestamp"])
Training access is unchanged: index into LeRobotDataset(repo_id) and use delta_timestamps for temporal windows, and the library uses this metadata to cut each episode out of the right shard. The docs point out that the same design is what lets StreamingLeRobotDataset stream straight from the Hub without a local copy.
Mapping v2.1 paths and metadata files to v3.0
Comparing the header comment of the converter with utils.py at the v0.3.3 tag gives the following map.
| Item | v2.1 | v3.0 |
|---|---|---|
| Frame data | data/chunk-000/episode_000000.parquet (one per episode) | data/chunk-000/file-000.parquet (many episodes) |
| Video | videos/chunk-000/<camera_key>/episode_000000.mp4 | videos/<camera_key>/chunk-000/file-000.mp4 |
| Episode list | meta/episodes.jsonl | meta/episodes/chunk-000/file-000.parquet |
| Per-episode stats | meta/episodes_stats.jsonl | stats/... columns in the episode Parquet |
| Tasks | meta/tasks.jsonl | meta/tasks.parquet |
| Global stats | meta/stats.json | meta/stats.json (re-aggregated from episode stats) |
info.json | has total_chunks, total_videos | both removed; adds data_files_size_in_mb, video_files_size_in_mb |
The easiest change to miss is in the video path: the camera key and the chunk directory swapped places. Any script with the v2.1 path hardcoded will find zero files in a v3.0 folder.
Converting a v2.1 dataset to v3.0, step by step
This assumes a current LeRobot install, for example the environment from the MuJoCo and LeRobot install guide. According to the docs, v3.0 ships in lerobot >= 0.4.0; on the verification date, pyproject.toml on the main branch reports version 0.6.2.
- Check the version. Read
codebase_versioninmeta/info.json. Opening a v2.1 dataset with a current release raisesBackwardCompatibilityError, and the error message prints the conversion command shown below. - Upgrade v2.0 to v2.1 first. The v3.0 converter stops with a
ValueErrorunlesscodebase_versionis exactlyv2.1. The v2.0 → v2.1 script (lerobot.datasets.v21.convert_dataset_v20_to_v21) exists at the v0.3.3 tag but not on main, so install that LeRobot version in a separate environment and run it there first. - Free up disk space. Local conversion moves the original to
<name>_old, writes into a temporary<name>_v30folder, then renames it. Expect to need about twice the dataset size while it runs (original plus new shards; an estimate based on how the script works). - Run the conversion. For a Hub dataset,
--repo-idis enough. For a local-only dataset, add--rootand--push-to-hub=false.
# Convert a v2.1 dataset on the Hub (pushes to main and creates the v3.0 tag)
python -m lerobot.scripts.convert_dataset_v21_to_v30 --repo-id=<HF_USER>/<DATASET>
# Convert a local dataset only (--root is the folder that contains meta/, data/, videos/)
python -m lerobot.scripts.convert_dataset_v21_to_v30 \
--repo-id=<HF_USER>/<DATASET> \
--root=/path/to/<DATASET> \
--push-to-hub=false
# Set shard sizes and reconvert even if a v3.0 revision already exists
python -m lerobot.scripts.convert_dataset_v21_to_v30 \
--repo-id=<HF_USER>/<DATASET> \
--data-file-size-in-mb=100 --video-file-size-in-mb=200 \
--force-conversion
- Know what the push does. Without
--root, the script first checks whether av3.0revision already exists on the Hub; if it does, it downloads that and stops without converting. During the push it deletes the v2.1 file patterns on the target branch (--branch, main by default) and recreates thev3.0tag. If other people still use the dataset as v2.1, pushing to a separate branch with--branchfirst is the safer route.
Under the hood, the converter concatenates Parquet files in order, cuts at the size limit, and records each episode’s dataset_from_index and dataset_to_index from the running frame count. Videos are concatenated per camera in the same way, with from_timestamp and to_timestamp taken from the running playback time.
What to verify once conversion finishes
A success message is not proof. Confirm that the same data landed in the same order with these commands.
# Episode and frame counts plus file sizes (does not modify the dataset)
lerobot-edit-dataset \
--repo_id <HF_USER>/<DATASET> \
--operation.type info \
--operation.show_features true
# Replay an episode locally and check video against joint plots
lerobot-dataset-viz \
--repo-id <HF_USER>/<DATASET> \
--root /path/to/<DATASET> \
--mode local \
--episode-index 0
Check, in order: (1) total_episodes and total_frames match the pre-conversion info.json; (2) the first and last episodes show video that lines up in time with the joint plots; (3) mean and std in meta/stats.json are close to the old values. The last episode deserves its own look because an error in offset accumulation grows toward the end of the dataset. If the dataset is on the Hub, the browser-based LeRobot Dataset Visualizer described in the Using Dataset Tools docs plays all cameras in sync next to the joint charts.
Where v2-era tutorial code breaks
Tutorials and blog code written against the v2.1 layout fail at these points.
| v2-era pattern | What happens on v3.0 | Fix |
|---|---|---|
Iterating episodes with glob("data/*/episode_*.parquet") | Empty list, no files match | Iterate meta.episodes and slice with dataset_from_index to dataset_to_index |
Reading episodes.jsonl or tasks.jsonl directly | File-not-found error | Use meta.episodes and meta.tasks |
| Decoding an episode MP4 from frame 0 | Frames from other episodes come along | Start decoding at videos/<key>/from_timestamp |
Reading info["total_chunks"] | KeyError | Use the path templates and chunk_index from episode metadata |
Calling push_to_hub() right after LeRobotDataset.create() | Corrupt Parquet uploaded | Call dataset.finalize() after recording |
The official docs single out the last row. v3.0 writes Parquet incrementally and buffers metadata, so finalize() has to close the Parquet writers and write their footers before the files are valid. lerobot-record handles this for you, but it is easy to forget in a custom script that converts simulator output or existing logs.
The reverse direction also comes up. If a training framework still requires the v2 layout, the v3.0 dataset has to be converted back, and NVIDIA Isaac GR00T is that case. The procedure using the GR00T repository’s own script is in the data preparation step of the GR00T fine-tuning guide.
Fixing a dataset without re-recording it
When a few episodes are bad or the task string needs to change after conversion, use lerobot-edit-dataset. The operations registered in the script and described in the Using Dataset Tools docs are delete_episodes, split, merge, remove_feature, modify_tasks, convert_image_to_video, recompute_stats, reencode_videos and info.
# Create a new dataset without the bad episodes (original untouched)
lerobot-edit-dataset \
--repo_id <HF_USER>/<DATASET> \
--new_repo_id <HF_USER>/<DATASET>_clean \
--operation.type delete_episodes \
--operation.episode_indices "[0, 2, 5]"
# Train/validation split
lerobot-edit-dataset \
--repo_id <HF_USER>/<DATASET>_clean \
--operation.type split \
--operation.splits '{"train": 0.8, "val": 0.2}'
Without --new_repo_id the original is modified in place, so write the result under a new name, rerun the verification steps above, and only then swap it in. Per the docs, merge requires datasets with identical features, so align joint names order and camera keys before merging datasets that differ. Adding a feature is not in the CLI; it is only available through the Python API (lerobot.datasets.dataset_tools). Once the dataset is ready, the SmolVLA fine-tuning VRAM guide covers the GPU memory budget for the next step.