TPU System Architecture
Updated Nov 09, 2024 ·
Overview
At the hardware level, each Cloud TPU chip combines specialized processing units for tensor operations.

info
Older TPUs (before Trillium) used 128x128 arrays, while Trillium uses larger 256x256 arrays.
Each MXU can perform up to 16,000 multiply-accumulate operations per cycle.
TPUs use bfloat16 for multiplication, and FP32 for accumulation. This helps balance speed and numerical accuracy.
Architecture
TensorCore
TensorCore is the primary compute engine in a TPU chip.
- Handles most tensor and matrix acceleration work.
- Appears one or more times per chip.
- Varies by TPU generation, such as v3, v4, v5e, and v5p.
TensorCore provides most of the chip-level acceleration you rely on for model compute.
Scalar unit
The scalar unit manages control and coordination tasks.
- Handles control flow logic.
- Computes memory addresses.
- Runs housekeeping operations needed by other units.
The scalar unit keeps TPU execution organized and predictable.