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

SimpleA plain explanation, one diagram and an analogy, with where the analogy breaks.

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

Show the answerThe music stops until it is fixed. A big AI job pauses too, until the conductor restarts it.

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.

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.

Submitjob request1Scheduleallocate nodes2Splitdata / tensor /pipeline3Syncover the network4Checkpointsave progress5repeat for many steps
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.

How it worksAn interactive demo first, then the mechanism: light maths, pseudo-code and trade-offs.

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

ResearchWhere the simple picture breaks, open problems and primary sources.

The mechanism'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).

Security on this concept: 1 threat Pending expert review

AI compute clusters left open to the internet Pending expert review

Exposed
  • Job and dashboard APIs of training and serving frameworks
  • The compute, credentials and data those clusters can reach
Attacks
  • Running jobs through an unauthenticated cluster API
  • Stealing cloud keys and tokens stored on the cluster
  • Hijacking GPUs for crypto-mining
Real case
Incident: ShadowRay (2024-03)
Controls
  • Never expose cluster control APIs to the internet; put them behind authentication
  • Keep secrets out of cluster environments; use short-lived, scoped credentials
  • Scan for exposed AI services from the outside
Owner
Platform/Cloud, with CISO
Reference
AML.T0049 Exploit Public-Facing Application
AML.T0132 Misconfigured or Publicly Exposed AI Services

All layers in the security view

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