Skip to main content
Using a coding agent? Install the together-ai skill to let your agent write correct GPU cluster code automatically. See agent skills for details.
A GPU cluster is a set of GPU nodes dedicated to you, where you run workloads with Kubernetes or Slurm. Use one when you need full control over your training or inference stack, such as for multi-node training or for custom code that doesn’t fit a managed service like fine-tuning or dedicated model inference. In this quickstart, you’ll create a GPU cluster, connect to it with kubectl or SSH, run a test job that confirms its GPUs are ready, and delete the cluster when you’re done.

Requirements

Before you begin, make sure you have:

Step 1: Create a cluster

1

Open the create form

Go to the GPU clusters page in the Together AI console and select Create cluster.
2

Choose the capacity type

Select On-demand to pay hourly with no commitment. To pay a fixed rate for 3 to 180 days instead, select Reserved.
3

Choose GPUs

Select a GPU type card (for example, H100-SXM), then set the number of GPUs under Select GPU Count. GPUs come in whole nodes of 8. For a reserved cluster, also set Duration below the GPU count.
4

Choose a region

Leave Region at its default, Any region, to target the region with the most available capacity for your selected GPU type. If you need the cluster in a particular location, select that region instead.
5

Configure the cluster

Under Cluster Details, enter a descriptive Cluster name.Under Orchestration, select Kubernetes for containerized workloads or Slurm for high-performance computing (HPC) batch scheduling.Leave Driver version at its default unless you need a specific NVIDIA driver and CUDA combination.
6

Create a shared volume

Under Storage, open Storage Selection and select + Create new storage, then set Size (TiB) and a Storage Name. The minimum size is 1 TiB, and you can resize the volume later. To reuse a volume you already have, select it instead.
Changing the GPU type resets the region to Any region and deselects any existing volume you chose, because volumes are region-specific. Select them again after you switch GPU types.
7

Create the cluster

Select Create Cluster, review the details, then select Confirm & Create. The console shows the cluster’s status as it provisions. Wait for the status to reach Ready, which usually takes 10 minutes to an hour, depending on cluster size and region.
If the GPU type you want has no available capacity, try a different region, or request capacity by selecting Need a different configuration? in the console create form.

Step 2: Connect to the cluster

How you connect depends on the cluster type you chose in Step 1:
Find your cluster ID, then download the cluster’s credentials. get-credentials merges them into your local ~/.kube/config (pass --file to write them elsewhere), and --set-default-context points kubectl at the new cluster:
Only project admins can download credentials. For anyone else, get-credentials reports that no kubeconfig was found. Editors connect with an OpenID Connect (OIDC) kubeconfig that an admin shares instead.When the CLI detects an AI agent, it defaults to JSON output. In JSON mode, get-credentials reports the target path without writing the file, so pass --no-json to write it.Confirm that kubectl can reach the cluster:
You should see the cluster’s nodes listed with status Ready. Nodes appear as they finish provisioning, so if any are missing, wait for the cluster status to reach Ready in the console.You can also view or download the kubeconfig from the cluster details page in the console.

Step 3: Run a test job

To confirm the cluster is ready for work, run a job that prints a node’s GPU status.
Save this pod definition to a file named gpu-test.yaml on your local machine, in the directory you run kubectl from. A pod is the unit of work Kubernetes schedules onto a node. This pod requests one GPU and runs nvidia-smi:
gpu-test.yaml
Create the pod, wait for it to finish, then print its output:
You should see the nvidia-smi table listing the allocated GPU, its driver version, and memory.
Congrats! You created a GPU cluster and ran your first job on it.

Clean up to stop billing

On-demand clusters bill hourly until you delete them. When you’re done, delete the cluster:
Your shared storage volume persists after cluster deletion and continues to bill until you delete it. Keep it to reuse your data on a future cluster, or delete it:

Next steps

Run workloads on Kubernetes

Deploy pods with persistent storage and run GPU workloads.

Submit Slurm jobs

Run and manage batch jobs with the preconfigured Slurm scheduler.

Cluster storage

Choose the right storage tier for datasets and checkpoints.

Billing and pricing

Understand how compute and storage charges work.