Policy.fetch() returns a local folder that LeRobot’s
from_pretrained loads.
zeroruntime-teleops 0.1.2. For the whole flow from recording to a
running arm, see Train a policy.
Policy.fetch()
Your auth token. Defaults to
ZERORUNTIME_AUTH_TOKEN. It must come from the
project that ran the training.Where to keep downloaded policies. Defaults to
ZERORUNTIME_CACHE, then
~/.cache/zeroruntime.Policy. Raises PolicyError if it can’t.
Caching
The checkpoint is saved under<cache>/policies/<training id>/final/. A second
fetch of the same id reads the cache and makes no request, so a robot that has
its weights runs offline.
A download that fails part way leaves nothing behind under the real file
names, so the next fetch starts clean.
Fields
The task text the recording’s episodes were labelled with. If they used
more than one, the most common one.
How the dataset’s camera keys map to the policy’s camera inputs, as set at
training time. Empty if there was none.
PolicyError
Every failure is aPolicyError with a message that says what went wrong.
It subclasses RoomError, so one
except RoomError still catches every API failure.
Related
Train a policy
Record, convert and fine-tune in the dashboard, then run it.
Errors
Every exception the SDK raises.