TPU hardware generations¶
Per-chip figures for the TPU generations this book uses, the same numbers as chapter 1, with notes where published figures differ. For what each part of a chip does and why the numbers matter for PyTorch code, read the chapter.
Say which number you mean
State whether a figure is per chip or per device, peak or measured, GB or GiB. A v7x chip is two PyTorch devices, so a per-device FLOP rate against a per-chip bandwidth is off by a factor of 2 (chapter 1, chapter 24).
Generations at a glance¶
TorchTPU 0.2.0 lists v5e, v5p, v6e and v7 (this book writes v7x) as validated; v4 is included for comparison only.
| Per chip | v4 | v5e | v5p | v6e (Trillium) | v7x (Ironwood) |
|---|---|---|---|---|---|
| PyTorch devices per chip | 1 (megacore) | 1 | 1 (megacore) | 1 | 2 |
| TensorCores per chip | 2 | 1 | 2 | 1 | 2 |
| MXUs per TensorCore | 4 of 128x128 | 4 of 128x128 | 4 of 128x128 | 2 of 256x256 | 2 of 256x256 |
| Peak bf16 TFLOP/s | 275 | 197 | 459 | 918 | 2,307 |
| HBM capacity | 32 GiB | 16 GiB | 95 GiB | 32 GiB | 192 GiB |
| HBM bandwidth | 1,200 GB/s | 819 GB/s | 2,765 GB/s | 1,638 GB/s | 7,380 GB/s |
| ICI | 3D torus, 6 links | 2D torus, 4 links | 3D torus, 6 links | 2D torus, 4 links | 3D torus, 6 links |
| ICI per link, one way | 45 GB/s | 45 GB/s | 90 GB/s | 90 GB/s | 90 GB/s |
| Chips per host | 4 | 4 or 8 | 4 | 4 or 8 | 4 (8 devices) |
| Largest pod | 4,096 chips | 256 (16x16) | 8,960 | 256 (16x16) | 9,216 |
| TorchTPU 0.2.0 | Not listed | Validated | Validated | Validated | Validated |
Where the numbers come from, and where published figures differ:
- Devices per chip, bf16 TFLOP/s and HBM capacity for v5e, v5p, v6e and v7x are TorchTPU's own hardware table (
csrc/common/tpu_hardware.cc). The scaling book rounds slightly differently: 96 GiB for v5p and 920 TFLOP/s for v6e. - HBM bandwidth, chips per host, MXU counts and the v4 column follow Google's published specifications and the scaling book, which gives the bandwidths in rounded form (for example 2.8e12 B/s for v5p).
- ICI per link is the scaling book's one-way figure. The TPU Agent Suite's v7x reference uses 80 GB/s for v7x; use 90 GB/s as the published peak and expect less.
Derived figures the book uses¶
| Figure | v6e | v7x | Where |
|---|---|---|---|
| bf16 ridge point, FLOPs per byte (peak FLOP/s over HBM bandwidth) | about 560 | about 313 | Chapter 2 |
| HBM per PyTorch device | 32 GiB | 96 GiB | Chapter 1 |
| VMEM | 128 MiB (one TensorCore) | 64 MiB per TensorCore, 128 MiB per chip | v7x: Chapter 1; v6e: JAX's tpu_info.py |
| SparseCores | 2 per chip | 2 per TensorCore (4 per chip) | v7x: Chapter 1; v6e: tpu_info.py and llm-d's Google Cloud TPU page |
The ridge point is the same per chip and per device, because both FLOPs and bandwidth halve per device on v7x.
Next generation (not yet validated)¶
| Per chip | v8i | v8t |
|---|---|---|
| PyTorch devices per chip | 2 | 1 |
| Peak bf16 TFLOP/s | 1,101 | 996.1 |
| HBM capacity | 309e9 bytes (288 GiB) | 231e9 bytes |
| Network | Boardfly topology | 3D torus |
| TorchTPU 0.2.0 | Near-term focus | Near-term focus |
The device counts, FLOP/s and capacities are from tpu_hardware.cc. The TorchTPU documentation describes TPU 8i HBM as "288 GB at 8.6 TB/s"; the source code records 309e9 bytes, which is 288 GiB, so read the documentation's figure as binary gigabytes. The same documentation gives ICI for TPU 8t and 8i as 19.2 "TBps" and TPU 8t DCN as 400 "GBps". Read as bits per second instead of bytes, the same figures are a factor of 8 smaller, so check Google's TPU 8 documentation for the unit before using them in a calculation.
As GKE and llm-d name them¶
When you deploy on GKE you meet the same chips under machine-type and node-selector names. This table is from the llm-d Google Cloud TPU provider page, not from chapter 1. Its units differ from the table above: it writes HBM in GB and gives ICI as a bidirectional per-chip total, not a one-way per-link figure, so do not mix its numbers with the ones above.
| Per chip | v6e (Trillium) | TPU7x (Ironwood) |
|---|---|---|
| Peak compute | 918 TFLOPs bf16 (fp8 at the same rate) | 2,307 TFLOPs bf16, 4,614 TFLOPs fp8 |
| HBM | 32 GB, 1,638 GB/s | 192 GB, 7,380 GB/s |
| TensorCores / SparseCores | 1 / 2 | 2 / 4 |
| Devices seen by the framework | 1 | 2 |
| ICI bandwidth (bidirectional) | 800 GB/s, 2D torus | 1,200 GB/s, 3D torus |
| DCN bandwidth | 100 Gb/s | 100 Gb/s |
| GKE machine types | ct6e-standard-1t, -4t, -8t |
tpu7x-standard-1t, -4t |
cloud.google.com/gke-tpu-accelerator |
tpu-v6e-slice |
tpu7x |
| Max chips per slice | 256 | 9,216 |
The same page states that the two chiplets of a TPU7x chip share a die-to-die link about 6 times faster than the ICI between neighbouring chips, and that google.com/tpu: N in a pod request counts chips while --tensor-parallel-size and --data-parallel-size count devices (chapter 20). The GKE provider page lists the TPU machine types ct5p, ct5lp (v5e), ct6e (v6e) and tpu7x (chapter 8).
References¶
csrc/common/tpu_hardware.cc: TorchTPU's hardware table (devices per chip, bf16 FLOP/s, HBM capacity)- How to Think About TPUs: MXU counts, HBM bandwidth and ICI per link
jax/_src/tpu_info.py: JAX's per-generation table, with VMEM per TensorCore and SparseCore counts- TPU system architecture: Google Cloud's description of chips, hosts, slices and pods
- TPU v7x specification: the TPU Agent Suite's v7x reference
- How TorchTPU works: TPU 8 figures
- TorchTPU supported feature set and future work: validated generations, v8i and v8t as near-term focus
- Google Cloud TPU: llm-d's GKE TPU page, with machine types, node selectors, bidirectional ICI, fp8 peak, DCN and chip and device counting
- Google Kubernetes Engine (GKE): TPU machine types on GKE
- Chapter 1's references: the documents behind the generation table