Breaking01 / AI
Google recommends 256 for two TPU model dimensions
Google also recommends LatentMoE to reduce the amount of token data sent to selected experts.
Google recommended in a developer blog post that designers of models for its tensor processing units (TPUs) align both reduction and output dimensions to 256. A reduction dimension is the axis along which an operation combines values.
The AI-Hypercomputer/tpu-codesign guide covers large language models and mixture-of-experts (MoE) models, which select a subset of experts for each input. The dimension rule fits systolic arrays, which pass data from one processing element to the next. For MoE models, Google recommended LatentMoE to compress token data sent to selected experts.
The guide also applies the hardware layout to parallel processing. Google recommended mapping the axes along which model computation is split directly onto the hardware’s physical links.