Navigate:
LeRobot
~$LEROB0.9%

LeRobot: AI models and datasets for robotics

PyTorch library for robot imitation learning and sim-to-real transfer.

LIVE RANKINGS • 11:46 AM • STEADY
TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100
OVERALL
#70
27
AI & ML
#36
9
30 DAY RANKING TREND
ovr#70
·AI#36
STARS
21.8K
FORKS
3.8K
7D STARS
+187
7D FORKS
+73
Tags:
See Repo:
Share:

Learn more about LeRobot

LeRobot is a PyTorch-based library for robot learning that provides pre-trained models and datasets for imitation learning and sim-to-real transfer applications. The framework implements policy learning architectures such as diffusion models that accept multi-modal observations including image and state data, applying configurable normalization strategies like mean-std for vision inputs and min-max scaling for state vectors. Training occurs through standard PyTorch optimization loops where batched data from HuggingFace-hosted robot demonstration datasets flows through the policy network to compute loss values for gradient descent updates. The library supports distributed data loading with configurable worker processes and enables GPU acceleration by moving tensors and model parameters to CUDA devices. Trained policies can be serialized and stored using the pretrained model format for subsequent deployment or fine-tuning.

LeRobot

1

Multiple policy architectures

Implements several learning approaches including action chunking transformers, model predictive control, and diffusion policies, allowing users to select methods suited to different manipulation tasks.

2

Hardware integration focus

Provides documentation and tutorials for building and training specific robot platforms like SO-101 and HopeJR, with emphasis on affordable, accessible hardware designs.

3

Centralized model and dataset hub

Hosts pretrained models and demonstration datasets on Hugging Face, enabling transfer learning and reducing the need for users to collect their own training data from scratch.


from lerobot.common.policies.diffusion.modeling_diffusion import DiffusionPolicy
import torch

# Load a pretrained policy model
policy = DiffusionPolicy.from_pretrained("lerobot/diffusion_pusht")
policy.eval()

# Move model to GPU if available
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
policy.to(device)

vv0.4.3

Add support for new robots (Unitree G1, Earth Rover Mini Plus) and introduce X-VLA policy with third-party registration.

  • Add Unitree G1 robot support
  • Remove the data sampler because data access to dataset subsets has been fixed
  • Move hub artifacts to /mnt to avoid runners' 'No space left on device'
  • Fix pi05 forward compile
vv0.4.2

Performance improvements for dataset encoding, bug fixes for episode filtering, and real-time chunking support.

  • Fix episode filtering bug when requesting a subset of the episodes in a dataset
  • Real Time Chunking for Pi0, Smolvla, Pi0.5
  • Add envs pre-post processor
  • Fixes in port droid scripts
vv0.4.1

Bug fixes, improved installation documentation, and performance optimizations for dataset handling and training.

  • Update installation instructions for 0.4.0
  • Improve groot and libero installation instructions
  • Fix videokey typo in updatevideoinfo
  • Fix mapping edge cases in training

See how people are using LeRobot

Loading tweets...


[ EXPLORE MORE ]

Related Repositories

Discover similar tools and frameworks used by developers