relay is a Python package for π0.5 on Relay’s GPUs. It does three things:
- Inference. Send camera frames, robot state and an instruction, and get the next chunk of actions back.
- Fine-tuning jobs. Give Relay a base model, a LeRobot dataset and a few settings, and it trains the policy for you.
- Training loops. Write the training loop yourself. A GPU holds the model, and each call runs one step on it.
Quickstart
Install, set your API key and get your first actions.
Inference
Observations in OpenPI’s format, actions back.
Fine-tuning
Train from a recipe: a model, a dataset, a config.
Training loops
Your loop, your loss, Relay’s GPU.
Which API to use
Both training APIs can do full fine-tuning, LoRA on the entire model or LoRA at select places. See Where training goes.