# TPU

- **Canonical URL:** https://getaimath.com/dictionary/tpu/
- **Topics:** [Hardware & AI Computing](https://getaimath.com/dictionary/category/hardware-and-ai-computing/)
- **Last updated:** 2026-11-25

## 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.

![AI Hardware (GPUs & VRAM): The Fast Chef & The Kitchen Door — Simple cartoon showing a Super-Fast Chef (GPU) who needs ingredients from a nearby Countertop Fridge (VRAM) via a wide double-door (Memory Bandwidth), instead of walking down a slow hallway to the Basement Pantry (System RAM).](https://getaimath.com/diagrams/hardware-and-ai-computing.png)
*Napkin Diagram (Hardware & AI Computing): A fast GPU chip is like a fast chef—if the memory doorway is too narrow, the chef just stands around waiting for ingredients.*

## What is an example of TPU?

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](https://getaimath.com/dictionary/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 |

## Related Concepts

- [NPU](https://getaimath.com/dictionary/npu/): An NPU, or Neural Processing Unit, is a chip or part of a chip designed specifically to run AI tasks efficiently.
- [Neural Engine](https://getaimath.com/dictionary/neural-engine/): The Neural Engine is Apple's built-in AI accelerator inside iPhone, iPad and Mac chips.
- [CPU](https://getaimath.com/dictionary/cpu/): A CPU, or Central Processing Unit, is the main general-purpose chip in a computer that runs programs step by step.
- [ASIC](https://getaimath.com/dictionary/asic/): An ASIC, or Application-Specific Integrated Circuit, is a chip custom-built for one particular job.
- [GPU](https://getaimath.com/dictionary/gpu/): A GPU, or Graphics Processing Unit, is a computer chip that can do thousands of simple calculations at the same time, which makes it perfect for AI.
- [FPGA](https://getaimath.com/dictionary/fpga/): An FPGA, or Field-Programmable Gate Array, is a chip whose circuits can be reprogrammed after it is made.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/tpu/)
