Create a run
Creates a Loops run with an associated sampler in the given session.
Documentation Index
Fetch the complete documentation index at: https://docs.baseten.co/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Pass your Baseten API key. Clients automatically send Authorization: Bearer <key>. Direct callers can also use Authorization: Api-Key <key>; both schemes are accepted.
Body
ID of the Loops session this run belongs to.
Base model ID (e.g. 'Qwen/Qwen3-8B').
Maximum prompt length (in tokens) the run must handle. Set this to the longest training example you plan to send. Defaults to the maximum supported by the model configuration.
LoRA rank.
Random seed for reproducibility.
Seconds of inactivity before the run scales to zero. Must be positive. Defaults to 3600 (1 hour).
Optional bt:// URI of an existing checkpoint to load weights from on startup. Form: bt://loops:<run_id>/weights/<checkpoint_name>.
"bt://loops:k4q95w5/weights/step-100"
Optional Loops session ID whose trainer deployment should be reused for this run, sharing the infrastructure across sessions instead of provisioning fresh. The named session must belong to the same team. Reuse is best-effort: if the prior deployment is stopped, failed, or its sampler is unhealthy, a new deployment is provisioned instead.