Run a policy you trained in the dashboard
Theinference/
example runs a SmolVLA policy using its Training ID.
1
Install SmolVLA on the GPU machine
2
Fill in .env on both machines
.env
ZERORUNTIME_TASK empty. The task, speed and joint order come from
your training run.3
Use the same camera names
In When the follower starts, check which camera got which name. If
inference/follower.py, set CAMERA_LABELS to the names you used when
recording:follower.py
top is
really the wrist camera, the policy sees the wrong thing.4
Test the GPU machine first
--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.Use it in your own code
Policy.fetch() downloads your policy so you can load it yourself:
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 fromread_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.
The safety envelope still applies
Everything a human operator passes through, the model passes through. The follower clamps tolimits(), 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:read_joints() returns {} and the base refuses to send
anything at all. Do not call claim_control() on it. It is there to observe.
Related
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.