The idea. A training or serving step needs three things: arithmetic, bytes from memory and bytes between chips. Every part of an accelerator system exists to supply one of them, and the step runs at the speed of whichever runs out first; choosing hardware is finding that resource before you pay for the others.
The running example is one training step of Llama 3.1 8B, an ordinary dense transformer with 8,030,261,248 parameters (32 layers, hidden size 4,096, 8 key-value heads; counted from its config.json, an open mirror of Meta's gated repository): 64 sequences of 8,192 tokens, 524,288 tokens in all illustrative batch, the step the Performance calculator animates. Fig. 1 is the page: the step's hardware from the inside out, each part lit where it acts, with the child page that owns it.
A map, not a mechanism: each step lights the part one child page owns and links that child's own figure. The three demands come from the Performance calculator's count (16 bytes per parameter: bf16 weights and gradients, an fp32 master copy and two fp32 Adam moments; activations add about 57 GB more at micro-batch 1, counted on Performance math). Counts drawn (16 SMs, two servers, one network switch, one failed GPU) are illustrative; the bar heights in steps 3 and 7 are the page's numbers to scale.
You need: what a matrix multiply, a training step and a decoder layer are. Nothing on the hardware side is assumed.
Neighbours: programming the GPU (threads, kernels, Triton, profilers) is Topic: cuda-and-gpu-programming; the TPU's software is Topic: jax-and-tpu; the CPU underneath is C++: the machine underneath; parallelism strategies are Distributed Training.
Almost all of the step's FLOPs are matrix multiplications: huge, regular (no data-dependent branches) and predictable (every address known in advance). A fused multiply-add (FMA) is the unit of work, 2 FLOPs. Three designs answer that workload differently:
| Engine | Where its transistors go | How it hides memory latency | FMAs per cycle per core |
|---|---|---|---|
| CPU core | Guessing: branch prediction, out-of-order execution, big caches | Caches and speculation, for one fast thread | 16 (M1 Pro performance core: 4 units × 4 fp32 lanes) |
| GPU core (NVIDIA: SM) | Arithmetic lanes and registers for thousands of threads | Switches to another group of threads that is ready | 128 fp32 lanes (M1 Pro GPU core, H100 SM) |
| Tensor core (inside the SM) | A small matrix multiply per instruction instead of one FMA per lane | As the SM | 16 times the SM's own lanes (H100) |
| Systolic array (TPU and most other accelerators) | A grid of multiply-accumulate cells; weights stay put while activations flow cell to cell | None needed: a compiler schedules every transfer ahead of time | 128 × 128 cells (TPU v2 to v5), 256 × 256 (v6e) |
M1 Pro CPU: about 102 GFLOP/s at 3.2 GHz, measured 97.5 GFLOP/s in C++: the machine underneath, section 9 measured here; GPU core 128 lanes at 1.296 GHz (metal-benchmarks independent); H100 SM 128 fp32 lanes and four tensor cores (NVIDIA Hopper in depth vendor spec); array sizes from How To Scale Your Model.
Each square is a 4 × 4 block of the output. The H100 clock, 1.83 GHz, is derived from 989.5 TFLOPS dense BF16 / (132 SMs × 4,096 FLOPs per cycle), where 4,096 is the A100 SM's 1,024 dense FP16 FMAs per clock (A100 whitepaper) doubled for Hopper, as How To Scale Your Model also gives; measured per-core rates 97.5 GFLOP/s (CPU) and 5.01 TFLOP/s / 16 = 313 GFLOP/s (GPU) measured here. On the whole M1 Pro the 16 GPU cores at 5,008 GFLOP/s beat the 8 CPU threads by a factor of 8.9.
Predict before it plays: the GPU core runs at 1.296 GHz, the CPU core at 3.2 GHz. Which finishes the same tile first, and by how much? The same 64 × 64 × 64 piece of a matrix multiply (262,144 FMAs) is given to four engines on one time axis; the buttons on the figure pick two of them.
The costs. A GPU thread is slow and a GPU is bad at anything sequential or branchy, so the CPU stays: it runs Python, launches every kernel and feeds the data (the symptom table in section 10). A systolic array reads each operand from memory once and reuses it hundreds of times without a register file, which saves energy, but anything that is not a large dense matmul runs on a much slower vector unit, and the program goes through a compiler (XLA).
A GPU must keep tens of thousands of lanes fed while memory takes hundreds of cycles to answer; its layout follows from that. The H100 is the reference because most published training numbers were measured on it. Six parts, each defined once here and taught on GPU architecture:
Sources: NVIDIA Hopper in depth, Hopper tuning guide, H100 product page vendor spec.
What a root must say about GPUs. Peak FLOPS are tensor-core FLOPS, reached only when the matmuls are big enough to fill every SM with tiles and the data arrives in time; everything else (normalisation, softmax, the optimizer) runs on the ordinary lanes, a sixteenth of the tensor-core rate in fp32, and is usually memory-bound anyway (section 5). Each generation adds a format and machinery to keep the tensor cores fed: Hopper's TMA copy engine and FP8, Blackwell's tensor memory, FP4 and two dies presented as one GPU. nvidia-smi "utilization" only says some kernel was running; the profiler's tensor-pipe utilisation is the real number.
Memory has two numbers that pull against each other: capacity (what fits) and bandwidth (bytes per second to the chip). SRAM sits on the processor die (registers, shared memory, caches: about 120 MB on an H100), answers in a few cycles and costs area; DRAM holds the gigabytes on separate dies, and accelerators differ mainly in how it is packaged:
| Memory | Where it sits | Example | Capacity | Bandwidth |
|---|---|---|---|---|
| HBM | DRAM dies stacked beside the GPU on a silicon interposer; a very wide bus (1,024 bits per stack for HBM3, 2,048 for HBM4) | H100 SXM, 5 HBM3 stacks; B200, HBM3e | 80 GB; 180 to 192 GB | 3.35 TB/s; 8 TB/s |
| GDDR7 | Separate chips around the GPU on the board; a narrow bus clocked fast | RTX 5090, 512-bit bus at 28 Gbps per pin | 32 GB | 1.79 TB/s |
| LPDDR5 | In the processor's package, shared by CPU and GPU | Apple M1 Pro (this laptop) | 16 GB here | 200 GB/s published, 165 measured |
| SRAM only | No DRAM for the model: weights spread over many chips' SRAM | Groq 3 LPX rack announced, 256 chips | 128 GB per rack | 40 PB/s per rack |
Sources: Rambus on HBM, H100, DGX B200, RTX Blackwell whitepaper, Apple M1 Pro, Groq vendor spec; 165 GB/s from the Roofline lab measured here. B200 is 180 GB per GPU in DGX and HGX B200 and 186 to 192 GB in other listings; the Chip atlas keeps each SKU apart.
Why bandwidth bounds decode. Generating one token at batch 1 reads every weight once to do one FMA with it, so time per token ≈ bytes of weights / bandwidth: Llama 3.1 8B's 16.06 GB at 3.35 TB/s is 4.8 ms, so at most about 209 tokens per second on an H100, while its tensor cores sit idle 99.7% of the time derived. Measured on this laptop's GPU, one 8,192 × 8,192 fp16 linear layer (134 MB of weights) took 0.80 ms at batch 1, reading weights at 168 GB/s, the memory's full speed, and 64 times the arithmetic at batch 64 took only 3.52 ms measured here: batching is how serving turns bandwidth-bound decode into compute-bound work (for this 8B model on an H100 the Performance calculator puts the crossover around batch 308 at short context). Divide bandwidth by capacity and you get the ceiling for a model that fills the chip:
What it decides for training. Capacity decides how the step is split: 128.5 GB of state does not fit one 80 GB H100, so it is sharded (ZeRO, FSDP on Distributed Training) or activations are recomputed. Bandwidth sets the speed of everything that is not a big matmul, including the optimizer update, which reads and writes every byte of state once per step. Serving adds the KV cache, 128 KiB per token for this model, whose sizing is Long context's.
Bandwidth / capacity, the batch-1 tokens-per-second ceiling of a model that fills the memory, whatever the FLOPS. Vendor figures (H200 141 GB at 4.8 TB/s, MI300X 192 GB at 5.3 TB/s, MI355X 288 GB at 8 TB/s, TPU v6e 32 GB at 1,638 GB/s, TPU7x 192 GiB at 7,380 GB/s; sources in the Chip atlas); M1 Pro measured. derived
A byte saved per number is saved three times: in capacity, in bandwidth and, when the tensor cores have a path for the format, in arithmetic (a smaller multiplier fits more times in the same area), so halving the bits roughly doubles peak FLOPS. The price is range and precision. The formats a training engineer meets:
| Format | Bits: sign, exponent, mantissa | Where it is used in training |
|---|---|---|
| FP32 | 1, 8, 23 | Master weights and optimizer states; accumulators inside the tensor cores |
| TF32 | 1, 8, 10 | NVIDIA's tensor-core mode for fp32 inputs (Ampere on): fp32 range, BF16-like precision, stored as 32 bits |
| BF16 | 1, 8, 7 | The default for weights, activations and gradients: fp32's range, so no loss scaling needed |
| FP16 | 1, 5, 10 | More precision, much less range; needs loss scaling to keep small gradients from flushing to zero |
| FP8 (E4M3, E5M2) | 1, 4, 3 and 1, 5, 2 | Matmul inputs in FP8 training (Hopper on), with a scale per tensor or per block |
| FP6 (E3M2, E2M3), FP4 (E2M1) | 6 and 4 bits | Mostly inference and quantised weights (Blackwell, MI355X); FP4 training is research |
Block scaling. An 8-, 6- or 4-bit number cannot cover the spread of values in a whole tensor, so the newest formats give each small block of values its own scale factor. The OCP MX formats (MXFP8, MXFP6, MXFP4, MXINT8) share one 8-bit power-of-two scale (E8M0) per block of 32 values (OCP MX spec v1.0, Sep 2023). NVIDIA's NVFP4 uses blocks of 16 with an FP8 (E4M3) scale, plus one FP32 scale per tensor (NVIDIA, Jun 24 2025). The scales cost bits: MXFP4 stores 4 + 8/32 = 4.25 bits per value, NVFP4 4 + 8/16 = 4.5 derived. Blackwell's tensor cores apply the scales in hardware, inside the multiply.
Predict, then switch the format below: going from BF16 to FP8, which of these chips get no faster at all?
What it shows. A chip only gets faster at a format it has silicon for: the A100 has no FP8 path, the H100 no FP4, TPU v6e lists no FP8 figure, and on those chips the smaller format saves memory but not arithmetic. Within a chip each halving doubles the peak (H100: 989.5 BF16, 1,979 FP8; B200: 2,250, 4,500, 9,000). And consumer cards are half-rate where training lives: the RTX 5090 does 419 TFLOPS of FP16 with FP16 accumulation but 209.5 with the FP32 accumulation that training needs (RTX Blackwell whitepaper, Appendix A).
The cost. FP8 training needs a scale per tensor or per block and keeps master weights, the optimizer and accumulation in higher precision; Llama 3 405B reported its throughput in BF16 (Llama 3, Table 4), DeepSeek-V3 trained in FP8 mixed precision (DeepSeek-V3 report). A run that is unexpectedly slow on a new GPU is often doing its matmuls in a format the tensor cores do not accelerate.
Each chip has two speeds, peak FLOP/s and memory bandwidth; each operation needs a certain number of FLOPs per byte it moves, and that number says which speed it gets. This is the page's core idea in one formula:
The batch is the intensity. A linear layer reading bf16 weights does about one FLOP per byte per token that shares the weight read: decode at batch 1 sits near 1, a training step with thousands of tokens per sequence far right of every ridge, and elementwise operations below 1 on every chip ever made (which is why they are fused). A third regime, overhead-bound, is the GPU waiting on Python and launches. Ridge points compared, dense, in FLOPs per byte, are in the chart.
MFU: how far below the roof a run sits. Model FLOPs utilisation = tokens per second × 6N / (chips × dense peak in the matmuls' format). Counting recomputed FLOPs too gives hardware FLOPs utilisation (HFU), which flatters. Llama 3 405B on 16,384 H100s reported 400 TFLOP/s per GPU and 41% MFU (400 / 989.5 = 40.4% recomputed), 43% on 8,192 GPUs and 38% at 131,072-token sequences (Llama 3, Table 4): around 40% is what a very well tuned dense run at scale reaches. For the running example at 40% MFU the step's arithmetic takes 64 s on one H100, 8.0 s on 8 and 1.0 s on 64 derived; the Performance calculator adds memory and communication and finds 1.17 s on 64 GPUs with hybrid sharding (34% MFU) but 1.95 s with flat FSDP across all 64 (20%). The difference is the network (section 6).
Attention adds FLOPs beyond 6N at long context; the Performance calculator counts them as PaLM's 12LHQT, the full score square (the convention of published MFUs), while a causal kernel does about half. Both conventions, counted on the real model: Performance math.
Peaks and bandwidths from sections 3 and 4 (A100 SXM 80 GB: 312 TFLOPS BF16, 2,039 GB/s, NVIDIA A100) derived. The M1 Pro point uses the measured fp16 peak (5.06 TFLOP/s) and copy bandwidth (165 GB/s) from the Roofline lab: ridge 30.7 measured here.
The state does not fit one GPU and the arithmetic would take 64 s on one, so the step is split, and the GPUs must exchange at least the 16.06 GB of gradients. The links form a ladder, each rung roughly an order of magnitude slower than the one above:
Vendor figures usually add both directions: NVLink 4 is "900 GB/s total" (Hopper in depth), NVLink 5 "1.8 TB/s" per GPU (Blackwell); halved here. InfiniBand: Quantum-X800; an AWS p5 server has 400 Gb/s per GPU (AWS p5). PCIe 5.0: 32 GT/s per lane derived. vendor spec
Definitions. Scale-up links (NVLink with NVSwitch, AMD Infinity Fabric, Google's ICI) join a small group of chips closely enough to read each other's memory; the group is the NVLink domain. Scale-out links (InfiniBand, or RoCE: RDMA over Ethernet) join servers through switches and reach tens of thousands of GPUs. An all-reduce leaves every GPU with the sum of everyone's data; a ring all-reduce sends 2(N−1)/N times the data per GPU, so the 8B's gradients over 8 H100s are 28.1 GB per GPU: 62.5 ms over NVLink 4, 0.56 s over one 400 Gb/s NIC per GPU derived.
The rule that spans this topic. With 8 GPUs the step's arithmetic takes 8.0 s, so even the InfiniBand all-reduce is small and overlaps the backward pass: data parallelism tolerates the slow network. Tensor parallelism all-reduces activations twice per layer forward and twice back, on the critical path between layers: for Llama 3.1 70B with 8-way tensor parallelism at 8,192 tokens that traffic is 16% of the layer's compute time over NVLink but 141% over a 400 Gb/s NIC (the Performance calculator). So tensor and expert parallelism stay inside the NVLink domain; pipeline and data parallelism cross servers. Llama 3 405B used tensor parallelism of 8, exactly one server, in every configuration (Llama 3, Table 4); DeepSeek-V3, with 160 GB/s NVLink and 50 GB/s InfiniBand on H800s, avoided tensor parallelism entirely (DeepSeek-V3 report). The NVL72 rack exists to make the domain 72 GPUs instead of 8; TPUs instead join chips directly to their neighbours over ICI in a torus, with optical switches between 64-chip cubes.
Two RTX 5090s in one workstation have no NVLink, only PCIe 5.0 (about 63 GB/s each way). Their ring all-reduce of the 8B's 16.06 GB of gradients sends 2 × 1/2 × 16.06 = 16.06 GB per GPU: at 63 GB/s that is 255 ms derived. Workable for data parallelism with a long step; tensor parallelism across PCIe pays that price on every layer.
Llama 3 trained on RoCE at 400 Gb/s per GPU in a three-layer network of 24K GPUs (Llama 3 report); DeepSeek-V3 used 16-way pipeline, 64-way expert parallelism across 8 nodes and ZeRO-1 data parallelism, and its all-to-all kernels needed only 20 SMs to saturate both links.
Every accelerator answers the same three demands with a different bet about which one matters most. One row each, with the numbers that show the bet; every spec, dense and sparse, is in the Chip atlas.
| Who | The bet | The numbers that show it | The cost |
|---|---|---|---|
| NVIDIA (A100 to B300; Rubin next) | General-purpose GPUs, the software everyone targets first (CUDA, NCCL), and a scale-up domain grown from 8 GPUs to 72 per rack | Dense BF16 312, 989.5, 2,250 TFLOPS (A100, H100, HGX B200); Vera Rubin 4 PF and 288 GB of HBM4 per GPU (NVIDIA, May 31 2026); Google's A5X, the first Vera Rubin cloud capacity, went live for one customer on 21 October 2026 (not generally available on that date; NVIDIA blog) | Price and supply |
| AMD Instinct (MI300X to MI455X) | More memory per GPU at similar compute | MI300X 192 GB when H100 had 80; MI355X 288 GB at 8 TB/s, 2,516.6 TFLOPS BF16 dense (AMD MI355X); MI455X brings a 72-GPU rack, Helios | Software: an independent test found BF16 matmuls at about 620 TFLOP/s on MI300X against 1,307 peak, and about 720 on H100 against 989.5 (SemiAnalysis, Dec 22 2024): spec sheets do not rank chips |
| Google TPU (v5e to TPU7x Ironwood) | Systolic arrays and a compiler instead of threads and caches; switchless torus pods | 9,216 Ironwood chips per pod, each 2,307 TFLOPS BF16 with 192 GiB at 7.38 TB/s (TPU7x docs) | JAX and XLA (or PyTorch/XLA); rented from Google |
| AWS Trainium (Trainium2, Trainium3) | Vertical integration: chip, NeuronLink, Neuron SDK and data centre, priced against NVIDIA's margin | Trainium2 667 TFLOPS BF16, 96 GiB at 2.9 TB/s (Neuron docs); Trainium3 UltraServers join up to 144 chips | Porting to Neuron |
| Intel Gaudi 3 | Ethernet everywhere: 24 × 200 GbE RDMA ports on the chip serve both scale-up and scale-out, so a node needs no switch chip | 1,835 TFLOPS BF16 (and FP8 at the same rate), 128 GB of HBM2e at 3.67 TB/s, two compute dies (Hot Chips 2024) | An 8-chip domain; the successor stayed a test chip |
| SambaNova (SN40L) | Capacity and dataflow: a third memory tier and whole subgraphs fused into one pipelined kernel | 520 MiB of SRAM, 64 GiB of HBM and up to 1.5 TiB of DDR per socket; 638 TFLOPS BF16 (Prabhakar et al. 2024) | Bought as systems or used as a cloud service |
| Groq (now NVIDIA Groq 3 LPX) | No DRAM for the model: weights in SRAM across many chips, every transfer scheduled by the compiler | LPX rack announced: 256 LPUs, 128 GB of SRAM, 40 PB/s (Groq) | Hundreds of chips to hold one model; the bet is batch-1 latency |
| Cerebras (WSE-3) | Do not cut the wafer: a model that fits never crosses a chip boundary | One 46,225 mm2 chip, 900,000 cores, 44 GB of SRAM at 21 PB/s (Cerebras, Mar 13 2024); the 125 PF headline is sparse | Whole systems (CS-3, up to 27 kW each) |
Machine by machine, with each design's mechanism and what it changes in training code (and Etched, in-house ASICs and who can buy each): TPUs and other accelerators; the AMD chip itself: GPU architecture. Dated availability (Helios shipping, TPU deals, rental prices) is in the tech-news issues.
Hardware numbers are quoted per chip, per server, per rack, per pod and now per gigawatt, and they are not interchangeable: per chip decides what fits, per scale-up domain which parallelism is affordable (section 6), per megawatt how much a power connection can host. Before comparing two figures, put them at the same scale and the same format, dense on both sides. What the scales look like:
| Scale (Blackwell, dense BF16) | Chips | Peak | HBM |
|---|---|---|---|
| One GPU (HGX B200) | 1 | 2.25 PF | 180 GB |
| One server (DGX B200, about 14.3 kW) | 8 | 18 PF | 1.44 TB |
| One rack (GB200 NVL72) | 72 | 180 PF | 13.4 TB |
| One gigawatt of facility power derived | about 466,000 | about 1,050 EF | about 84 PB |
Sources: HGX 8-GPU totals divided by 8; DGX B200; GB200 NVL72 (360 PF listed with sparsity, so 180 dense). The gigawatt row is 1 GW / (14.3 kW / 8 × 1.2): DGX B200 power per GPU (servers with CPUs and NICs, not switches or storage) and an assumed facility overhead (PUE) of 1.2; an order of magnitude, not a plan. The same name can mean two peaks: the GB200 version of the B200 runs at 2.5 PF BF16 dense, the HGX version at 2.25.




Three facts change how every other section is read. Watts per chip keep rising: A100 400 W, H100 700 W, Blackwell up to 1,200 W and Blackwell Ultra 1,400 W per GPU (NVIDIA, Aug 22 2025), MI355X 1,400 W, MI455X up to 2,500 W; above about a kilowatt per chip air gives way to liquid, so a 9,216-chip Ironwood pod spans "nearly 10 MW" (Google, Apr 2025) and comparisons are now quoted per megawatt. Lockstep jobs swing the grid: Llama 3's cluster saw its power draw move by "tens of megawatts" as all GPUs paused and resumed together. Failures are a hardware number: a 54-day snapshot of Llama 3 405B training on up to 16K H100s had 419 unexpected interruptions, about 78% attributed to confirmed hardware issues (Llama 3 report, Table 5), so checkpoint speed and automatic restart are part of the hardware budget, and MFU measured between failures overstates a run's real throughput.
Five lines of arithmetic before you rent anything, each from a section above:
Choosing, by job. Pretraining or full fine-tuning of a large model: the biggest NVLink domain and the most HBM you can get, then the network (InfiniBand or tuned RoCE, one NIC per GPU). Fine-tuning a small model, or LoRA: one 8-GPU server, or even one GPU. Batch-1 latency (chat, agents): bandwidth per dollar, or SRAM-based systems. Throughput serving: FLOPs per dollar at high batch, and memory capacity for the KV cache. Local development: a consumer GPU (fast, 32 GB, no NVLink, half-rate FP32-accumulate training math) or a Mac (slow but large unified memory). In every case the first question is whether your software stack runs well on it: a cheaper peak that your kernels cannot reach is not cheaper.
GPUs: Lambda 8-GPU instances per GPU-hour; TPUs: Google Cloud per chip-hour on demand (TPU pricing); both fetched 2026-10-05. Peaks are vendor figures, not achieved throughput; reserved and committed prices are lower and differ by provider; a TPU also means JAX or PyTorch/XLA. A ranking, not a quote. derived
The depth is on six child pages, each built around the same Llama 3.1 8B running example. Times are each page's Reading tab, as its header states on 2026-11-12.
The one table that needs every child: each symptom, its likely resource, and where it is taught.
| Symptom | Likely cause | How to check | Section |
|---|---|---|---|
| GPU "utilization" high but MFU low | Kernels running but memory-bound (elementwise ops, small matmuls) or not using tensor cores (fp32 matmuls) | Profiler: time by kernel, achieved bandwidth and tensor-pipe use; matmul dtypes | 2, 4, 5 |
| GPU idle between kernels | CPU-bound: Python, launches, the data loader | Timeline (torch.profiler, Nsight Systems): gaps between kernels; data loader wait time | 1 |
| Out of memory, or forced to a tiny batch | State plus activations exceed HBM | max_memory_allocated; the 16 bytes per parameter count | 3 |
| Throughput falls as GPUs are added | Communication that does not overlap, or traffic crossing a slow tier | NCCL time in the timeline; which parallelism crosses which link | 6 |
| Fine on 8 GPUs, slow on 16 | Tensor or expert parallelism now spans servers | Map each parallel group to NVLink domains | 6 |
| Same code, slower on one node | A degraded GPU, link or NIC, or thermal throttling | nvidia-smi clocks and power; per-rank step times; NCCL bandwidth tests | 8 |
| Runs restart often | Hardware failures at scale (GPUs, HBM) | Failure logs; checkpoint time against time between failures | 8 |
| New GPU barely faster than the old one | Software not using the new formats or features; bound by bandwidth or network | Roofline position of the hot kernels on both chips | 4, 5 |
Every accelerator an ML engineer is likely to meet in October 2026, on one set of axes: how fast it multiplies, how much memory it has, how fast that memory is, how chips are joined, how much power it draws and what it costs to rent. Each number links to the vendor page or datasheet it came from; independent measurements sit beside them, never mixed in.
A vendor headline mixes a scale (rack or chip), a sparsity convention and a number format. Strip them one at a time and the 364x gap between a GB200 NVL72 rack and an H100 becomes about 2.5x per chip at equal footing. The steps play once the figure is in view; the buttons on it pick another pair.
Click a column to sort, a row for every field with its source, and tick up to three rows to compare. announced = not shipping in volume yet; figures are the vendor's announced ones. derived = divided from a rack figure or converted (the row's detail says how). Blank = not published.
Tap a point for its values. Dates are the vendor's announcement or launch (each row's detail says which). Log scale.
A matrix multiply needs both arithmetic and bytes from memory. The ridge point, peak FLOP/s divided by bandwidth, is how many operations a kernel must do per byte it reads before arithmetic, not memory, is the limit (the Roofline lab measures it on a real GPU). Six NVIDIA generations, all scaled to the A100, one step each:
The dashed lines are the arithmetic intensity of real work, from the formula in the Roofline lab: a linear layer reading BF16 weights does about one FLOP per byte per token in the batch, so decoding one sequence sits near 1, a batch of 64 near 64, and a 4,096 x 4,096 x 4,096 training matmul near 1,400 (each element read once; FP8 doubles these, FP4 quadruples them). Anything left of a chip's bar is memory-bound on that chip.
Kept apart on purpose. Each bar is a measured number as a share of the same chip's dense vendor peak, at the same format. Nothing here was run on NVIDIA or AMD hardware by this page; the M1 Pro rows were measured on the laptop this page was built on.
Peak PFLOP-hours per dollar = dense BF16 peak (PFLOP/s) x 1 hour / hourly price. It is a ceiling: at a realistic 40% of peak, multiply by 0.4. Prices change monthly; each carries its fetch date. The Performance calculator turns these into the cost of a training run.
Before you rent a single GPU, five lines of arithmetic tell you whether a model fits, how long a run takes, what it costs, how fast a deployment can answer, and how much of the time goes to the network. This tab does that arithmetic with every input visible, checks it against figures labs have published, and ends with interview-style drills.
config.json on Hugging Face. Nothing was run on an NVIDIA, AMD or Google chip. A computed number is a ceiling (the best the hardware allows) or an estimate at an efficiency you choose; real systems land below it, and the Roofline lab measures by how much on a real GPU. The formulas are checked against a Python reference on 507 values (all match), and the defaults are checked against published figures in the checks table.N is the number of learned numbers in the model (8.03 billion for Llama 3.1 8B). D is how many tokens (word pieces) it trains on. For a mixture-of-experts (MoE) model, only some experts run per token: the active parameters set the compute, the total set the memory.
A FLOP is one floating-point add or multiply. Each weight does one multiply and one add per token going forward (2 FLOPs) and about twice that going backward (4), so training costs about 6 N D FLOPs and generating one token about 2 N.
A chip's peak is its datasheet FLOP/s at a given precision (dense, no sparsity). MFU, model FLOPs utilisation, is the useful FLOPs a run actually achieved divided by that peak. 35 to 45% is good for large dense training.
Capacity (GB) decides what fits on the chip; bandwidth (TB/s) decides how fast it can be read. An H100 SXM has 80 GB of HBM (stacked memory next to the chip) read at 3.35 TB/s.
While generating, a model keeps every past token's attention keys and values: the KV cache. Prefill processes the whole prompt at once (lots of maths per byte); decode then makes one token per step, rereading all weights and the cache each time (little maths per byte).
An all-reduce sums a tensor across GPUs so each ends with the total (how gradients are averaged). Inside a server GPUs talk over NVLink (450 GB/s each way per H100); between servers over InfiniBand or Ethernet NICs, typically 400 Gb/s = 50 GB/s per GPU.
Pick a preset or set every input. The bar is one GPU's memory to scale against its capacity; the numbers below it are the whole run.
The same step of Llama 3.1 8B (64 sequences of 8,192 tokens: 524,288 tokens) on H100s, sharded with FSDP (ZeRO stage 3: each GPU keeps 1/n of the weights, gradients and optimizer state and gathers the full weights layer by layer when it needs them). Watch where the time goes when the step moves from one GPU, to a server whose eight GPUs share NVLink, to eight servers joined by 400 Gb/s NICs, and then to the fix (HSDP: shard inside each server, replicate across servers).
Model of the step illustrative inputs: 40% MFU while computing (an assumed, typical figure), bf16 weights and gradients gathered and reduce-scattered once per micro-batch (PyTorch FSDP's default re-gathers each micro-batch), a flat ring limited by its slowest link (NCCL's bus-bandwidth model), activations with FlashAttention as counted for Llama's reference code on Performance math (49h per token per layer plus FP32 logits; the GPT-3 count, 34sbh, is about 1.6 times lower), the optimizer step reading and writing 28 bytes per parameter at full HBM bandwidth. Real runs add latency, imperfect overlap and stragglers; the shape of the comparison, not the third digit, is the lesson.
Serving has two phases. Prefill runs the prompt through the model in one big batch of tokens: compute-bound, so its time is FLOPs over peak. Decode then makes one token per sequence per step, and every step must read all the weights it uses plus every sequence's KV cache from memory: at small batch it is memory-bound, so its time is bytes over bandwidth.
Llama 3.1 8B in BF16 on one H100. The same step, drawn to the same time scale: first one sequence, then 64. The weights are read once either way; each sequence adds its own KV cache.
A ring all-reduce over n GPUs sends each GPU's data around the ring twice (once to sum, once to share the sum), so each GPU moves 2(n−1)/n times the tensor and the time is set by the slowest link: t = 2(n−1)/n × S / B, the bus-bandwidth model of NCCL's tests. Reduce-scatter and all-gather each move (n−1)/n.
Link figures (hover a bar for its source): Rubin's NVLink 6 appears twice because NVIDIA prints two numbers, 3.6 TB/s per GPU (Rubin platform blog and HGX page; 260 TB/s per NVL72 rack) and 3.0 TB/s over 36 links (NVLink and Vera Rubin NVL72 pages; 216 TB/s per rack), without saying what the difference counts. MI355X: 7 Infinity Fabric links of 153 GB/s each, both directions (AMD product page). The B300-class NIC row is NVIDIA's HGX reference, 1.6 TB/s per 8 GPUs; AWS P6-B300 provides half (6.4 Tb/s of EFA per instance, so the 400 Gb/s row).
Data parallelism exchanges gradients once per step. Tensor parallelism (Megatron-style: each layer's matrices split across GPUs) must all-reduce the layer's activations four times per layer per micro-batch (twice forward, twice backward), on the critical path. Its traffic per token is about 16 h bytes per layer against about 6 × 12h²/TP FLOPs of compute, so the ratio does not depend on batch: only a fast link keeps it small.
Every formula on this tab, applied to a case a lab or paper published. "Independent" means our inputs did not come from the figure we compare against; "derived" means we computed something the source does not state.
| What, and how it was checked | This tab | Published |
|---|
Interview-style questions. Commit to an answer, then reveal the worked arithmetic (computed by the same functions as the calculators above).
Every kernel a GPU runs is limited by one of two things: how fast the chip can do arithmetic, or how fast it can bring the numbers in from memory. The roofline is a one-line picture that tells you which, before you profile anything. This tab measures a real roofline on a real GPU (the 16-core GPU of an Apple M1 Pro laptop, the only GPU available here), places real measured kernels on it, then places the same operations on the published rooflines of datacenter chips.
Three terms, then one formula.
a*b+c in one instruction) counts as 2. FLOP/s is how many per second; the chip's peak is its maximum, set by the number of arithmetic units times the clock.The running example on this tab is one linear layer, y = x WT, with an 8192 × 8192 weight in fp16 (128 MB; Llama 3 70B has a model dimension of 8192 (Llama 3 paper, Table 3), so their query and output projections have this shape). At batch 1 (one token being generated, as in LLM decoding) every weight is read once and used for one multiply-add: 2 FLOPs per 2 bytes, AI ≈ 1. At batch 64 each weight read is used 64 times: AI ≈ 63. Same weight, same code, a different side of the ridge.
Try: choose the linear layer and drag the batch from 1 to 4096 on the H100, then on the M1 Pro; switch the precision to FP8 on B200 and watch the ridge move right; tick "all chips" to compare their roofs.
The running example, measured: the same 8192 × 8192 fp16 weight multiplied by a batch of 1, 2, 4, ... 2048 tokens on the M1 Pro GPU. Each step is a real measurement (median of three runs). The toggle on the figure replays the same shapes on an H100's published roof, computed, so you can see how much bigger the batch must be before a datacenter GPU stops waiting for memory.
A roofline has two lines, and each is measured with a kernel that does nothing else. Peak compute: every GPU thread runs 16 independent chains of FMAs on numbers held in registers, so no memory is touched; independent chains matter because one FMA has to wait a few cycles for the previous result in its own chain. Bandwidth: copy a 512 MB array (far larger than any cache) as 4-wide vectors, one per thread. Both are custom Metal kernels written through MLX's mx.fast.metal_kernel; the scripts are in the repository (src/roof/, run_all.sh).
#pragma unroll; it is one reason a "peak" number from a microbenchmark is only as good as the microbenchmark.Two more things the numbers show. fp16 runs at the same rate as fp32 here: the M1 has no separate matrix units, so both use the same arithmetic units (on an H100, BF16 on tensor cores is times its plain FP32 rate). And the measured bandwidth is of Apple's 200 GB/s: a datasheet bandwidth is the memory interface's theoretical rate, and real kernels typically get 80 to 90 percent of it. The batch-1 matrix-vector product below read its weights at , a little above the copy kernel, which is why a measured roof is a lower bound on the true one.
For each kernel: its arithmetic intensity (computed from its shape, each operand read once), the FLOP/s it achieved, and how close that is to the roof at its intensity. The small numbers under "Achieved" are the slowest and fastest of all 21 trials (3 runs of 7); a single slow trial means another job briefly took the GPU. "Limited by" is the honest reading, not a profile: no GPU performance counters were read here.
The roofline gives a ceiling; the kernel decides how close you get. Three implementations of the same fp32 2048 × 2048 matrix multiply, same AI (341 FLOPs per byte if each matrix is read once), measured:
Model FLOPs Utilization (MFU) is the roofline turned into one training number: the FLOPs your model mathematically needs per second, divided by the hardware's peak.
On the M1 Pro, MLX's fp16 4096 × 4096 matmul alone achieves of the measured peak and of the theoretical 5,308 GFLOP/s (16 cores × 128 arithmetic units × 2 × 1.296 GHz, an independent derivation by Philip Turner's metal-benchmarks; Apple publishes no TFLOPS figure). Which denominator you choose changes the MFU by several points, so always say which one. A whole training step is far below a single matmul, because it also runs memory-bound kernels (normalisation, activations, softmax, optimizer), waits on communication between GPUs, and sometimes recomputes activations. Meta's Llama 3 405B pre-training, on H100s:
Source: The Llama 3 Herd of Models, Table 4 (TFLOPs per GPU and BF16 MFU as printed). Recomputed column: TFLOPs per GPU ÷ 989.5 (H100 SXM dense BF16, NVIDIA). The middle row recomputes to 40.4% against the printed 41%: the paper does not say which peak or rounding it used.
Defaults: 405B parameters at 177 tokens per second per H100, back-solved from Table 4's 430 TFLOPs per GPU (so they reproduce 43% by construction, not independently).
The roofline itself and how to measure it; AI as a property of the operation and its shape; decode being memory-bound and big matmuls compute-bound; tiling into fast on-chip memory (threadgroup memory here, shared memory on NVIDIA); loop overhead and independent instruction chains; a library kernel beating a hand-written one by an order of magnitude; SIMD groups of 32 threads (NVIDIA calls them warps).
The numbers. No tensor cores here, so fp16 = fp32 rate (on an H100 BF16 is about 15 times FP32); a ridge of about FLOP/byte against about 295 on an H100 BF16, so the same batch crosses at a different place; LPDDR5 unified memory shared with the CPU instead of HBM; different cache sizes; no NVLink or any link between GPUs. Kernel-specific numbers (which tile size, which kernel the library picks) differ completely.
src/roof/ (scripts code/roof_gpu.py, data out/run_*.json, Python reference code/recompute.py); M1 Pro CPU: C++: the machine underneath, section 9 (roof.cpp).The tabs of this page, the knowledge base pages it leans on, and the best outside resources, each with an approximate time estimate. Links checked on 2026-10-05; times are each page's header, checked on 2026-10-24.
Every accelerator an ML engineer meets (27, now with Gaudi 3 and SambaNova SN40L), vendor specs and independent measurements apart, per chip, server and rack. 13 min, plus 4 in closed details
Training memory and time, decode and prefill, all-reduce and tensor-parallel cost, checked against published runs; activations as counted on Performance math. 18 min
The M1 Pro GPU's measured roofline with real kernels on it, published rooflines of datacenter chips, MFU. 16 min, plus 1 in closed details
SMs, warps, tensor cores, Ampere to Blackwell and Rubin, and the AMD MI-series chip. 34 min, plus 9
HBM, GDDR, SRAM, capacity against bandwidth, CXL and offload, why bandwidth bounds decode. 27 min, plus 9
Systolic arrays, TPU pods, AMD, Trainium, Groq, Cerebras, Gaudi, SambaNova. 39 min, plus 7
PCIe, NVLink, InfiniBand and RoCE, TPU tori and optical switches, collective cost models; why the network picks your parallelism. 34 min, plus 14
FLOPs, the roofline, memory, MFU, tokens per second, costing a run: the Performance calculator derived. 24 min, plus 11
Failures at scale, the per-gigawatt view. 28 min, plus 3
The sibling root: threads, warps, memory hierarchy from the programmer's side, kernels, Triton, compilers, profiling. 28 min, plus 4
CPU caches, SIMD and a measured roofline of this laptop's CPU. 33 min, plus 21
One token through llama.cpp's code, on this laptop's CPU and GPU. 37 min, plus 39
Floating point bit by bit, precision formats, stable softmax.
Training and serving in lower precision, and what it costs in quality. 34 min, plus 11
Data, tensor, pipeline, expert and context parallelism, ZeRO and FSDP. 32 min, plus 5
What fails, detection, checkpoint and restart, recovery designs.
IP, TCP, UDP and QUIC: what RDMA skips.
Processes, memory, and its child on virtualization and the GPU driver stack (page).
Batching, KV cache management, serving engines. 34 min, plus 3
The software that drives these chips. 31 min, plus 15; 32 min, plus 13
Google DeepMind's book on systems for LLMs: rooflines, sharding, TPUs, and a GPU chapter (Aug 2025). The single best text for this topic. about 6 h; GPUs chapter 1 h
Rooflines for compute, memory and network, done properly. 45 min
Short, accurate definitions of every GPU term, hardware and software. 30 min for the core pages
Horace He: compute-bound, memory-bound and overhead-bound, with intuition. 25 min
EleutherAI: training FLOPs and memory budgets. 35 min
kipply: the inference side, KV cache and latency math. 40 min
Where MFU was defined. 15 min for the appendix
Hwu, Kirk and El Hajj (PMPP), 4th edition on the publisher's page: the textbook for GPU architecture and CUDA. a book; 4 h for the architecture chapters
The SM and third-generation tensor core in detail. 45 min
H100: TMA, clusters, FP8 (its table is preliminary; use the product page's figures). 40 min
Blackwell and Blackwell Ultra side by side, TMEM, NVFP4 (Aug 2025). 25 min
RTX 5090 and its Appendix A of dense and sparse rates by accumulate type. 40 min
MI300X: chiplets, Infinity Cache, Infinity Fabric. 40 min
Why systolic arrays, and the optically switched supercomputer. 45 min each
Microbenchmarks of H100 latency, bandwidth and tensor cores (also Benchmarking and Dissecting Hopper). 60 min
Microbenchmarks of Blackwell (also Microbenchmarking Blackwell: read its configuration section; its tensor-core tables are internally inconsistent, an H200 BF16 result above that chip's 989.5 dense peak, so no throughput figure from it is used here). 60 min
The classic method paper the later ones follow. 60 min
Independent microarchitecture articles; this one measures H100 caches and bandwidth (Jul 2023). 30 min per article
Datacenter hardware, networking and accelerator economics; its MI300X vs H100 training test is cited in section 7. Many posts paywalled. 45 min per deep dive
Audited time-to-train on real systems, the closest thing to an independent hardware comparison. 20 min to read one round
What each collective does and how NCCL picks algorithms. 40 min for the core pages