Skip to main content
When you submit a job, Baseten checks it against your GPU quotas. A job that fits starts. When queueing is turned on for your organization, a job that has to wait for quota enters TRAINING_JOB_PENDING, and queue priority sets the order in which pending jobs start.

How Baseten admits a job

Baseten compares each job’s required GPU count with the applicable organization and team quotas, current usage, and pending jobs:
  • If no eligible cluster has the required GPUs, Baseten rejects the submission with HTTP 429, even when queueing is enabled.
  • If the required GPUs are available, the job fits within the applicable GPU quotas, and no pending job ranks ahead of the submission, Baseten starts the job.
  • If running jobs leave too little room under your organization’s GPU quota, Baseten places the job in TRAINING_JOB_PENDING when queueing is enabled for your organization. The job starts when quota becomes available and the job reaches the front of its queue.
  • If the job requires more GPUs than the organization quota, Baseten rejects the submission. The job can’t fit within the configured quota.
  • If a job must wait for organization GPU quota, Baseten rejects the submission when queueing is disabled or the pending-job queue is full. Wait for running jobs to release quota before resubmitting. To discuss queueing and GPU quotas for your workload, Contact us.
For example, an organization has a quota of 16 H100 GPUs, uses 12 of them, and has no pending jobs. Queueing is enabled, and the cluster has enough available GPUs: A job that exceeds the organization quota returns an error that identifies the requested GPU count and the applicable quota:

Set queue priority

Priority reorders only jobs that are waiting for organization GPU quota. Higher values run first, and jobs default to priority 0. Raise a job above 0 to run it sooner, or drop it below 0 to hold it behind default-priority work; the value is an unbounded integer. Priority doesn’t pause a running job or add cluster capacity. To set a job’s priority when you submit it:
Pass --priority to baseten train push:
To check a submitted job’s priority, run the following command:
The Priority: line holds the value.

Change the priority of a pending job

You can change a job’s priority only while the job is in the TRAINING_JOB_PENDING state.
To change a pending job’s priority:
  1. Run the following command, replacing <job_id> with the job ID and <priority> with the new priority:
    The command prints the job ID and the new priority, as in Set training job <job_id> priority to 100.
  2. To confirm, describe the job:
    The Priority: line holds the new value.

Resolve capacity errors

Read the submission error to choose whether to reduce the job’s GPU request, wait for running work to finish, or request a higher quota:

Next steps