Skip to main content
1

Install

relay needs Python 3.10 or newer.
For custom losses in your own training loop, also install PyTorch:
2

Set your API key

Create a key on the API keys page, then put it in your environment:
The training APIs read it on every call. Inference connects to a policy server’s URL instead.
3

Get actions

first_actions.py
actions[0] is the action to take now, actions[1] the one after, and so on. See Inference.
4

Fine-tune

fine_tune.py
See Fine-tuning, or write the loop yourself with Training loops.