Skip to main content

Environment

relay.inference

Also relay.Policy and relay.Codec.

Policy

Connects to a policy server and reads its metadata. See Inference.

Codec

Codec.LOSSLESS, Codec.JPEG_Q100, JPEG_Q98, JPEG_Q95, JPEG_Q92, JPEG_Q90, JPEG_Q85, JPEG_Q50. See Sending images.

relay.sft

SFTConfig

See Fine-tuning and Where training goes.

Functions

train is in relay.sft.train; all three are in relay.sft.

FineTuneJob

Attributes: id, status, created_at, step, loss, error, output_dir, and the config’s fields.

relay.training

ServiceClient

Each starts a session and waits until it’s ready, or TimeoutError after timeout seconds.

TrainingClient

Attributes: session_id, info.

SamplingClient

sample(observations, num_steps=10) -> Future[np.ndarray] with the weights saved under name; path is where they are.

types