LeRobot: Hugging Face's open robotics library, explained
What Hugging Face LeRobot is: the LeRobotDataset format, its policies (ACT, π0, SmolVLA, GR00T), SO-101 hardware, and how to record, train and evaluate.
LeRobot is Hugging Face's open-source robotics library. In its own words, it aims to provide "models, datasets, and tools for real-world robotics in PyTorch": a standard dataset format, ready-to-train policies from ACT to π0 and SmolVLA, drivers for low-cost robot arms like the SO-101, and command-line tools that take you from teleoperating a robot to running a trained policy on it.
This guide covers what's inside LeRobot, how its dataset format works, which robots and policies it supports, the record, train and evaluate loop, and where SmolVLA fits in. Facts are from the LeRobot GitHub repo and the LeRobot docs as of December 2026.
What is LeRobot?
LeRobot is a Python library, released under the Apache-2.0 license, that does three jobs:
- Data. It defines
LeRobotDataset, a format for robot recordings that lives on the Hugging Face Hub. Anyone can publish a dataset, and anyone can train on it with one flag. - Policies. It ships PyTorch implementations of imitation learning policies, reinforcement learning methods and vision-language-action (VLA) models, all trained with the same script.
- Hardware. It has drivers, calibration and teleoperation for a set of affordable robots, so you can collect your own data and run your own policies.
You install it with pip:
pip install lerobot
lerobot-info
Extras add what you need for a given job, for example 'lerobot[training]' for training or 'lerobot[core_scripts,feetech]' to record with an SO-101 arm.
The LeRobot dataset format
A LeRobot dataset is a set of robot episodes stored as Parquet files for low-dimensional signals (joint states, actions, timestamps) and MP4 video for camera streams, plus metadata that ties them together. The current version is LeRobotDataset v3.0, included in lerobot >= 0.4.0.
The v3.0 docs describe the layout:
| Path | What it holds |
|---|---|
meta/info.json |
Schema, FPS, codebase version, path templates |
meta/stats.json |
Mean, std, min and max per feature, for normalization |
meta/tasks.parquet |
Natural-language tasks mapped to integer IDs |
meta/episodes/ |
Per-episode lengths, tasks and offsets |
data/ |
Frame-by-frame Parquet shards |
videos/ |
MP4 shards per camera |
The big change from v2.1 is that v3 stores many episodes per file. Version 2 used one Parquet and one MP4 file per episode. Version 3 concatenates episodes into larger shards and finds episode boundaries through metadata, which means fewer files and faster loading at scale. A converter (lerobot.scripts.convert_dataset_v21_to_v30) upgrades older datasets.
Loading one in Python returns dictionaries of PyTorch tensors that plug into a standard DataLoader:
from lerobot.datasets import LeRobotDataset
dataset = LeRobotDataset("lerobot/svla_so101_pickplace")
sample = dataset[100] # observation.state, action, observation.images.*, timestamp
You can also stream a dataset from the Hub without downloading it first, with StreamingLeRobotDataset in Python or --dataset.streaming=true on the training command. Datasets recorded with LeRobot are tagged LeRobot on the Hub, so you can browse what the community has published.
Other projects use the format too. Physical Intelligence's openpi trains π0 and π0.5 on LeRobot datasets, and ships a script that converts LIBERO data into one.
Policies in LeRobot
The README groups the policies by type. As of December 2026 the list includes:
| Type | Policies |
|---|---|
| Imitation learning | ACT, Diffusion, VQ-BeT, Multitask DiT Policy |
| Reinforcement learning | HIL-SERL, TDMPC |
| VLA models | π0, π0-FAST, π0.5, GR00T N1.7, SmolVLA, X-VLA, MolmoAct 2, LingBot-VLA 2.0, and more |
| World models | VLA-JEPA, LingBot-VA, Cosmos3, and more |
| Reward models | SARM, TOPReward, Robometer |
A few of these are worth knowing by name:
- ACT (Action Chunking with Transformers) came from the ALOHA project. It predicts a chunk of future actions with a transformer, has no language input, and is the policy the LeRobot tutorial trains first.
- Diffusion Policy (Chi et al.) generates actions by denoising. Like ACT, it is a single-task baseline without language.
- π0, π0-FAST and π0.5 are Physical Intelligence's VLAs. LeRobot's implementation is adapted from openpi, and base weights such as
lerobot/pi0_baseare on the Hub. See our π0 guide for the details. - SmolVLA is Hugging Face's own small VLA, covered below.
- GR00T N1.7 is NVIDIA's open VLA for humanoids.
The useful part is that they all share one interface. Switching from ACT to SmolVLA on the same dataset is a change to --policy.type or --policy.path. For a broader comparison of the VLAs, read VLA models explained.
Supported robots: SO-101, Koch, LeKiwi and more
LeRobot's README lists SO101, OpenARM, LeKiwi, Unitree G1, reBot B601, Koch, HopeJR, OMX, EarthRover and Reachy2, plus teleoperation devices such as gamepads, keyboards and phones. Third-party packages can add robots, teleoperators and cameras as plugins.
The three you'll see most in tutorials:
- SO-101. The docs call it LeRobot's "flagship robot". It is the next version of the SO-100 arm, designed by The Robot Studio in collaboration with Hugging Face. It comes as a pair: a follower arm that does the task and a leader arm you move by hand to teleoperate it. The follower uses six Feetech STS3215 servos with 1/345 gearing. The leader mixes gear ratios (1/147, 1/191 and 1/345) so it holds its own weight but moves easily. The SO-ARM100 repo lists about $122 in parts for one follower arm and about $230 for a leader and follower set (US pricing), and says the SO-101 has improved wiring, is easier to assemble (no gear removal) and uses updated motors for the leader arm. You 3D-print the parts yourself or buy them printed.
- Koch v1.1. A low-cost leader and follower arm pair that uses Dynamixel motors (
pip install 'lerobot[dynamixel]'). Build instructions are in jess-moss/koch-v1-1. - LeKiwi. A mobile base with an SO-100 or SO-101 arm on top, usually run from a Raspberry Pi on the robot while a laptop drives it over the network. You teleoperate the arm with a leader arm and drive the base with the keyboard. Parts and assembly are in SIGRobotics-UIUC/LeKiwi.
Every robot goes through the same setup: find the USB port with lerobot-find-port, assign motor IDs with lerobot-setup-motors, then run lerobot-calibrate. Calibration matters because it lets a policy trained on one arm work on another arm of the same model.
How to record, train and evaluate with LeRobot
The imitation learning tutorial walks through the full loop. Here it is for an SO-101.
1. Teleoperate to check everything works:
lerobot-teleoperate \
--robot.type=so101_follower --robot.port=/dev/ttyACM0 --robot.id=my_follower_arm \
--teleop.type=so101_leader --teleop.port=/dev/ttyACM1 --teleop.id=my_leader_arm
2. Record a dataset. lerobot-record takes the same robot and teleop flags, plus cameras and dataset settings, and pushes the result to the Hub:
lerobot-record \
--robot.type=so101_follower --robot.port=/dev/ttyACM0 --robot.id=my_follower_arm \
--robot.cameras="{ wrist: {type: opencv, index_or_path: 0, width: 640, height: 480, fps: 30}, top: {type: opencv, index_or_path: 1, width: 640, height: 480, fps: 30}}" \
--teleop.type=so101_leader --teleop.port=/dev/ttyACM1 --teleop.id=my_leader_arm \
--dataset.repo_id=${HF_USER}/record-test \
--dataset.num_episodes=50 \
--dataset.single_task="Grab the black cube"
The docs suggest at least 50 episodes to start, with 10 per object location, fixed cameras and consistent grasps. A good rule from the docs: you should be able to do the task yourself by looking only at the camera images.
3. Train a policy. ACT is the default starting point:
lerobot-train \
--dataset.repo_id=${HF_USER}/record-test_YYYYMMDD_HHMMSS \
--policy.type=act \
--output_dir=outputs/train/act_so101_test \
--job_name=act_so101_test \
--policy.device=cuda \
--policy.repo_id=${HF_USER}/my_policy
The docs say training "should take several hours". If you don't have a GPU, --job.target=a10g-small runs the same command on Hugging Face Jobs.
4. Run and evaluate it on the robot with lerobot-rollout, which loads the policy and drives the arm. Strategies include base for a quick autonomous run, sentry for continuous recording, and dagger for human-in-the-loop data collection.
For simulation, lerobot-eval runs a policy on benchmarks such as LIBERO and MetaWorld (see our LIBERO benchmark guide for its suites and published scores):
lerobot-eval \
--policy.path=lerobot/pi0_libero_finetuned_v044 \
--env.type=libero \
--env.task=libero_object \
--eval.n_episodes=10
How SmolVLA fits in
SmolVLA is the VLA Hugging Face built for LeRobot users. It was released on June 3, 2025 with 450M parameters. According to the SmolVLA blog post, it pairs a SmolVLM2 vision-language backbone with an action expert of about 100M parameters that generates action chunks with flow matching.
What makes it a LeRobot model is the data: it was pretrained on 487 curated LeRobot community datasets, about 10 million frames. On the team's SO-100 tasks, pretraining on that community data raised success from 51.7% to 78.3%. The paper says SmolVLA can be trained on a single GPU and deployed on consumer GPUs or even CPUs, and reports performance comparable to VLAs about 10 times larger.
SmolVLA also introduced asynchronous inference in LeRobot: the robot keeps executing the current action chunk while the next one is computed. The blog reports tasks finishing about 30% faster than with synchronous inference at similar success.
It is a base model, so you fine-tune it on your own data. The SmolVLA docs recommend about 50 episodes and say 20k steps take roughly 4 hours on a single A100:
lerobot-train \
--policy.path=lerobot/smolvla_base \
--dataset.repo_id=${HF_USER}/my_dataset \
--batch_size=64 \
--steps=20000
If your dataset's camera names differ from what smolvla_base expects (camera1, camera2, camera3), add a --rename_map as the docs show.
LeRobot models on OpenRobotics
Several LeRobot policies are live on OpenRobotics behind one endpoint, POST /v1/act, so you can compare them without setting up a Python environment for each. As of December 2026 these include SmolVLA, π0, π0.5, π0-FAST and X-VLA. The checkpoints we serve for these are fine-tuned on LIBERO, a simulated benchmark, so they're best for testing and comparison. For your own robot, fine-tune with LeRobot first. ACT and Diffusion Policy are not served: they are per-task architectures with no public general-purpose checkpoint, so you train them for your own setup. The full list is on the models page.
FAQ
What is LeRobot?
LeRobot is Hugging Face's open-source robotics library for PyTorch, released under the Apache-2.0 license. It does three jobs: it defines the LeRobotDataset format on the Hugging Face Hub, ships policies from ACT and Diffusion Policy to VLAs like π0 and SmolVLA, and includes drivers, calibration and teleoperation for affordable robots such as the SO-101.
What is a LeRobot dataset?
A LeRobot dataset is a set of robot episodes stored as Parquet files for joint states, actions and timestamps, and MP4 video for camera streams, plus metadata that ties them together. The current version, LeRobotDataset v3.0, stores many episodes per file, and datasets can be streamed from the Hub without downloading them first.
What is the LeRobot SO-101?
The SO-101 is LeRobot's flagship low-cost robot arm, the next version of the SO-100, designed by The Robot Studio with Hugging Face. It comes as a leader arm you move by hand and a follower arm that copies it, each driven by Feetech STS3215 servos. The SO-ARM100 repo lists about $230 in parts for a leader and follower set (US pricing).
Is there a LeRobot tutorial for beginners?
Yes. The imitation learning tutorial in the LeRobot docs walks through the full loop on an SO-101: teleoperate, record at least 50 episodes with lerobot-record, train ACT with lerobot-train, and run the policy on the robot with lerobot-rollout.
Can I try LeRobot policies without a GPU?
SmolVLA, π0, π0.5, π0-FAST and X-VLA are live on OpenRobotics behind one endpoint, POST /v1/act, so you can call them without setting up a Python environment or a GPU. The served checkpoints are fine-tuned on LIBERO; for your own robot, fine-tune with LeRobot first.
Try it
Send SmolVLA one observation and an instruction, and get back an action chunk:
curl https://api.openrobotics.dev/v1/act \
-H "Authorization: Bearer $OPENROBOTICS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "huggingface/smolvla",
"instruction": "put the black bowl on the plate",
"observation": { "image": "<base64 JPEG>", "state": [0.12, -0.48, 0.33, 0, 1.57, 0, 0.04, 0.04] },
"action_horizon": 50
}'
The response has an actions array with one row per time step. How to run a VLA model with one API call explains the loop. To start, create an API key.
Try SmolVLA in one API call
VLAs, world models, vision encoders and perception models behind one key and one request format. No GPUs to manage, priced per call.