Index of every page on this site: llms.txt
All skills
Run it yourself

Hugging Face LeRobot end to end: install, hardware bring-up, dataset recording, training, and deploying robot learning policies. Use this skill when the user mentions LeRobot, lerobot-record, lerobot-train, lerobot-rollout, lerobot-teleoperate, lerobot-calibrate, lerobot-setup-motors, lerobot-find-port, lerobot-find-cameras, lerobot-eval, lerobot-edit-dataset, LeRobotDataset, SO-100, SO-101, SO-ARM100, Koch, LeKiwi, OMX, OpenArm, Feetech STS3215 servos, leader/follower teleoperation, calibration files, ACT, Diffusion Policy, SmolVLA, pi0/pi0.5, GR00T or X-VLA fine-tuning in LeRobot, robot datasets on the Hugging Face Hub, dataset v2.1 to v3.0 conversion, RTC or remote (async) inference, or HIL-SERL in LeRobot. Also trigger on LeRobot errors such as calibration mismatch, FrameTimestampError or timestamp tolerance violations, camera or feature name mismatch between dataset and policy, missing q01/q99 stats, and Feetech "Incorrect status packet".

Use this Skill: https://skilld.dev/gh/arpitg1304/robotics-agent-skills/lerobot

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesdeployment.md

≈1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

LeRobot Deployment, Inference and Processors

Verified against LeRobot 0.7.1 (commit 7e57397), 2026-11-18. Detail behind the lerobot-rollout section of SKILL.md: recorded evaluation, strategies, load-time overrides, inference from your own Python loop, and the processor pipelines. Flag tables are in cli-reference.md. Simulation evaluation and HIL-SERL are in sim-and-rl.md.

lerobot-rollout (base and episodic)

# Quick look, no recording
lerobot-rollout --strategy.type=base \
  --policy.path=${HF_USER}/act_so101_cube_to_bowl \
  --robot.type=so101_follower --robot.port=$FOLLOWER_PORT --robot.id=$FOLLOWER_ID \
  --robot.cameras="$CAMERAS" \
  --task="Pick up the red cube and place it in the bowl" --duration=60 --display_data=true

# Scored evaluation episodes, recorded; leader drives resets
lerobot-rollout --strategy.type=episodic \
  --policy.path=${HF_USER}/act_so101_cube_to_bowl \
  --robot.type=so101_follower --robot.port=$FOLLOWER_PORT --robot.id=$FOLLOWER_ID --robot.cameras="$CAMERAS" \
  --teleop.type=so101_leader --teleop.port=$LEADER_PORT --teleop.id=$LEADER_ID \
  --dataset.repo_id=${HF_USER}/rollout_act_cube_to_bowl \
  --dataset.single_task="Pick up the red cube and place it in the bowl" \
  --dataset.num_episodes=10 --dataset.episode_time_s=30 --dataset.reset_time_s=15
  • Strategies (verified): base runs without recording. episodic records episodes like lerobot-record. sentry records continuously and uploads every N episodes. highlight keeps a ring buffer and saves when you press a key. dagger is human-in-the-loop correction and needs --teleop.type.
  • Recorded rollout datasets must be named rollout_*, and a timestamp is appended. --dataset.fps must equal --fps (default 30).
  • --policy.<field>= overrides the checkpoint config at load time. For example, --policy.n_action_steps=20 re-plans more often. --device overrides the device. --return_to_initial_position (default true) moves the arm back to its startup pose on exit. --interactive=true waits for /start (base and sentry).

Inference from your own Python loop

Inference from your own Python loop (verified API, from examples/tutorial/act/act_using_example.py):

from lerobot.datasets import LeRobotDatasetMetadata
from lerobot.policies import make_pre_post_processors
from lerobot.policies.act import ACTPolicy
from lerobot.policies.utils import build_inference_frame, make_robot_action

policy = ACTPolicy.from_pretrained(MODEL_ID).to("cuda").eval()
meta = LeRobotDatasetMetadata(DATASET_ID)           # features/names of the training data
pre, post = make_pre_post_processors(policy.config, pretrained_path=MODEL_ID)  # stats saved with the checkpoint
policy.reset()                                       # clear the action queue at every episode start
obs = robot.get_observation()
frame = build_inference_frame(observation=obs, ds_features=meta.features, device="cuda")
action = post(policy.select_action(pre(frame)))
robot.send_action(make_robot_action(action, meta.features))

Processors (pipelines)

Since the normalisation refactor (PR #1452), policies no longer embed normalisation. Each checkpoint ships a preprocessor: rename, add batch dim, move to device, normalise, plus policy steps such as tokenisation. It also ships a postprocessor: unnormalise, move to CPU. The pattern is preprocessor(batch) -> policy.select_action -> postprocessor(action). Robot-side RobotProcessorPipelines sit between hardware and dataset. make_default_processors() returns identity teleop-action, robot-action and robot-observation pipelines. The so100_to_so100_EE example shows end-effector teleop with kinematics. A model trained before #1452 has stats in its weights and must be migrated: python src/lerobot/processor/migrate_policy_normalization.py --pretrained-path <repo> --push-to-hub --branch migrated. See docs/source/introduction_processors.mdx and debug_processor_pipeline.mdx.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning4d3 checks · Risk SAFE
  • Gen Agent Trust Hub4d

    This skill provides instructions and reference material for Hugging Face's LeRobot robotics platform. It covers installation, hardware bring-up for SO-100/101 arms, dataset recording, training various robot learning models, and deploying them to hardware or simulation. All external resources originate from trusted repositories, and administrative commands are used appropriately for hardware configuration.

  • Socket4d

    No alerts

  • Snyk4d

    Risk: MEDIUM · 3 issues

Signed by skilld at 8a39029. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 6 days ago

README badge

README badge for arpitg1304/robotics-agent-skills/lerobot