get grpo run weights
get_grpo_run_weightsRetrieve presigned download links for a finished GRPO run's trained adapter files to self-host the weights. Works for completed, stopped, or failed runs with partial checkpoints.
Instructions
Get short-lived presigned download links for a finished online-RL (GRPO) run's trained adapter files so you can self-host the weights — use it after a run completes (or stops with a partial checkpoint). GET /v1/grpo/runs/{id}/weights (API-key scope: read). Returns: JSON object: { run_id, status, partial: boolean (true for STOPPED/FAILED — files are a partial checkpoint, not the finished adapter), files: [ { name (e.g. adapter_model.safetensors), size_bytes: integer|null, url (presigned GET, valid 15 minutes), expires_at (ISO) } ], empty_reason?: string (present when files is empty), storage_unavailable?: true (weight storage not configured — try later) }. Files sorted safetensors first, then adapter files, then config/tokenizer. Notes: 400 while the run is ACTIVE ('Weights are available once the run finishes.') and for OVERBUDGET runs ('This run has no trained adapter to download.'). 404 for foreign/unknown runs. Links expire after 15 minutes — re-call to refresh. Every call is audit-logged as a weight export. Feature-flag gated (fineTuning flag off → 404). OWNER/ADMIN key required (403).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The GRPO run id. Must be in a terminal status (COMPLETED, STOPPED, or FAILED). |