Skip to main content
Check on your runs with the Baseten CLI or the Loops API. Logs and GPU usage cover runs in the dedicated mode. For errors from serverless training and sampling calls, see Loops troubleshooting. The Baseten CLI and the curl examples authenticate with BASETEN_API_KEY. Export your API key first:

List runs

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

To check a run’s status:Run the following command, replacing <run_id> with the run ID from TrainingClient.run_id or the run list:
The command prints one field per line, followed by the run’s paired sampler when it has one:
To print only the status, run:

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.
To read a run’s logs:Run the following command, replacing <run_id> with the run ID:
The command streams the trainer’s logs until the run stops producing them or you press Ctrl-C. Without --tail, it prints up to 5000 lines from the last 30 minutes, newest first. To choose another window, replace --tail with --since:
To read the paired sampler’s logs instead, run:
A serverless sampler has no deployment logs, so --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:
The command prints a summary of trainer and sampler GPUs in use and scaled to zero:
When allocations hold GPUs, the output also includes a table with each allocation’s run, base model, GPU type, trainer status, sampler GPU, sampler status, and creation time. The table leaves out allocations that hold no GPUs, such as scaled-to-zero or stopped ones, and the command prints how many it left out:
To include allocations that hold no GPUs, run:
To report usage across your organization, run:

Next steps