Prerequisites
- Spot capacity turned on for your organization. Contact us to request access.
How spot capacity is counted
Spot jobs must fit within your organization’s spot quota, counting dedicated and spot usage across every team. They also need available GPUs on an eligible cluster. Your team’s quota and the shared pool don’t apply. That has two effects:- A team at its quota with an empty pool doesn’t stop a spot job. The job runs on capacity that belongs to another team’s quota.
- When your organization’s entire dedicated capacity is in use, spot jobs keep running in the band between the on-demand quota and the spot quota.
Run a job on spot capacity
To run a job on spot capacity:- Baseten CLI
- Training SDK
Pass
--spot to baseten train push:--spot overrides the config for that push, while availability_model applies to every push of that config. Without either, a job runs on dedicated capacity. The API sets the same value in compute.availability_model when it creates a job, and a PATCH request changes it only while the job is pending.
To check which capacity a job runs on, describe it:
Availability: line reads spot for spot jobs and standard for dedicated ones.
Move a queued job onto spot capacity
A job that waits inTRAINING_JOB_PENDING for dedicated capacity can move to spot capacity without resubmitting. You can change its capacity only while the job is pending.
To move a pending job onto spot capacity:
- Baseten CLI
- Training API
Run the following command:The command prints the job ID and the change, as in
Set training job <job_id> availability model to spot.When Baseten reclaims spot capacity
You can’t predict or control when Baseten reclaims spot capacity, or which of your spot jobs stops first, so treat every spot job as interruptible. To continue the work, start a new job that loads the latest checkpoint.Next steps
- Job queueing and priority: See how Baseten admits and orders jobs that wait for quota.
- Load a checkpoint into a new job: Continue after a preemption.