JustujuAI, layer by layer.Open in the interactive map

GPU clusters & orchestration

Thousands of accelerators networked and scheduled to act as one machine for training or serving.

Layer 3 · Cloud & Infrastructure · Build and run time · reviewed 2026-10-30

D1 · StoryFor young children and total beginners

What happens to an orchestra if one player stops? Keep that in mind.

One chip isn't enough to teach a big AI. So we connect thousands of chips together. They are like a huge orchestra that has to play in perfect time.

A conductor program decides which chips work on what. If a player stops, it starts the music again.

The conductor program runs one huge job

  1. One big job: teach a big AI
  2. Split it up: across thousands of chips
  3. Play in time: chips share results
  4. Save progress: every so often

Like: An enormous orchestra with a conductor.

D2 · PictureFor curious beginners

Training a large model splits the work across many accelerators: each holds part of the data, part of the model, or both (data, tensor and pipeline parallelism).

The accelerators exchange results constantly, so fast networking between them is essential.

Schedulers such as Slurm or Kubernetes assign jobs to machines, and training jobs save checkpoints so a hardware failure doesn't lose weeks of work.

Running a large training job

  1. Submit: job request
  2. Schedule: allocate nodes
  3. Split: data / tensor / pipeline
  4. Sync: over the network
  5. Checkpoint: save progress

Like: An orchestra with a conductor keeping everyone in time.
Where it breaks: An orchestra survives a missed note. A synchronised training step waits for the slowest chip, so one failing machine can stall thousands.

D4 · MechanismFor practitioners

Training needs far more memory than the weights alone. With 16-bit weights and the Adam optimizer, each parameter carries about 16 bytes: 2 for the weight, 2 for its gradient and 12 for the optimizer's 32-bit copy and running averages. A 70B model needs about 1.1 TB before counting activations.

There are three ways to split the work. Tensor parallelism cuts each layer's matrices across accelerators. Pipeline parallelism gives each accelerator a run of layers, and passes micro-batches along like an assembly line. Data parallelism runs copies that each see different data and average their gradients; the copies can also shard the optimizer state, gradients and weights between them instead of each keeping a full set.

The total is tensor × pipeline × data-parallel accelerators. Pipelines waste time while they fill and drain (the bubble), so they need many micro-batches. Total training compute is about 6 × parameters × tokens, which sets how long the whole cluster takes.

Try the interactive version in the map.

Things to try

bytes_per_param = 2 + 2 + 12                  # 16-bit weight, gradient, Adam state (32-bit copy, momentum, variance)
# sharding across dp copies divides: optimizer only -> 4 + 12/dp, + gradients -> 2 + 14/dp, everything -> 16/dp
memory_each = params * bytes_per_param / (tp * pp)   # plus activations, not counted here
accelerators = tp * pp * dp
bubble = (pp - 1) / (micro_batches + pp - 1)  # share of each step a pipeline sits idle
train_flops = 6 * params * tokens             # forward and backward pass
days = train_flops / (accelerators * peak_flops * utilisation * (1 - bubble)) / 86400

Trade-offs

D5 · FrontierFor experts

D4's arithmetic assumes every accelerator is healthy, equally fast and always busy. At scale none of that holds.

Utilisation. A recent large run reported 38% to 43% model FLOPs utilisation on 16,000 GPUs, so more than half of peak arithmetic went unused (Grattafiori et al., 2024).

Reliability. Eleven months and over 150 million GPU-hours on two research clusters showed the largest jobs most exposed to failure; the authors call for reliability-aware systems and algorithms (Kokolis et al., 2024).

Cost. The amortised cost of the most compute-intensive training runs has grown about 2.4 times a year since 2016. On that trend the largest pass $1 billion by 2027, raising the question of who can afford frontier training (Cottier et al., 2024).

Examples as of 2026-10-30

Sources

  1. Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelism (2019)
  2. Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LM (2021-04-09)
  3. ZeRO: Memory Optimizations Toward Training Trillion Parameter Models (2019-10-04)
  4. Scaling Laws for Neural Language Models (2020-01-23)
  5. The Llama 3 Herd of Models (section on training infrastructure) (2024)
  6. Revisiting Reliability in Large-Scale Machine Learning Research Clusters (Kokolis et al.) (2024-10-29)
  7. The rising costs of training frontier AI models (Cottier et al.) (2024-05-31)

How it connects

More in Layer 3 · Cloud & Infrastructure