Google’s Tensor Processing Unit is a chip built for one job: the matrix math behind modern AI. Here is how it works, how it differs from a GPU, and when it makes sense for a business.
> Key points
- A TPU is a Google-designed ASIC for machine learning, built around a 128×128 systolic array that performs matrix multiplication efficiently.
- TPUs suit large, matrix-heavy AI workloads but are not suited to high-precision arithmetic, and they are available only through Google Cloud.
- Ironwood (7th generation) and Trillium (6th) are generally available; Google has announced eighth-generation TPU 8t and 8i as coming soon.
The short version
A TPU, or Tensor Processing Unit, is a chip Google designed specifically to run machine learning workloads. Google’s own documentation describes TPUs as “custom-developed, application-specific integrated circuits (ASICs) used to accelerate machine learning workloads.” In plain terms, a TPU gives up the flexibility of a general-purpose processor in exchange for doing one kind of math, large matrix multiplication, very quickly and efficiently.
Google announced the TPU in 2016, uses TPUs to train and serve its own Gemini models, and rents them to outside customers through Google Cloud. This explainer covers how a TPU works, how it differs from a GPU, which generations exist today, and when a business should consider one. For the wider market, see our guide to AI chips.
Why Google built its own AI chip
Modern AI models are, at their core, enormous stacks of matrix multiplications. Training a large language model or serving it to millions of users means multiplying huge grids of numbers together, over and over. General-purpose processors (CPUs) are built to handle almost any task, which makes them comparatively slow at this one. Graphics processors (GPUs), led by Nvidia, turned out to be far better because they run many simple calculations in parallel, and they became the default hardware for AI.
Google’s bet was that a chip built only for machine learning math could be faster and cheaper to run at its scale than buying general-purpose hardware. Owning the chip design also gives Google more control over its supply, its costs and how closely the hardware matches its software. That logic has since spread: Amazon builds its own Trainium and Inferentia chips, and Microsoft and Meta have their own silicon programs. Our story on Amazon’s Trainium deal with Decart shows how cloud providers use custom chips to win AI customers.
How a TPU works
The heart of a TPU is the matrix multiply unit, or MXU. Google’s documentation describes “the MXU hardware, a 128×128 systolic array.” A systolic array is a grid of small arithmetic units that pass data to their neighbors in a steady rhythm, like a bucket brigade. Each number is fetched from memory once and then reused many times as it flows across the grid, which cuts down on the slow, power-hungry trips to memory that limit other designs.
Each TPU chip also has high-bandwidth memory (HBM) on the package, so it can feed large models and data to the MXUs quickly. Google says TPUs use hardware “designed for performing large matrix operations.”
Software matters as much as silicon. Code that runs on a TPU is compiled by XLA, Google’s machine learning compiler, which breaks large matrix operations into tiles that fit the MXU. Google’s documentation advises developers to size model dimensions in multiples of 128 or 8 so the hardware is fully used. Developers can work in PyTorch or JAX, which Google says have “native, high-performance support” on TPUs, and serve models with open-source inference engines such as vLLM and SGLang. Google’s FAQ also lists TensorFlow.
TPU vs GPU: the key differences
- Purpose. A TPU is built for machine learning math. A GPU is a more general parallel processor that also handles graphics, simulation and scientific computing.
- Flexibility. GPUs run a broader range of software and custom operations. TPUs work best when the workload is dominated by large matrix multiplications.
- Precision. Google says TPUs are “not suited” to workloads that need high-precision arithmetic. Many scientific workloads therefore stay on CPUs or GPUs.
- Availability. GPUs are sold by Nvidia, AMD and others and offered by every major cloud. TPUs are available only from Google, through Google Cloud.
- Software ecosystem. Nvidia’s CUDA platform has the largest developer ecosystem in AI. TPUs depend on XLA and frameworks such as JAX and PyTorch, which cover most mainstream model work but not every custom library.
- Scale. Both can be linked into very large clusters. Google designs TPU systems, networking and data centers together, which is one of its main selling points.
Pods and slices
TPUs are rarely used one at a time. Google’s FAQ describes a pod as “a massive physical cluster of TPU chips” connected by a dedicated high-speed network, and a slice as “a smaller, dedicated subset of a pod that you can rent.” Its documentation says workloads can scale across slices “with little to no code changes.”
For a business, this means you do not buy TPUs. You rent a slice sized to the job, from a handful of chips for experiments to thousands for training a large model, and pay for the time you use.
TPU generations today
Google’s documentation lists TPU v2, v3, v4, v5e, v5p, v6e and TPU7x. The two newest generally available systems carry names as well as numbers:
- Trillium (6th generation, v6e). Google claims 4.7x higher peak compute per chip and 67% better energy efficiency than TPU v5e.
- Ironwood (7th generation, TPU7x). Google claims up to 9,216 liquid-cooled chips per pod, 42.5 exaflops of compute per pod, and 4x better performance per chip than Trillium.
- Eighth generation (coming soon). Google announced TPU 8t for training and TPU 8i for inference at Google Cloud Next 2026, and later added TPU 8i Max and TPU 8tx. Google claims TPU 8t reaches 9,600 chips in a superpod with nearly 3x the compute per pod of the previous generation, and that TPU 8i delivers an 80% performance-per-dollar improvement for low-latency inference on large mixture-of-experts models. None of the eighth-generation systems was generally available at the time of writing.
All performance figures above are Google’s own claims and have not been independently benchmarked by Modern AI Today. Google also claims customers can run up to 1 million TPU chips in a single cluster.
Who uses TPUs
Google is the biggest user: its Gemini models are trained and served on TPUs. Outside customers rent them through Compute Engine, Google Kubernetes Engine and Gemini Enterprise Agent Platform. Google’s product page cites customers including Citadel Securities, Nuro and Lightricks, with performance and cost gains that are reported by Google rather than independently verified. Google’s documentation also notes that the older standalone Cloud TPU API is deprecated, so new projects should start from those supported services.
When a business should consider TPUs
Most companies will never touch a TPU directly. If you use AI through an app or an API, the choice of chip is the provider’s problem. TPUs become a real decision for companies that train, fine-tune or serve their own models at meaningful scale.
TPUs are worth evaluating when:
- Your workload is dominated by large matrix operations, such as training or serving transformer models.
- Your team already works in JAX or PyTorch and can use the XLA toolchain.
- You already run on Google Cloud, or are open to it.
- Inference cost at high volume is a major line item and you want an alternative to GPU pricing and supply.
Stick with GPUs, or test carefully first, when:
- Your code relies on custom CUDA kernels or libraries that have no TPU equivalent.
- You need high-precision arithmetic for scientific or financial simulation.
- You must stay portable across several clouds or on your own hardware.
- Your workload is small enough that engineering time outweighs any hardware savings.
A practical approach is to benchmark the same model on a small TPU slice and a comparable GPU instance, measuring cost per training run or per million tokens served, not just raw speed. Supply and policy also matter: export controls shape where advanced AI chips can go, as our analysis of AI compute export controls explains.
Why TPUs matter for the AI market
TPUs are the most mature alternative to Nvidia’s GPUs at large scale. Every cloud provider that builds its own chip gains leverage on price and supply, and customers gain options. For buyers, that competition is the main benefit: more hardware choices tend to mean better pricing and less risk of being stuck waiting for one supplier.
The trade-off is lock-in of a different kind. TPUs run only in Google Cloud. Companies that optimize heavily for them should weigh the savings against the cost of moving later.
Frequently asked questions
What is a TPU? A Tensor Processing Unit, a custom chip Google designed to accelerate machine learning, built around a systolic array for fast matrix multiplication.
Is a TPU better than a GPU? For large, matrix-heavy AI workloads, TPUs can be faster or cheaper. GPUs are more flexible, more widely available and have a larger software ecosystem. The right answer depends on the workload.
Can I buy a TPU? Not for data center use. Google rents TPUs through Google Cloud, by the slice.
What frameworks run on TPUs? Google cites native support for PyTorch and JAX, inference engines such as vLLM and SGLang, and TensorFlow.
What is the newest TPU? Ironwood, the seventh generation, is the newest generally available TPU. Eighth-generation TPU 8t and 8i are announced but listed as coming soon. See our AI glossary for related terms.
What it means
For business
Only teams that train or serve their own models at scale need to choose chips. For them, TPUs are a credible alternative to GPUs worth benchmarking on cost per task.
For industry
Custom chips from Google, Amazon and others are adding competition to an AI hardware market dominated by Nvidia, which can ease pricing and supply.
For workers
Engineers who can work across GPU and TPU toolchains, including JAX, PyTorch and XLA, gain flexibility as companies mix hardware.
Sources
Salman Hanfi is a contributing editor at Modern AI Today covering AI startups, software and e-commerce. A growth and product marketer, Salman has helped several software products reach more than 100,000 users through organic channels. Studied at the Lahore School of Economics. Based in Rawalpindi.




