> ## Documentation Index
> Fetch the complete documentation index at: https://docs.baseten.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Training GPU capacity and quotas

> Check your organization's and teams' training GPU quotas and usage, change a team's quota, and see how dedicated jobs borrow from the shared pool.

Baseten sets GPU quotas for each GPU type in your organization: an on-demand quota for dedicated jobs, and a spot quota that [spot jobs](https://docs.baseten.co/training/spot-capacity.md) share with them. Each quota is the most GPUs of that type the jobs it covers can use at once. A job runs on dedicated capacity, which isn't preempted, unless you submit it on spot capacity. Organizations can also set a quota for each team, which caps that team's jobs.

A GPU quota controls how much capacity your organization can use; it doesn't reserve hardware. A job also needs available GPUs on a cluster eligible for its configuration. To raise an organization quota or turn on a GPU type, [Contact us](mailto:support@baseten.co).

## Check capacity and usage

> [tab] Baseten CLI
>
> **To check GPU capacity**:
>
> ```bash theme={"system"}
> baseten train capacity describe
> ```
>
> The output shows organization-wide quotas and usage, then each team's:
>
> ```text theme={"system"}
> GPU TYPE  IN USE  LIMIT  BASELINE
> L4        3       8      4
>
> TEAM         GPU TYPE  IN USE  LIMIT  BASELINE
> ml-research  L4        3       3      0
> ```
>
> If your organization has no quotas set, the command prints `No training GPU capacity configured.`

> [tab] Training API
>
> **To check GPU capacity**:
>
> The `curl` examples authenticate with `BASETEN_API_KEY`. Export your [API key](https://docs.baseten.co/organization/api-keys.md) first.
>
> Send a request to [Get training GPU capacity](https://docs.baseten.co/reference/management-api/training/gets-training-gpu-capacity.md):
>
> ```bash theme={"system"}
> curl --url "https://api.baseten.co/v1/training/capacity" \
>   --header "Authorization: Bearer $BASETEN_API_KEY"
> ```
>
> The response lists quotas and usage per GPU type in `gpu_capacities` and per team in `team_gpu_capacities`. `spot_enabled` is `true` when spot capacity is turned on for your organization.

In the CLI's organization table, `IN USE` counts the GPUs running dedicated and [spot](https://docs.baseten.co/training/spot-capacity.md) jobs, `LIMIT` is the configured maximum for that GPU type, and `BASELINE` is the configured minimum, `0` when your organization sets none. In the team table, `LIMIT` is the team's quota.

The API reports the quotas directly as `on_demand_quota`, the most GPUs dedicated jobs can use at once, and `spot_quota`, the quota spot jobs share with dedicated jobs, which is `null` when spot isn't enabled for your organization. The on-demand quota equals `BASELINE` when your organization enforces a baseline and `LIMIT` when it doesn't, and the spot quota equals `LIMIT`. `usage_count` counts every GPU in use and splits into `dedicated_usage_count` and `spot_usage_count`.

## Team GPU quotas

A team's GPU quota is how many GPUs of each type the team can use at once. Whether that quota is guaranteed or a hard ceiling depends on whether your organization has a [shared pool](#shared-pool):

* **With a shared pool**, your team always keeps its quota. Dedicated jobs can run past it by borrowing unclaimed organization capacity.
* **Without a shared pool**, the quota is a hard ceiling. Once your team reaches it, further dedicated jobs wait for capacity to free up when queueing is enabled for your organization; otherwise Baseten rejects the submission.

### Change a team's quota

Organization admins can change a team's quota at any time. There's no dashboard control for quotas.

> [tab] Baseten CLI
>
> **To change a team's quota**:
>
> 1. Run the following command. This example sets the `ml-research` team's H100 quota to 32 GPUs:
>
>    ```bash theme={"system"}
>    baseten train capacity update --team ml-research --gpu-type H100 --max-gpus 32
>    ```
>
>    The command prints `Set H100 limit to 32 GPUs for team ml-research.` to stderr.
>
> 2. To confirm, list the capacity again:
>
>    ```bash theme={"system"}
>    baseten train capacity describe
>    ```
>
>    The `ml-research` row's `LIMIT` is 32.

> [tab] Training API
>
> **To change a team's quota**:
>
> Send a `PATCH` request to [Set a team's training GPU capacity](https://docs.baseten.co/reference/management-api/training/sets-a-teams-training-gpu-capacity.md) with the team ID, the GPU type, and the new quota. Replace `<team_id>` with the team's ID; [`baseten org team list`](https://docs.baseten.co/reference/cli/baseten/org#team) lists your teams:
>
> ```bash theme={"system"}
> curl --request PATCH \
>   --url "https://api.baseten.co/v1/training/capacity" \
>   --header "Authorization: Bearer $BASETEN_API_KEY" \
>   --header "Content-Type: application/json" \
>   --data '{"team_id": "<team_id>", "gpu_type": "H100", "max_gpus": 32}'
> ```
>
> The response's `team_gpu_capacity.limit` is `32`.

## Shared pool

The shared pool is the part of your organization's dedicated capacity that no team's quota claims: the organization's on-demand quota minus the sum of every team's quota. In the [example output](#check-capacity-and-usage), an on-demand quota of 4 L4 GPUs and a single team quota of 3 leave a pool of 1.

Dedicated jobs that exceed their team's quota draw from the pool, first come, first served across teams. Baseten reserves every team's quota before carving out the pool, so borrowing never eats into another team's quota. A team without a quota runs entirely on the pool.

[`baseten train capacity describe`](https://docs.baseten.co/reference/cli/baseten/train) doesn't report pool size directly, so compute it from the values it prints.

## No shared pool

Team quotas are hard ceilings, with nothing to borrow, when any of these are true:

* Team quotas already add up to your organization's dedicated capacity, leaving nothing unallocated.
* Your organization sets no organization-wide quota, or no team quotas at all.
* Your organization has asked Baseten to disable pool borrowing.

In these configurations, a dedicated job never runs past its team's quota. When queueing is enabled for your organization, the job waits in `TRAINING_JOB_PENDING` until capacity frees up; otherwise Baseten rejects the submission. [Spot capacity](https://docs.baseten.co/training/spot-capacity.md) is the only way past.

## Next steps

* [Spot capacity](https://docs.baseten.co/training/spot-capacity.md): Run jobs on idle GPUs beyond your dedicated quota.
* [Job queueing and priority](https://docs.baseten.co/training/job-queueing.md): See how Baseten admits, queues, and orders jobs that wait for quota.
