Skip to content

Plain-language explainer

Why AI runs on GPUs

Why are GPUs, and not CPUs, the hardware of the AI boom?

Almost everything a language model does is multiplying enormous grids of numbers, and those millions of little multiply-adds do not depend on each other. A CPU has a handful of fast cores built to race through steps one after another. A GPU has thousands of simple cores built to do the same small operation on huge batches at once. For matrix math, the thousands win. Graphics needed exactly that kind of math first, which is why the gaming chip became the AI chip.

Last reviewed

Do not just read it. Operate the mechanism yourself in a short interactive lesson.

See it work: Why GPUs beat CPUs

Free, no code, no signup.

What people get wrong

  • GPUs are just faster computers. On sequential, branching work a CPU wins. GPUs only win when the work is massively parallel.
  • AI needs GPUs for graphics. No pixels involved. The shared ingredient is matrix multiplication.
  • Stacking more GPUs always means proportionally faster. Chips must exchange results, and that communication becomes its own bottleneck.

Where you see it in real products

  • The GPU shortage and Nvidia's market run are demand for this parallel math.
  • Cloud providers price AI compute as GPU instances by the hour.
  • A consumer gaming card can run a quantized local model, same hardware, new job.

Common questions

Why is a GPU better than a CPU for AI?
The work is thousands of identical multiply-and-add operations with no dependencies between them. A CPU has a few very fast, very clever cores. A GPU has thousands of simpler ones that all do the same thing at once, and the task matches the second shape.
Is memory or compute the real bottleneck?
During training, compute. During generation, usually memory bandwidth: each new token needs the weights read out of memory again while the arithmetic units wait. That is why memory bandwidth and capacity are the headline specs on AI accelerators.
What is a TPU or an NPU?
Chips built for the same shape of work with less of the graphics heritage. Google's TPUs serve its own models, and NPUs in phones and laptops run small models locally. They compete on performance per watt rather than on raw peak numbers.

Related explainers

More in Speed, cost and control

One idea at a time, in your inbox

New lessons and explainers, written the way these pages are. Now and then, not daily, and never a sales sequence.

We email you a confirmation link first. Unsubscribe in one click, any time. Privacy.

Part of See How AI Works, a free interactive course, where you learn how modern AI works by operating it, not watching videos.