lerobot
🤗 LeRobot: State-of-the-art Machine Learning for Real-World Robotics in Pytorch
What it is and what it does
LeRobot is a PyTorch-native robotics framework that standardizes control, data, and training across diverse robot hardware and policy types. It provides a unified Robot class interface that abstracts hardware specifics (supporting platforms from SO-100 arms to humanoids like Unitree G1), a standardized LeRobotDataset format (Parquet + video) hosted on Hugging Face Hub for efficient dataset management, and implementations of state-of-the-art policies spanning imitation learning (ACT, Diffusion, VQ-BeT), reinforcement learning (HIL-SERL, TDMPC), vision-language-action models (Pi0, GR00T, SmolVLA), world models, and reward models.
The framework is designed to lower barriers to entry for robotics research and deployment: you can load pretrained policies, train on standardized datasets with a single command, evaluate on benchmarks like LIBERO and MetaWorld, and extend it with custom hardware or policies by implementing the provided interfaces. It integrates tightly with the Hugging Face ecosystem for model and dataset sharing, making it practical for teams building real-world robotic systems or contributing to shared research infrastructure.
Use it for:
- Train imitation learning policies on collected robot teleoperation data and deploy them to real hardware for manipulation tasks.
- Load and fine-tune pretrained vision-language-action models for new robot platforms without retraining from scratch.
- Standardize data collection and storage across multiple robot instances using the LeRobotDataset format for reproducible research.
- Evaluate robot policies in simulation (LIBERO, MetaWorld) before deploying to physical hardware.
- Implement and share custom robot hardware drivers by extending the Robot interface and leveraging LeRobot's training and evaluation pipeline.
- Benchmark reinforcement learning policies (HIL-SERL, TDMPC) on standardized robotics tasks across different hardware platforms.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
LeRobot provides a unified PyTorch framework for training, deploying, and managing robotic policies and datasets across diverse hardware platforms, from low-cost arms to humanoids.
Yes, if you are building or researching real-world robotics systems. LeRobot is actively maintained, has no known vulnerabilities, and provides a mature ecosystem for policy training and hardware integration. The Apache-2.0 license is permissive for commercial use. Install friction is low and the framework is designed to be extensible. Main consideration: it requires Python 3.12+ and substantial ML dependencies (torch, torchvision); ensure your development environment and target hardware can support them.
Install
lerobot on PyPI
pip
pip install lerobotuv
uv add lerobotpoetry
poetry add lerobotInstalling lerobot
Before you install
Low friction installation as a pure Python wheel. Active maintenance with recent releases; 16 runtime dependencies including torch, torchvision, and huggingface-hub are substantial but standard for ML robotics work. Requires Python 3.12+.
License in practice
Apache-2.0 permissive license allows commercial and private use with attribution. No copyleft restrictions; you can integrate into proprietary robotics systems.
Quickstart
pip install lerobot
from lerobot.datasets.lerobot_dataset import LeRobotDataset
dataset = LeRobotDataset("lerobot/aloha_mobile_cabinet")
print(dataset[0]['action'].shape)
Requires Python 3.12 or later; torch and torchvision installation may require system-level dependencies or GPU drivers depending on your hardware target.
Verify before relying
- Actual GPU/CPU memory requirements for training different policy types (ACT, Diffusion, VLAs, etc.)
- Whether custom robot implementations require C++ extensions or are pure Python
- Real-world transfer success rates for the listed policy types on unseen hardware
- Performance overhead of the standardized Robot interface vs. direct hardware APIs
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.12) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 16 — torch, torchvision, numpy, opencv-python-headless, Pillow, einops, draccus, huggingface-hub, requests, gymnasium, safetensors, packaging, termcolor, tqdm, cmake, setuptools |
| Maintenance | actively maintained — 11 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 287,058/month — #8,036 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: lerobot-0.6.1-py3-none-any.whl
Keywords: lerobot, huggingface, robotics, machine learning, artificial intelligence
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
robosuiterobosuite is a MuJoCo-powered simulation…
unclear · top 15,000 on PyPI
rsl-rl-libRSL-RL is a GPU-accelerated reinforcement…
permissive · top 15,000 on PyPI
mjlabmjlab provides a GPU-accelerated reinforcement…
permissive · top 15,000 on PyPI
torchrlTorchRL is a PyTorch-native toolkit for…
unclear · top 5,000 on PyPI
trlTRL provides trainer classes for post-training…
permissive · top 5,000 on PyPI
torchtitantorchtitan is a PyTorch-native platform for…
permissive · top 15,000 on PyPI
unslothUnsloth accelerates training and fine-tuning of…
permissive · top 5,000 on PyPI
lightningLightning is a framework that organizes PyTorch…
permissive · top 5,000 on PyPI