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

# GPU clusters

> Provision dedicated multi-node GPU clusters for Kubernetes or Slurm workloads.

> [!TIP]
>
> Using a coding agent? Install the [together-ai](https://github.com/togethercomputer/skills/tree/main/skills/together-ai) skill to let your agent write correct GPU cluster code automatically. See [agent skills](https://docs.together.ai/docs/agent-skills.md) for details.

Together GPU clusters provide dedicated multi-node GPU infrastructure for training, fine-tuning, and other large-scale AI workloads. Clusters provision in minutes and include high-speed InfiniBand networking and persistent shared storage. You can scale a cluster up or down in real time.

Besides hardware, you make two decisions when you create a cluster:

* **[Kubernetes or Slurm](#choosing-kubernetes-or-slurm):** Every cluster runs on Kubernetes. Work with `kubectl` and standard Kubernetes tooling directly, or create a Slurm cluster to run high-performance computing (HPC) batch workflows with `sbatch` and `srun`.
* **[Capacity type](#capacity-types):** Reserve capacity upfront for 3 to 180 days at discounted rates, pay hourly for on-demand capacity with no commitment, or draw from a project capacity pool for a scheduled window. You can mix reserved and on-demand capacity in the same cluster.

## Get started

You can create a cluster from the [Together AI console](https://api.together.ai/clusters) or with the Together CLI:

```bash theme={null}
# create a cluster (an interactive prompt walks through the options)
tg clusters create

# check the status until the cluster is ready
tg clusters get <CLUSTER_ID>

# write a kubeconfig for kubectl access and switch to its context
tg clusters get-credentials <CLUSTER_ID> --set-default-context
```

The [GPU clusters quickstart](https://docs.together.ai/docs/gpu-clusters-quickstart.md) breaks down this flow, including how to access a Slurm cluster.

> [card] [Quickstart](https://docs.together.ai/docs/gpu-clusters-quickstart.md)
>
> Create a cluster, connect to it, and run your first job.

> [card] [Kubernetes workloads](https://docs.together.ai/docs/kubernetes-workloads.md)
>
> Deploy pods with persistent storage and run GPU workloads.

> [card] [Slurm workloads](https://docs.together.ai/docs/slurm.md)
>
> Run HPC-style batch jobs with the preconfigured Slurm scheduler.

> [card] [Manage clusters](https://docs.together.ai/docs/gpu-clusters-management.md)
>
> Scale capacity, control access, and monitor cluster health.

> [card] [Cluster storage](https://docs.together.ai/docs/cluster-storage.md)
>
> Choose the right storage tier for datasets and checkpoints.

> [card] [Pricing](https://docs.together.ai/docs/gpu-clusters-billing.md)
>
> Understand how compute and storage charges work.

## How clusters work

Every cluster is built from the same layers:

* **Hardware:** GPU worker nodes connected by high-speed InfiniBand, each with fast local NVMe storage, plus a persistent shared volume mounted on every node.
* **Kubernetes:** A control plane managed by Together tracks cluster state and schedules workloads onto the worker nodes. You reach it with `kubectl` and standard Kubernetes tooling.
* **Slurm (optional):** On Slurm clusters, the Slurm scheduler runs on top of the same Kubernetes stack through Slinky, an integration layer that bridges HPC scheduling with cloud-native infrastructure. You SSH into a login node and submit jobs with `sbatch` and `srun`.

Together monitors every node with [automated health checks and repairs](https://docs.together.ai/docs/health-checks.md). For a walkthrough of each layer and definitions of common HPC terms, see [Concepts](https://docs.together.ai/docs/gpu-clusters-concepts.md).

### Choosing Kubernetes or Slurm

You select the cluster type when you [create the cluster](https://docs.together.ai/docs/gpu-clusters-quickstart.md). Both types run on the same hardware, storage, and networking.

* **Choose a Kubernetes cluster** if your workloads are containerized and you want to work with `kubectl` and the Kubernetes ecosystem directly. You can use schedulers like [Kueue](https://docs.together.ai/docs/kueue-on-gpu-clusters.md) and [Volcano](https://docs.together.ai/docs/volcano-on-gpu-clusters.md), or orchestrators like [SkyPilot](https://docs.together.ai/docs/skypilot-on-gpu-clusters.md). See [Kubernetes workloads](https://docs.together.ai/docs/kubernetes-workloads.md).
* **Choose a Slurm cluster** if your team works with HPC-style batch workflows, such as `sbatch` scripts, job arrays, partitions, and a shared job queue with priorities. Slurm comes preconfigured for distributed training, so you can submit jobs without writing any Kubernetes manifests. See [Slurm workloads](https://docs.together.ai/docs/slurm.md).

## Available hardware

| GPU | Memory per GPU | Best for |
| - | - | - |
| NVIDIA HGX B200 | 180 GB | Maximum performance on the latest generation. |
| NVIDIA HGX H200 | 141 GB | Large models that need more GPU memory than H100. |
| NVIDIA HGX H100 SXM | 80 GB | High-bandwidth training and inference. |

Nodes of every GPU type connect over 3.2 Tb/s InfiniBand for multi-node training.

If the GPUs you need aren't available, [request capacity](https://docs.together.ai/docs/gpu-clusters-management.md#request-capacity) from the [console](https://api.together.ai/clusters). For custom requirements, contact your account team.

## Capacity types

| | Reserved | On-demand | Scheduled capacity |
| - | - | - | - |
| **Billing** | Credits are charged upfront for the full reservation at discounted rates. | Billed per hour of cluster runtime at standard rates. | Credits cover the full window you select from a project capacity pool. |
| **Commitment** | 3 to 180 days. | None. | The start and end dates you select within the pool window, or **No end** if the pool has no end date. |
| **Lifecycle** | Decommissioned automatically when the reservation expires. Extend the reservation from the cluster details page in the [console](https://api.together.ai/clusters). | Runs until you delete it. | Runs until the end date you select, or until you delete it if you selected **No end**. |

### Choosing a capacity type

* **Choose reserved** if you know how long your workload will run, such as a multi-day training run or a planned experiment, and you can commit to that period in exchange for discounted rates.
* **Choose on-demand** if your resource needs are unpredictable, you're running short experiments, or you're still developing and testing and want maximum flexibility.
* **Mix reserved and on-demand** if you have a predictable baseline with occasional bursts. For example, reserve capacity for your baseline workload, then scale up with on-demand capacity during peak periods and back down when the burst ends. Usage beyond your reserved capacity is automatically billed at on-demand rates.
* **Choose scheduled capacity** if your project has a capacity pool and your workload fits a planned window. The create form shows this option only when your project has a pool. For a cluster that starts now, you can combine capacity pool GPUs with prepaid reserved GPUs from outside the pool.

You can also add [preemptible compute](https://docs.together.ai/docs/preemptible-compute.md) (Preview) alongside standard nodes on Kubernetes and Slurm clusters. Preemptible GPUs are discounted and billed sub-hourly, but Together can reclaim them at any time.

> [!NOTE]
>
> Shared storage volumes have their own lifecycle. When a reserved cluster is decommissioned at expiration, its volumes persist and keep billing as storage. You can attach them to other clusters, or delete them after you extract the data.

For rates and invoice details, see [Pricing](https://docs.together.ai/docs/gpu-clusters-billing.md).

## Storage

Every cluster has three storage locations:

* **Shared volumes:** Persistent. High-throughput file systems that survive pod restarts, node reboots, and, by default, cluster deletion.
* **Local NVMe:** Ephemeral. Fast local disks on each node. Data can be lost during reboots, migrations, or cluster operations.
* **`/home` directory:** Persistent on Slurm clusters, where it lives on the shared volume. Ephemeral on Kubernetes clusters, where it's local to each node.

> [!WARNING]
>
> Local NVMe and node-local storage are ephemeral. Always use shared volumes for data you need to keep.

You can resize volumes as your data grows. For mount paths, upload instructions, and best practices, see [Cluster storage](https://docs.together.ai/docs/cluster-storage.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.