When to deactivate
- Serverless: An idle run incurs no token charges, so deactivation isn’t required to avoid idle billing. Deactivate the run when you want to end it and its paired sampler.
- Dedicated: Deactivate the run when you finish to shut down its trainer and paired sampler deployments and stop GPU billing. Otherwise, the run ends after a period of inactivity.
Deactivate and check the run
Use the run ID fromTrainingClient.run_id or list your runs. Set BASETEN_API_KEY to your workspace API key.
- Baseten CLI
- REST API
- Loops cookbook
To deactivate the run:Run the following command, replacing Confirm when prompted. Pass Check that the described run has
<run_id> with your run ID:--yes to skip the prompt in scripts.Then check the run’s status:status.name set to INACTIVE.