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:- A Together AI account with sufficient credits.
- The Together CLI installed. To install or upgrade it, run:
- kubectl installed, if you plan to create a Kubernetes cluster.
- An SSH key added at api.together.ai/settings/ssh-key before you create the cluster, if you plan to use key-based SSH on a Slurm cluster.
Step 1: Create a cluster
- Console
- CLI
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:- Kubernetes
- Slurm
Find your cluster ID, then download the cluster’s credentials. Only project admins can download credentials. For anyone else, You should see the cluster’s nodes listed with status
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: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: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.- Kubernetes
- Slurm
Save this pod definition to a file named Create the pod, wait for it to finish, then print its output:
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
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: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.