Skip to main content
A policy drives the arm in place of a person. The robot side doesn’t change, and the same safety limits still apply. This is step 4 of Train a policy.

Run a policy you trained in the dashboard

The inference/ example runs a SmolVLA policy using its Training ID.
1

Install SmolVLA on the GPU machine

2

Fill in .env on both machines

Use the same token and room id on both. On the GPU machine, paste your Training ID:
.env
Leave ZERORUNTIME_TASK empty. The task, speed and joint order come from your training run.
3

Use the same camera names

In inference/follower.py, set CAMERA_LABELS to the names you used when recording:
follower.py
When the follower starts, check which camera got which name. If top is really the wrist camera, the policy sees the wrong thing.
4

Test the GPU machine first

This downloads your policy and tests it, without moving the robot. The download happens only once. After that it works offline. On a Jetson or a laptop, add --num-steps 5 to make it faster.
5

Run it

On the robot:
On the GPU machine:
The arm starts from where it is. To move it to a start pose first, add --home with six joint values.
The first time you run a new policy, slow the arm down: set ZERORUNTIME_SLEW=2.0 in the robot’s .env. Press Ctrl-c on the GPU machine to stop. The arm stops and holds where it is.

Use it in your own code

Policy.fetch() downloads your policy so you can load it yourself:
See Policy for all fields.

Common problems

Write your own Leader

A Leader is whatever decides how the Follower should move. Nothing in it assumes a person, so a model drives an arm the same way an operator does: return the next pose from read_joints().
observation() gives the model the same thing a person looks at: a frame per camera and the joint values from that frame’s own capture instant. Reading it also stamps the next command with that observation’s id, so the recorded action is paired with what caused it.
Set max_misalignment and use arm_when_aligned() here too. A model whose first output is far from where the arm is standing makes the follower travel to meet it.

The safety envelope still applies

Everything a human operator passes through, the model passes through. The follower clamps to limits(), caps the per tick step at slew, and holds if commands stop arriving. That matters for training: action in a recording is the clamped value, so a policy trained on it learns the envelope rather than learning to command through one it will not have.
Release the deadman to stop the model. The command stream stops, the follower’s watchdog runs out, and the arm holds where it is. That is the same stop a person gets, and it does not depend on the model cooperating.

Watching without driving

A third peer can join and see everything without ever taking control. Give the LeRobot leader adapter the joint names and no arm:
With no arm to read, read_joints() returns {} and the base refuses to send anything at all. Do not call claim_control() on it. It is there to observe.

Leader

Every argument, method and event on this side.

Policy

Policy.fetch(), its fields, and the cache.

Safety

The checks every command passes, whoever sent it.