Skip to content

Cluster planning

How to Size a GPU Cluster for LLM Training

Estimate total training compute as about 6 times parameters times tokens, divide by the realistic throughput of one GPU at your precision and your target training time, then check that the model fits in memory with your parallelism plan. Add headroom for growth, failures and checkpoints.

Updated · 7 min read · By the GPU Boom team

ShareLinkedInXEmail

To size a GPU cluster for LLM training, start with compute. Total training compute is roughly 6 × N × D floating point operations, where N is the number of model parameters and D is the number of training tokens. Divide that by what one GPU actually delivers at your chosen precision, multiply by your target wall-clock time, and you have a first GPU count. Then confirm the model, optimizer state and activations fit in memory across your parallelism plan, and make sure the interconnect can keep every GPU busy.

The five inputs you need

  • Model parameters (N): the size of the model you plan to train, including all experts for a mixture-of-experts model when you size memory.
  • Training tokens (D): the size of the dataset in tokens, multiplied by the number of passes over it.
  • Precision: BF16, FP8 or, on Blackwell, FP4 for some recipes. Lower precision raises throughput and cuts memory per value.
  • Target training time: how many days or weeks you can wait for one run.
  • Utilization: the share of peak throughput your code actually achieves, often called model FLOPs utilization or MFU.

Step 1: estimate total compute

The common rule of thumb for dense transformer training is that compute ≈ 6 × N × D FLOPs. The factor of 6 covers the forward pass (about 2 FLOPs per parameter per token) and the backward pass (about 4). It ignores attention overhead for very long sequences, so treat it as a floor.

For a mixture-of-experts model, use the active parameters per token for N in the compute estimate. Use the total parameter count when you size memory.

Step 2: turn compute into a GPU count

Take the vendor's published dense throughput for your GPU at your precision. Multiply it by your expected utilization to get effective throughput per GPU. Then solve for the GPU count.

A symbolic sizing worksheet
QuantityFormulaNotes
Total compute (C)6 × N × DFLOPs for one full training run
Effective per-GPU throughput (T)Vendor peak at your precision × MFUUse the vendor's published dense figure, not sparse
Training time (S)Target days × 86,400Seconds of wall-clock time
GPUs needed (G)C ÷ (T × S)Round up to a whole number of 8-GPU nodes
NodesG ÷ 8Then add headroom, covered below

Utilization is the input people most often get wrong. Real training jobs spend time on communication, data loading, checkpointing and restarts. Many well-tuned large runs land well below peak. If you have not measured MFU on your own code, run a short benchmark on a few nodes before you commit to a size.

Step 3: check memory per GPU

Compute tells you how many GPUs you need to finish on time. Memory tells you the minimum number of GPUs that can hold the job at all. With mixed precision training and the Adam optimizer, a common estimate is about 16 bytes per parameter before activations: BF16 weights and gradients plus FP32 master weights and two optimizer moments.

Activations add more, and they grow with batch size and sequence length. Activation checkpointing trades extra compute for less memory. Sharding optimizer state across data-parallel ranks, as ZeRO and FSDP do, spreads the 16 bytes over many GPUs.

HBM per GPU sets how much of the model each device can hold: 80 GB on H100, 141 GB on H200, 192 GB on HGX B200 and 288 GB on B300. More memory per GPU means less splitting, which means less communication.

Step 4: choose a parallelism plan

Large models combine three kinds of parallelism. Each one places different demands on the network.

  • Data parallelism: each GPU group holds a copy of the model and processes different batches. Gradients are combined with all-reduce every step.
  • Tensor parallelism: each layer's matrices are split across GPUs. This needs very high bandwidth and low latency, so it usually stays inside one NVLink domain, such as the 8 GPUs of an HGX node or the 72 GPUs of a GB200 NVL72 rack.
  • Pipeline parallelism: consecutive layers live on different GPUs or nodes, and micro-batches flow through them. It tolerates lower bandwidth but adds idle time called pipeline bubbles.

A typical layout keeps tensor parallelism inside the node, spreads pipeline stages across a few nodes, and uses data parallelism across the rest of the cluster. Expert parallelism adds a fourth dimension for mixture-of-experts models and generates heavy all-to-all traffic.

Why the interconnect matters

Every training step ends with GPUs exchanging data. If the network is slow or oversubscribed, GPUs wait, and utilization falls. That directly raises the GPU count you need to hit your target time. A non-blocking fabric keeps that loss small as the cluster grows.

GPU Boom builds clusters on a non-blocking InfiniBand fabric with 3.2 Tb/s per node on HGX systems. Before handoff, we run NCCL all-reduce and NVLink bandwidth tests so you know the fabric performs as specified.

Plan for headroom and checkpoints

  1. 01Add capacity for failures and restarts. At scale, some GPUs or links will fail during a long run, and time lost to restarts comes straight out of your schedule.
  2. 02Plan for growth. Your next model is usually larger. Ask for a growth plan at the start so expansion nodes land on the same fabric.
  3. 03Size checkpoint storage. A full checkpoint includes weights and optimizer state, roughly the same 16 bytes per parameter. Keep several, and make sure the storage plane can write them fast enough that checkpoints do not stall training.
  4. 04Reserve capacity for evaluation, ablations and inference testing alongside the main run.

GPU Boom clusters range from 16 to 256 nodes, which is 128 to 2,048 GPUs, with a storage plane that supports snapshots and checkpointing. In the discovery call we walk through your model sizes, token counts, target RFS date and growth plan to land on a size that fits.

Frequently asked questions

How many GPUs do I need to train an LLM?
Compute 6 × parameters × tokens, divide by one GPU's effective throughput at your precision, and divide again by your target training time in seconds. Then confirm the model fits in memory and round up to whole nodes with headroom.
What does the 6 in 6 × N × D mean?
It approximates the FLOPs per parameter per token for training a dense transformer: about 2 for the forward pass and about 4 for the backward pass.
How much GPU memory does LLM training need per parameter?
With mixed precision and the Adam optimizer, about 16 bytes per parameter for weights, gradients and optimizer state, before activations. Sharding techniques spread that across GPUs.
Does the network really affect how many GPUs I need?
Yes. A slow or oversubscribed fabric lowers utilization, so you need more GPUs to finish in the same time. A non-blocking InfiniBand fabric limits that loss.

Next step

Send us your requirement.

GPU model and quantity are enough to start. We reply within one business day.

Request capacity →

New guides by email

One short email when we publish something useful on GPU clusters, pricing or financing. No spam.