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.
Running a large training job
Submit: job request
Schedule: allocate nodes
Split: data / tensor / pipeline
Sync: over the network
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.
Start with the 70B model on one 80 GB accelerator. Raise tensor and pipeline ways until it fits. How few accelerators can hold one copy?
Set pipeline stages to 8 and move the micro-batch slider from 1 up to 128. What happens to the idle share?
Go back to no splitting and choose "Everything" for sharding. How many data-parallel copies does it take to fit without splitting the model?
Double the data-parallel copies a few times. What happens to the days, and what does each doubling cost?
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
Tensor parallelism talks to other accelerators inside every layer, so it is kept to fast links within one machine.
Pipeline stages talk less, but each stage idles while the pipeline fills and drains; more micro-batches shrink that bubble.
Sharding saves memory but adds network traffic to gather weights and spread gradients at every step.
More data-parallel copies cut the days almost in proportion, until the batch gets too large to train well or the network becomes the limit.
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
Cluster networking The very fast network that lets thousands of accelerators share results every training step, so the whole cluster behaves like one computer.
GPU clouds & neoclouds Companies that own huge GPU clusters and rent slices of them by the hour, from big general clouds to specialist GPU-only providers.
Training vs inference infrastructure Training needs one giant, tightly linked cluster for weeks; serving answers needs many smaller copies close to users, sized for speed and cost per request.
Running locally vs in the cloud Open-weight models can run on your own hardware at home, trading the cloud's scale and convenience for privacy, control and a fixed cost.