Learn AI Math

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.

TPUs are specialized for the matrix math AI needs. Google uses them to train its own models, like Gemini, and rents them through Google Cloud.

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.

DimensionTPUGPU
ArchitectureCustom systolic matrix-multiply arraysGeneral SIMT cores + Tensor Cores
AvailabilityMainly rented through Google CloudBuy the hardware or rent from almost any cloud
Software stackJAX, XLA, PyTorch/XLACUDA, PyTorch, vLLM, TensorRT-LLM

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.