[!NOTE] 当前 GitHub 派生仓库为 JustinKe02/so101_lerobot, 仓库所有者为 JustinKe02。项目基于 Hugging Face LeRobot 开发,上游版权、许可证和引用信息保持不变。
LeRobot aims to provide models, datasets, and tools for real-world robotics in PyTorch. The goal is to lower the barrier to entry so that everyone can contribute to and benefit from shared datasets and pretrained models.
🤗 A hardware-agnostic, Python-native interface that standardizes control across diverse platforms, from low-cost arms (SO-100) to humanoids.
🤗 A standardized, scalable LeRobotDataset format (Parquet + MP4 or images) hosted on the Hugging Face Hub, enabling efficient storage, streaming and visualization of massive robotic datasets.
🤗 State-of-the-art policies that have been shown to transfer to the real-world ready for training and deployment.
🤗 Comprehensive support for the open-source ecosystem to democratize physical AI.
LeRobot can be installed directly from PyPI.
pip install lerobot
lerobot-info
[!IMPORTANT] For detailed installation guide, please see the Installation Documentation.
main 分支作为稳定入口,保留 SO-101 训练、标定和基础部署能力,主要包括:
较新的模型和推理框架在独立分支开发,避免实验代码直接影响 main 的稳定使用:
| 分支 | 定位 | 当前状态 |
|---|---|---|
main | 稳定的 SO-101 PI0.5、RTC 与 TensorRT 基础 | 稳定入口 |
act-infer | ACT 20k 检查点真机同步推理、控制频率与动作块卡顿分析 | 已完成两轮真机对比 |
pi05-vlash | 未来状态条件、temporal offset 与 VLASH 异步推理 | 已完成训练和真机对比 |
realtime-vla-v2 | RTC 训练前缀、全模型 Triton、延迟对齐队列和时间轴规划 | 当前主要实时推理分支 |
groot-n1.7-inference | GR00T N1.7 checkpoint 加载与 SO-101 rollout 接入 | 独立推理验证分支 |
本仓库保留了一套已经完成训练和两轮真机推理验证的 ACT 基线:
admin123/so101_test_data,40 个 episode,共 17,960 帧,30 FPS。Put the block in the bin,使用 top 和 wrist 两路 640 x 480 图像。chunk_size=100、n_action_steps=100、条件 VAE,约 5160 万参数。pretrained_path=null),仅使用 ImageNet 预训练
ResNet18 初始化视觉骨干。1e-5,weight decay 为 1e-4,
batch size 为 8。loss=0.119、l1_loss=0.105、kld_loss=0.001。outputs/train/act_so101_test_data_20k/checkpoints/020000/pretrained_model,
model.safetensors 约 207 MB,继续保存在本机,不提交到 Git。真机推理采用 lerobot-rollout 同步后端。第一轮每 10 步强制重规划,产生了明显的周期性卡顿;
第二轮改为 policy.n_action_steps=50 并移除强制重规划,最终
horizon_replans=0、clamp_replans=0。完整时序、延迟和动作块分析见
ACT 两轮真机推理日志报告。
realtime-vla-v2 分支已经完成基于 40 条回合数据的 PI0.5 RTC6 全量解冻训练:
0.009。freeze_vision_encoder=false、train_expert_only=false,视觉编码器和动作专家均参与训练。45-49 ms,PyTorch 约 136-138 ms,加速接近 3 倍。realtime-vla-v2 包含完整运行代码、推荐配置、中文报告和可审计机器日志。模型权重和原始轨迹
体积较大,继续保存在本机 outputs/ 或 model_assets/,不直接提交到 Git。
main 不包含 --inference.type=vlash,使用 VLASH 前请切换到 pi05-vlash。realtime-vla-v2。groot-n1.7-inference。相关文档:
LeRobot provides a unified Robot class interface that decouples control logic from hardware specifics. It supports a wide range of robots and teleoperation devices.
from lerobot.robots.myrobot import MyRobot
# Connect to a robot
robot = MyRobot(config=...)
robot.connect()
# Read observation and send action
obs = robot.get_observation()
action = model.select_action(obs)
robot.send_action(action)
Supported Hardware: SO100, LeKiwi, Koch, HopeJR, OMX, EarthRover, Reachy2, Gamepads, Keyboards, Phones, OpenARM, Unitree G1, reBot B601.
While these devices are natively integrated into the LeRobot codebase, the library is designed to be extensible. You can easily implement the Robot interface to utilize LeRobot's data collection, training, and visualization tools for your own custom robot.
For detailed hardware setup guides, see the Hardware Documentation.
To solve the data fragmentation problem in robotics, we utilize the LeRobotDataset format.
from lerobot.datasets.lerobot_dataset import LeRobotDataset
# Load a dataset from the Hub
dataset = LeRobotDataset("lerobot/aloha_mobile_cabinet")
# Access data (automatically handles video decoding)
episode_index=0
print(f"{dataset[episode_index]['action'].shape=}\n")
Learn more about it in the LeRobotDataset Documentation
LeRobot implements state-of-the-art policies in pure PyTorch, covering Imitation Learning, Reinforcement Learning, Vision-Language-Action (VLA) models, World Models, and Reward Models, with more coming soon. It also provides you with the tools to instrument and inspect your training process.
Training a policy is as simple as running a script configuration:
lerobot-train \
--policy.type=act \
--dataset.repo_id=lerobot/aloha_mobile_cabinet
| Category | Models |
|---|---|
| Imitation Learning | ACT, Diffusion, VQ-BeT, Multitask DiT Policy |
| Reinforcement Learning | HIL-SERL, TDMPC & QC-FQL (coming soon) |
| VLAs Models | Pi0, Pi0Fast, Pi0.5, GR00T N1.7, SmolVLA, XVLA, EO-1, MolmoAct2, WALL-OSS, EVO1 |
| World Models | VLA-JEPA, LingBot-VA, FastWAM |
| Reward Models | SARM, TOPReward, Robometer |
Similarly to the hardware, you can easily implement your own policy & leverage LeRobot's data collection, training, and visualization tools, and share your model to the HF Hub
For detailed policy setup guides, see the Policy Documentation. For GPU/RAM requirements and expected training time per policy, see the Compute Hardware Guide.
Evaluate your policies in simulation or on real hardware using the unified evaluation script. LeRobot supports standard benchmarks like LIBERO, MetaWorld and more to come.
# Evaluate a policy on the LIBERO benchmark
lerobot-eval \
--policy.path=lerobot/pi0_libero_finetuned \
--env.type=libero \
--env.task=libero_object \
--eval.n_episodes=10
Learn how to implement your own simulation environment or benchmark and distribute it from the HF Hub by following the EnvHub Documentation
LeRobot server to discuss with the community.If you use LeRobot in your project, please cite the GitHub repository to acknowledge the ongoing development and contributors:
@misc{cadene2024lerobot,
author = {Cadene, Remi and Alibert, Simon and Soare, Alexander and Gallouedec, Quentin and Zouitine, Adil and Palma, Steven and Kooijmans, Pepijn and Aractingi, Michel and Shukor, Mustafa and Aubakirova, Dana and Russi, Martino and Capuano, Francesco and Pascal, Caroline and Choghari, Jade and Meftah, Khalil and Ellerbach, Maxime and Moss, Jess and Wolf, Thomas},
title = {LeRobot: State-of-the-art Machine Learning for Real-World Robotics in Pytorch},
howpublished = "\url{https://github.com/huggingface/lerobot}",
year = {2024}
}
If you are referencing our research or the academic paper, please also cite our ICLR publication:
@inproceedings{cadenelerobot,
title={LeRobot: An Open-Source Library for End-to-End Robot Learning},
author={Cadene, Remi and Alibert, Simon and Capuano, Francesco and Aractingi, Michel and Zouitine, Adil and Kooijmans, Pepijn and Choghari, Jade and Russi, Martino and Pascal, Caroline and Palma, Steven and Shukor, Mustafa and Moss, Jess and Soare, Alexander and Aubakirova, Dana and Lhoest, Quentin and Gallou\'edec, Quentin and Wolf, Thomas},
booktitle={The Fourteenth International Conference on Learning Representations},
year={2026},
url={https://arxiv.org/abs/2602.22818}
}
We welcome contributions from everyone in the community! To get started, please read our CONTRIBUTING.md guide. Whether you're adding a new feature, improving documentation, or fixing a bug, your help and feedback are invaluable. We're incredibly excited about the future of open-source robotics and can't wait to work with you on what's next—thank you for your support!
6 commits
Python
98.9%
Shell
1.1%
[!NOTE] 当前 GitHub 派生仓库为 JustinKe02/so101_lerobot, 仓库所有者为 JustinKe02。项目基于 Hugging Face LeRobot 开发,上游版权、许可证和引用信息保持不变。
LeRobot aims to provide models, datasets, and tools for real-world robotics in PyTorch. The goal is to lower the barrier to entry so that everyone can contribute to and benefit from shared datasets and pretrained models.
🤗 A hardware-agnostic, Python-native interface that standardizes control across diverse platforms, from low-cost arms (SO-100) to humanoids.
🤗 A standardized, scalable LeRobotDataset format (Parquet + MP4 or images) hosted on the Hugging Face Hub, enabling efficient storage, streaming and visualization of massive robotic datasets.
🤗 State-of-the-art policies that have been shown to transfer to the real-world ready for training and deployment.
🤗 Comprehensive support for the open-source ecosystem to democratize physical AI.
LeRobot can be installed directly from PyPI.
pip install lerobot
lerobot-info
[!IMPORTANT] For detailed installation guide, please see the Installation Documentation.
main 分支作为稳定入口,保留 SO-101 训练、标定和基础部署能力,主要包括:
较新的模型和推理框架在独立分支开发,避免实验代码直接影响 main 的稳定使用:
| 分支 | 定位 | 当前状态 |
|---|---|---|
main | 稳定的 SO-101 PI0.5、RTC 与 TensorRT 基础 | 稳定入口 |
act-infer | ACT 20k 检查点真机同步推理、控制频率与动作块卡顿分析 | 已完成两轮真机对比 |
pi05-vlash | 未来状态条件、temporal offset 与 VLASH 异步推理 | 已完成训练和真机对比 |
realtime-vla-v2 | RTC 训练前缀、全模型 Triton、延迟对齐队列和时间轴规划 | 当前主要实时推理分支 |
groot-n1.7-inference | GR00T N1.7 checkpoint 加载与 SO-101 rollout 接入 | 独立推理验证分支 |
本仓库保留了一套已经完成训练和两轮真机推理验证的 ACT 基线:
admin123/so101_test_data,40 个 episode,共 17,960 帧,30 FPS。Put the block in the bin,使用 top 和 wrist 两路 640 x 480 图像。chunk_size=100、n_action_steps=100、条件 VAE,约 5160 万参数。pretrained_path=null),仅使用 ImageNet 预训练
ResNet18 初始化视觉骨干。1e-5,weight decay 为 1e-4,
batch size 为 8。loss=0.119、l1_loss=0.105、kld_loss=0.001。outputs/train/act_so101_test_data_20k/checkpoints/020000/pretrained_model,
model.safetensors 约 207 MB,继续保存在本机,不提交到 Git。真机推理采用 lerobot-rollout 同步后端。第一轮每 10 步强制重规划,产生了明显的周期性卡顿;
第二轮改为 policy.n_action_steps=50 并移除强制重规划,最终
horizon_replans=0、clamp_replans=0。完整时序、延迟和动作块分析见
ACT 两轮真机推理日志报告。
realtime-vla-v2 分支已经完成基于 40 条回合数据的 PI0.5 RTC6 全量解冻训练:
0.009。freeze_vision_encoder=false、train_expert_only=false,视觉编码器和动作专家均参与训练。45-49 ms,PyTorch 约 136-138 ms,加速接近 3 倍。realtime-vla-v2 包含完整运行代码、推荐配置、中文报告和可审计机器日志。模型权重和原始轨迹
体积较大,继续保存在本机 outputs/ 或 model_assets/,不直接提交到 Git。
main 不包含 --inference.type=vlash,使用 VLASH 前请切换到 pi05-vlash。realtime-vla-v2。groot-n1.7-inference。相关文档:
LeRobot provides a unified Robot class interface that decouples control logic from hardware specifics. It supports a wide range of robots and teleoperation devices.
from lerobot.robots.myrobot import MyRobot
# Connect to a robot
robot = MyRobot(config=...)
robot.connect()
# Read observation and send action
obs = robot.get_observation()
action = model.select_action(obs)
robot.send_action(action)
Supported Hardware: SO100, LeKiwi, Koch, HopeJR, OMX, EarthRover, Reachy2, Gamepads, Keyboards, Phones, OpenARM, Unitree G1, reBot B601.
While these devices are natively integrated into the LeRobot codebase, the library is designed to be extensible. You can easily implement the Robot interface to utilize LeRobot's data collection, training, and visualization tools for your own custom robot.
For detailed hardware setup guides, see the Hardware Documentation.
To solve the data fragmentation problem in robotics, we utilize the LeRobotDataset format.
from lerobot.datasets.lerobot_dataset import LeRobotDataset
# Load a dataset from the Hub
dataset = LeRobotDataset("lerobot/aloha_mobile_cabinet")
# Access data (automatically handles video decoding)
episode_index=0
print(f"{dataset[episode_index]['action'].shape=}\n")
Learn more about it in the LeRobotDataset Documentation
LeRobot implements state-of-the-art policies in pure PyTorch, covering Imitation Learning, Reinforcement Learning, Vision-Language-Action (VLA) models, World Models, and Reward Models, with more coming soon. It also provides you with the tools to instrument and inspect your training process.
Training a policy is as simple as running a script configuration:
lerobot-train \
--policy.type=act \
--dataset.repo_id=lerobot/aloha_mobile_cabinet
| Category | Models |
|---|---|
| Imitation Learning | ACT, Diffusion, VQ-BeT, Multitask DiT Policy |
| Reinforcement Learning | HIL-SERL, TDMPC & QC-FQL (coming soon) |
| VLAs Models | Pi0, Pi0Fast, Pi0.5, GR00T N1.7, SmolVLA, XVLA, EO-1, MolmoAct2, WALL-OSS, EVO1 |
| World Models | VLA-JEPA, LingBot-VA, FastWAM |
| Reward Models | SARM, TOPReward, Robometer |
Similarly to the hardware, you can easily implement your own policy & leverage LeRobot's data collection, training, and visualization tools, and share your model to the HF Hub
For detailed policy setup guides, see the Policy Documentation. For GPU/RAM requirements and expected training time per policy, see the Compute Hardware Guide.
Evaluate your policies in simulation or on real hardware using the unified evaluation script. LeRobot supports standard benchmarks like LIBERO, MetaWorld and more to come.
# Evaluate a policy on the LIBERO benchmark
lerobot-eval \
--policy.path=lerobot/pi0_libero_finetuned \
--env.type=libero \
--env.task=libero_object \
--eval.n_episodes=10
Learn how to implement your own simulation environment or benchmark and distribute it from the HF Hub by following the EnvHub Documentation
LeRobot server to discuss with the community.If you use LeRobot in your project, please cite the GitHub repository to acknowledge the ongoing development and contributors:
@misc{cadene2024lerobot,
author = {Cadene, Remi and Alibert, Simon and Soare, Alexander and Gallouedec, Quentin and Zouitine, Adil and Palma, Steven and Kooijmans, Pepijn and Aractingi, Michel and Shukor, Mustafa and Aubakirova, Dana and Russi, Martino and Capuano, Francesco and Pascal, Caroline and Choghari, Jade and Meftah, Khalil and Ellerbach, Maxime and Moss, Jess and Wolf, Thomas},
title = {LeRobot: State-of-the-art Machine Learning for Real-World Robotics in Pytorch},
howpublished = "\url{https://github.com/huggingface/lerobot}",
year = {2024}
}
If you are referencing our research or the academic paper, please also cite our ICLR publication:
@inproceedings{cadenelerobot,
title={LeRobot: An Open-Source Library for End-to-End Robot Learning},
author={Cadene, Remi and Alibert, Simon and Capuano, Francesco and Aractingi, Michel and Zouitine, Adil and Kooijmans, Pepijn and Choghari, Jade and Russi, Martino and Pascal, Caroline and Palma, Steven and Shukor, Mustafa and Moss, Jess and Soare, Alexander and Aubakirova, Dana and Lhoest, Quentin and Gallou\'edec, Quentin and Wolf, Thomas},
booktitle={The Fourteenth International Conference on Learning Representations},
year={2026},
url={https://arxiv.org/abs/2602.22818}
}
We welcome contributions from everyone in the community! To get started, please read our CONTRIBUTING.md guide. Whether you're adding a new feature, improving documentation, or fixing a bug, your help and feedback are invaluable. We're incredibly excited about the future of open-source robotics and can't wait to work with you on what's next—thank you for your support!
6 commits
Python
98.9%
Shell
1.1%