TPU
What is TPU?
In one sentence: A TPU, or Tensor Processing Unit, is Google's custom chip designed to train and run neural networks.
What does TPU look like?
Many Gemini models were trained on large clusters of TPUs.
Why does TPU matter?
TPUs are one of the main alternatives to NVIDIA GPUs for big AI work.
TPU vs. GPU
GPUs are flexible parallel processors backed by the broad CUDA ecosystem, while Google's TPUs are purpose-built matrix systolic arrays wired into giant high-speed pods solely for neural network math.
| Dimension | TPU | GPU |
|---|---|---|
| Architecture | Custom systolic matrix-multiply arrays | General SIMT cores + Tensor Cores |
| Availability | Mainly rented through Google Cloud | Buy the hardware or rent from almost any cloud |
| Software stack | JAX, XLA, PyTorch/XLA | CUDA, PyTorch, vLLM, TensorRT-LLM |
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/tpu/">TPU, explained simply</a> (The AI Math Dictionary)