LeRobot is a state-of-the-art open-source Python library for real-world robotics using PyTorch, developed by Hugging Face. It provides tools for creating robot environments, loading pre-trained policies, and managing robotics datasets. It is currently at version 0.5.1 and is under active development, with new releases often including significant updates and breaking changes.
pip install lerobotVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to load a pre-trained robotics policy from the Hugging Face Hub and use it to sample actions in a dummy environment. It showcases the core `load_policy` and `RobotEnvFactory` components.
Ensure `DatasetFactory` is called with `DatasetFactory(root_dir='/path/to/data')`. For instance, `DatasetFactory("hf_dataset_id", root_dir="./data")`.Replace `hf_hub_id='your/model'` with `repo_id='your/model'` when loading policies or datasets from the Hugging Face Hub.
Update calls from `action = policy.sample()` to `action = policy.sample_actions(obs)`.
Ensure your Python environment is `3.12` or newer, and PyTorch is `2.1` or newer. Use `pip install torch` to update PyTorch if needed.
No dependency data recorded yet.