Quick Start
Push Policies to Hub
From CLI
From Python
- Creates the repo if it doesn’t exist
- Uploads all files in the policy directory
- Returns the HuggingFace Hub URL
What Gets Uploaded
All files in the policy directory:Load Policies from Hub
Deploy Directly
The simplest way - deploy straight from Hub:Load for Inspection
Load without deploying:Inspect Without Loading Weights
Quickly check metadata without downloading model weights:Push Datasets to Hub
From Collection
Push datasets during collection:Push Existing Datasets
push() method:
Pull Datasets from Hub
Download for Training
Pull with Python API
Use in LeRobot Training
LeRobot can load datasets directly from Hub:Repository Structure
Policy Repos
A policy repo on HuggingFace Hub:Dataset Repos
A dataset repo on HuggingFace Hub:Model Cards
Add a README.md to your policy directory before pushing:Training Details
- Architecture: ACT
- Episodes: 50
- Training steps: 50,000
- Success rate: 85%
Citation
Versioning and Revisions
Use HuggingFace’s revision system for versioning:Create Tags
Caching and Offline Use
HuggingFace automatically caches downloaded models:~/.cache/huggingface/hub/
Clear Cache
Community Models
Explore community-shared models:- Browse: huggingface.co/models?other=rfx
- Filter by robot type:
robot:so101,robot:go2 - Filter by task:
task:pick-place,task:walking
Example Community Models
Best Practices
Meaningful Names
Meaningful Names
Use descriptive repo names:
{robot}-{task}-{version} (e.g., so101-pick-v1)Add Model Cards
Add Model Cards
Include a README.md with training details, success rates, and usage instructions.
Version Your Models
Version Your Models
Use git tags for versions:
v1.0.0, v2.0.0. Never delete old versions.Bundle Robot Config
Bundle Robot Config
Always save policies with
robot_config=... for zero-config deployment.Tag Appropriately
Tag Appropriately
Add tags like
rfx, robotics, robot type, and task type for discoverability.Low-Level API
For advanced use cases, use HuggingFace Hub’s API directly:Next Steps
Deploy Policy
Deploy policies from HuggingFace Hub to real hardware
Train Policy
Train policies using datasets from Hub
