Learn AI Math

GPU

What is GPU?

In one sentence: 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.

GPUs were first built to draw video game graphics, which needs lots of math done in parallel. Neural networks need the same kind of math, mainly multiplying big grids of numbers. So GPUs became the main engine for training and running AI.

What does GPU look like?

NVIDIA's H100 and B200 are GPUs used in AI data centers.

Why does GPU matter?

GPUs are the most important and most wanted hardware in AI today.

GPU vs. NPU

GPUs deliver massive parallel power for training and fast LLM generation at high wattage, while NPUs are ultra-efficient low-watt accelerators built into phones and laptops for battery-friendly on-device AI.

DimensionGPUNPU
Power draw75 W to 700+ W per chipTypically 2 W to 15 W inside a mobile SoC
Best forModel training, heavy local LLMs, cloud servingAlways-on voice, background vision, small local models
Memory setupDedicated high-speed GDDR or HBM VRAMShares system unified RAM

GPU vs. TPU

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.

DimensionGPUTPU
ArchitectureGeneral SIMT cores + Tensor CoresCustom systolic matrix-multiply arrays
AvailabilityBuy the hardware or rent from almost any cloudMainly rented through Google Cloud
Software stackCUDA, PyTorch, vLLM, TensorRT-LLMJAX, XLA, PyTorch/XLA

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.