← TPU Training Infrastructure

Glossary

Terms used across the TPU Training Infrastructure path.

activation function
A cheap, element-wise function — GELU, ReLU, sigmoid — applied to every element after a matmul to give the network its non-linearity. You don't need its math to operate the stack: on a TPU it's a handful of per-element ops on the VPU (the vector unit), not the MXU — which is exactly why XLA can fold it into the matmul's epilogue for free.
all-reduce
The collective that combines (e.g. sums) a value across every shard and hands all of them the result. The data-parallel gradient step: each device computes gradients on its slice of the batch, then one all-reduce makes everyone agree before the optimizer updates the weights.
arithmetic intensity
FLOPs performed per byte read from memory. High intensity (lots of reuse) keeps a chip compute-bound; low intensity leaves it memory-bound and idle.
asic
Application-Specific Integrated Circuit — a chip designed for one job. A TPU is an ASIC purpose-built for the matrix math in neural networks; it can't run general-purpose code.
auto-regressive decoding
Generating output one token at a time, feeding each token back in to produce the next. Every step re-reads the whole KV cache, so it's memory-bandwidth-bound, not compute-bound — the serving regime that inference-tuned chips (e.g. the TPU 8i) are built for.
bf16
bfloat16 — a 16-bit float with fp32's full 8-bit exponent range but fewer mantissa bits. Halves the bytes moved versus fp32 while staying stable for training; the default matmul type on TPUs.
boardfly
TPU 8i's network topology — a hierarchical optical-circuit-switched design with a ~7-hop diameter across 1,024 chips (vs 16 on a 3D torus), ~56% lower than a torus.
cae
Collectives Acceleration Engine — the TPU 8i (inference) block that replaces the four SparseCores; aggregates results across cores with near-zero latency, cutting on-chip collective latency ~5× (key for fast auto-regressive decoding).TPU 8t/8i deep dive
capacity mode
How you acquire TPU capacity: on-demand, reservation (committed, guaranteed), Spot (cheapest, preemptible), or DWS Flex-start (ephemeral, queued). Match the mode to the workload.
collective
A multi-device communication op — all-reduce, all-gather, reduce-scatter — that the partitioner inserts to make a sharded computation correct. The bytes a collective moves over ICI (in-slice) or DCN (cross-slice) are the real cost of parallelism: it's the network shuffle behind 'declare the layout, the compiler does the comms'.
coordinator
Process 0's rendezvous service that every host connects to at startup (jax.distributed.initialize) before any compute runs. It's a gang-scheduling / leader-election barrier over the DCN — and the #1 multi-host failure is a host that can't reach it (firewall, wrong IP, MTU), which surfaces as a barrier timeout, not a chip error.
dcn
Data-Center Network — the (slower than ICI) host-to-host network (the VPC) carrying cross-slice/Multislice traffic, host rendezvous, and checkpointing to GCS. MTU 8896 + firewall rules apply here, not to ICI.
dws flex-start
Dynamic Workload Scheduler, Flex-start mode — ephemeral, queued, low-cost capacity for bursty jobs; you wait in a queue, then get the slice for a bounded window.
fp4
Native 4-bit floating point on TPU 8t — a quarter of bf16's bytes per parameter (half of FP8's), so each FLOP moves less memory — higher arithmetic intensity, which speeds up memory-bound work.
fusion
An XLA optimization that merges a chain of operations (e.g. matmul + bias + activation) into a single kernel, so intermediate results stay on-chip instead of round-tripping through HBM. Same FLOPs, far fewer bytes moved — higher arithmetic intensity.
hbm
High-Bandwidth Memory — the fast on-package DRAM that feeds a TPU's compute units (≈95 GB at ≈2.8 TB/s on v5p).
hyperdisk ml
High-throughput attached storage for ML on GCP (alongside Filestore / Managed Lustre) — you attach it so the chips aren't data-starved; it's what the input pipeline reads from.
ici
Inter-Chip Interconnect — the high-bandwidth links wiring TPU chips into a slice and Pod (a 2D torus on v5e/v6e, a 3D torus on v4/v5p), bypassing the host network. Collective operations ride ICI.
ironwood
The 7th-gen TPU (v7 / TPU7x). Ships in two pod sizes — 256 and 9,216 chips; 9,216 is the megascale maximum.
kueue
Kubernetes-native job queueing on GKE — quota, priority, and gang-scheduling (all-or-nothing) for multi-host TPU slices.
kv cache
The running buffer of attention keys and values a model keeps for every token generated so far. It grows linearly with sequence length × batch — so at long context it can OOM a serving slice (a capacity problem), and because each new token must re-read the whole buffer, decoding is memory-bandwidth-bound (a throughput problem). Roughly 2 (K+V) × layers × heads × head_dim × seq × batch × dtype_bytes.
liquid cooling
Introduced at TPU V3 — the fix when rising performance density broke air cooling. Liquid carries heat away so chips can run hotter/denser.
mac
Multiply-accumulate — the primitive a systolic cell performs each beat: multiply an activation by a stored weight and add it to the running partial sum (acc += a × w).
mesh
A named N-dimensional grid of devices that you map shardings onto — e.g. a 2×4 mesh with axes 'data' and 'model'. Built with jax.make_mesh(...) (or jax.sharding.Mesh(...)); the axis names are exactly what a PartitionSpec refers to.
multislice
Joining multiple slices/Pods over the slower Data-Center Network (DCN) for jobs bigger than one Pod — cross-slice traffic is far slower than ICI.
mxu
Matrix Multiply Unit — the systolic array at the heart of a TPU TensorCore, classically a 128×128 grid of MACs (16,384 multipliers) that computes one 128×128 matrix-multiply tile per pass.TPU v5p docs
ocs
Optical Circuit Switch — introduced at TPU V4. Reconfigurable optical links that reshape slices and route around failed chips; the only way to wire very large Pods reliably.
padding
XLA zero-pads tensor dimensions up to the MXU tile (128, or 256 on v6e/v7) and the memory lanes (multiples of 8/128). Misaligned shapes carry wasted padded zeros — burning compute and on-chip memory, a common cause of surprise OOMs.
shard_map
The manual escape hatch (jax.shard_map): you write the per-device code and the collectives (e.g. jax.lax.psum) yourself instead of letting the partitioner infer them. More control, more rope — reach for it when automatic sharding can't express what you need.
sharding
A declaration of how a tensor's dimensions split across the axes of a device mesh. In JAX: a PartitionSpec (each entry is None = replicated, a mesh-axis name, or a tuple of axes) paired with the mesh as a NamedSharding. You describe the layout; the partitioner inserts whatever communication makes the math correct — like declaring a partition key and letting a query planner add the shuffle.
shardy
JAX's MLIR-based tensor partitioner — the default since JAX 0.7.1, successor to GSPMD. Given your shardings it propagates them through the program and inserts the collectives, so you never hand-write a send/recv.
sparsecore
A dedicated TPU unit (introduced on v4; on v5p, v6e, v7 and the training-focused TPU 8t) that accelerates very large embedding lookups (table reads mapping each token ID to its dense vector — a gather pattern) — the heavy part of recommendation/ranking and MoE routing. On the inference-focused TPU 8i it is replaced by a CAE.
spmd
Single Program, Multiple Data — every host runs the identical compiled binary, each operating on its own shard of the data. Think one container image fanned out to every node (or MPI ranks), not a driver-and-workers split: you declare how the data is laid out and the compiler generates the cross-device communication.
systolic array
A grid of multiply-accumulate cells through which data is pumped in rhythmic beats; each input is read from memory once and reused across many cells, trading memory traffic for throughput.
tensorcore
The compute core of a TPU chip: one or more MXUs (matrix units) plus a vector unit and scalar unit, fed from HBM.
tpu 8i
Google's 8th-generation inference TPU — replaces SparseCores with a CAE, carries 3× the on-chip SRAM (384 MB) to hold the KV cache, and uses the Boardfly network; tuned for serving/reasoning.
tpu 8t
Google's 8th-generation training TPU — SparseCores + an LLM decoder engine on a 3D-torus network, native FP4, 216 GB HBM; superpods of 9,600 chips scaling past a million per cluster.
tpu vm
The Linux host VM physically attached to the TPU chips. You SSH in with root access and run your JAX / PyTorch-XLA code; it dispatches the heavy compute to the TPU over PCIe.TPU system architecture
tracing
How JAX turns dynamic Python into a static graph: it runs your jitted function once with abstract, shape-and-dtype-only stand-ins to record the operations, freezing every tensor shape. Static shapes are what let XLA pre-plan exact HBM allocation and emit a fixed binary before anything runs — change a shape and it must re-trace and recompile.
trillium
The TPU v6e generation — cost-efficient, tuned for inference and smaller training runs; ≈100× the performance of V2.
vpu
Vector unit — the part of a TensorCore that handles non-matmul math (activations, softmax, normalization, elementwise ops), alongside the MXU and scalar unit.
weight-stationary
A systolic dataflow that loads weights into the array once and holds them put while activations stream through — maximising weight reuse.
xla
Accelerated Linear Algebra — the compiler that turns your traced JAX (or PyTorch-XLA) graph, expressed as StableHLO, into optimized TPU machine code. It fuses ops, lays out memory, and targets TPU/GPU/CPU from the same program.
xpk
Accelerated Processing Kit — Google's CLI for orchestrating TPU workloads on GKE. The real entry point: XPK → Kueue → GKE provisions DWS Flex-start nodes. You don't hand-submit raw pods for multi-host slices.