Robotics
LeRobot
Safetensors

config.json not found on the HuggingFace Hub in lerobot/pi0

#20
by hb-zzy - opened

this is my code:
from lerobot.common.policies.pi0.modeling_pi0 import PI0Policy

try:
policy = PI0Policy.from_pretrained("lerobot/pi0")
print("✅ success!")
except Exception as e:
print(f"❌ fail: {e}")
exit()

When I run this code, the following error occurs:
❌ fail: config.json not found on the HuggingFace Hub in lerobot/pi0
how can i fix this or load local model?

LeRobot org

hey @hb-zzy 👋
Thank you for the issue! Closing this as your example is not reproducible in my setup. Using:

from lerobot.common.policies.pi0.modeling_pi0 import PI0Policy

try:
    policy = PI0Policy.from_pretrained("lerobot/pi0")
    print("✅ success!")
except Exception as e:
    print(f"❌ fail: {e}")
    exit()

Results in success!

Screenshot 2025-06-12 at 18.09.52.png

fracapuano changed discussion status to closed

Sign up or log in to comment