curl examples authenticate with BASETEN_API_KEY. Export your API key first:
List runs
- Baseten CLI
- REST API
To list your runs:The table lists each run’s ID, base model, status, and creation time, newest first, and shows only your own active runs:To include inactive runs, run:To list every run in your organization, run:The table then has an
OWNER column that names each run’s owner.Check run status
- Baseten CLI
- REST API
To check a run’s status:Run the following command, replacing The command prints one field per line, followed by the run’s paired sampler when it has one:To print only the status, run:
<run_id> with the run ID from TrainingClient.run_id or the run list:Read run logs
Logs come from a run’s deployments, so only dedicated runs have them. A serverless run has no trainer or sampler deployment.- Baseten CLI
- REST API
To read a run’s logs:Run the following command, replacing The command streams the trainer’s logs until the run stops producing them or you press Ctrl-C. Without To read the paired sampler’s logs instead, run:A serverless sampler has no deployment logs, so
<run_id> with the run ID:--tail, it prints up to 5000 lines from the last 30 minutes, newest first. To choose another window, replace --tail with --since:--sampler fails for one.Check GPU usage
baseten loops usage reports the GPUs that your dedicated trainers and standalone samplers hold. It doesn’t report serverless token usage or spend.
To check GPU usage:
Next steps
- Deactivate a run: End a run and stop its billing.
- Check whether an RL run is learning: Read reward and rollout metrics during training.
- Loops troubleshooting: Fix request errors and recover failed runs.