Why does AI run on graphics cards?
Lesson 12.4 · Then AI Found It
Sarah · Jenny
Pixels or neural networks: grids of numbers either way.
Sarah asks the obvious thing: if GPUs are for pictures, why does every AI news story mention them?
Jenny says training an AI is mostly simple multiply-and-add steps on huge grids of numbers, millions at once, and that’s the kind of work a GPU already does for every pixel.
Different numbers, same kind of work.
The short answer
Because training AI is the same shape of work as drawing pixels: the same math on huge grids of numbers, all at once. GPUs grew up on games and turned out to be perfect for it. None of which helps the black screen on Sarah’s desk. Jenny thinks the problem is somewhere much earlier.
Try it yourself
Sort each job: is it a GPU job or a CPU job?
1 of 6
Training an AI on millions of images
Put it in
What you just did has a name
Why GPUs run AI
Training an AI model means adjusting billions of numbers by running the same kinds of multiplications over and over on huge grids of data.
That’s parallel work with the same shape as drawing pixels, so GPUs are dramatically faster at it than CPUs.
That’s why AI companies buy enormous numbers of them, and why newer chips, including phones, include special sections built just for AI math.
A few more things
Grids of numbers
An image is a grid of numbers. So is a neural network’s inside. Both come down to lots of small multiply-and-add steps that can all run at once, and GPUs are built for exactly that.
AI chips
Many new laptops and phones have a section called an NPU, a neural processing unit, designed only for AI math. It’s a GPU idea taken further.
Want the whole story?
Our sibling course, Data to AI, starts with the data on your phone and builds up to how models learn. This lesson is the hardware half.
Go deeper
The longer version, if you want it.
Training vs. using
Training a big AI model happens once, in a data center, on thousands to tens of thousands of GPUs running for weeks or months. Using it, asking it a question, is much less work, but millions of people asking at once still takes a lot of GPUs.
That’s why AI and GPUs show up together in the news: the more people use AI, the more of these chips the world needs, and the more electricity they use.
Quick check
Why are GPUs good at training AI?
Let’s take it slower
Think back to the stadium card stunt from 12.2. Now, instead of colors, every fan holds a number and does one multiplication when told. Do that millions of times with different numbers and the stadium is training an AI. The GPU doesn’t care whether its numbers are pixels or something else. It just multiplies, everywhere at once.
More examples
Your phone’s photo search
Searching your photos for “dog” uses an AI model running on your phone’s chip, often on its GPU or AI section.
Asking a chatbot a question
When you type a question into an AI chatbot, the reply is worked out on graphics chips, or similar AI chips, in a data center, often hundreds of miles away. Each word it writes back means huge grids of numbers multiplied together in a fraction of a second.
Back to the question
So why does AI run on graphics cards?
Show the answer
Because training AI is the same shape of work as drawing pixels: the same math on huge grids of numbers, all at once. GPUs grew up on games and turned out to be perfect for it. None of which helps the black screen on Sarah’s desk. Jenny thinks the problem is somewhere much earlier.
More on this: CPU vs. GPU: what’s the difference?
One last question
Build why AI runs on GPUs.
Tap the pieces in order. Tap one again to take it back.
Talk Card
Talk Card · 12.4
AI runs on graphics cards because training a model is millions of small multiply-and-add steps at once, the same kind of work as drawing every pixel on a screen.
How Computers Work · pettigrewlab.com/learn

