train starts a job on Relay’s GPUs and returns at once.
The config
A LeRobot dataset on the Hugging Face Hub, such as
"lerobot/pusht_image". See Datasets.Where training goes. By default the action expert for LoRA, and the whole model in full. See Where training goes.
Model camera → dataset feature, such as
{"base_0_rgb": "observation.images.top"}. By default, the dataset’s image features, in order.Datasets
A dataset is a LeRobot dataset on the Hugging Face Hub, in format v2.1 (Relay reads the repo’sv2.1 revision), with:
- its cameras stored as images (
"dtype": "image"inmeta/info.json). Datasets that store video aren’t supported yet; - the state in
observation.stateand the actions inaction, each at most 32 wide; - the tasks in
meta/tasks.jsonl: each frame’s task is its prompt.
norm_stats.json, Relay computes one: state and actions are normalized so their 1st and 99th percentiles map to −1 and 1, then padded with zeros to 32. Send states, and read actions, in those units when you serve the result.
The job
train returns a FineTuneJob, as the API last reported it:
RuntimeError with the API’s message, such as POST /v1/fine-tunes: 400 bad batch_size: 0.