Why does AI need a GPU?

Witjo

AI Basics · about 9 minutes · no jargon

Why does AI need a GPU?

You have seen the price of a graphics card and wondered why anyone would pay it. You have heard that AI runs on GPUs and that a single chip can cost more than a car. In nine minutes you will see what a GPU actually does, why AI needs so many of them, and why the same chip that draws a video game also trains a chatbot.

Editorial infographic titled 'CPU vs. GPU: Chefs vs. Line Cooks', comparing a CPU's few versatile cores to an artisan chef's precision plating station and a GPU's thousands of parallel cores to a synchronized commercial banquet line kitchen.

Think of a CPU as a few expert chefs. Each chef can cook a complex dish from start to finish. They are fast, skilled, and flexible. Think of a GPU as a thousand line cooks. Each cook does one simple step, over and over. On their own, a line cook is slower than an expert chef. But a thousand of them together can prepare a huge banquet far faster than a handful of experts.

A CPU is built for a few hard tasks done one after another. A GPU is built for a huge number of simple tasks done at the same time. AI is mostly simple maths, done billions of times. That is exactly the kind of work a GPU is built for. That is why AI runs on GPUs, and why the price is so high.

In the box below, step through how a single prediction step repeats simple maths across many values. Click the numbers, or press Next step.

Each step inside a model is a simple calculation rather than a complex riddle.
A single pass repeats that simple operation across thousands or millions of numbers.
Thousands of small cores run many independent calculations at once instead of waiting in line.
Because models run billions of simple steps, parallel throughput speeds up replies and training.

This is a simplified picture. A real model does billions of simple calculations to produce one answer, and a GPU is built to do many of them at once.

What just happened

You followed four steps from a simple maths step and repetition across many numbers to parallel execution across cores and billions of steps total.

Why it works this way

A CPU has a small number of powerful cores. A GPU has thousands of smaller cores. AI work is mostly the same simple calculation, repeated on many numbers at the same time. That is exactly what thousands of small cores are good at. A CPU with a few fast cores cannot match a GPU with thousands of simpler cores for this kind of work, because the work is parallel, not sequential.

Worked example. A single prediction step in a language model might involve multiplying a vector of 4,000 numbers by a matrix of 4,000 by 4,000. That is about 16 million multiplications for one step. A CPU can do a few billion simple multiplications per second, one or a few at a time. A modern GPU can do trillions per second, thousands at a time. The same step that takes a CPU a noticeable fraction of a second takes a GPU a tiny fraction. Across billions of steps, that difference becomes the difference between an answer in minutes and an answer in seconds.
A CPU is a few expert chefs. A GPU is a thousand line cooks. AI is mostly simple maths done billions of times, which is exactly what a thousand line cooks are good at.
Go deeper: why the same chip draws video games

A GPU was originally built for graphics. Drawing a 3D scene means calculating the colour of millions of pixels at once, and each pixel is a simple calculation. That is the same shape of work as AI: many simple calculations at once. That is why the same chip that renders a video game can also train a model. The work is different, but the shape of the work is the same: many small steps, done in parallel.

Step 2 · CPU versus GPU

Two chips, two very different designs

A few fast cores versus thousands of small ones.

A CPU is built for a few hard tasks done in sequence. It has a small number of cores, each very fast and very flexible. It can run a whole operating system, handle a spreadsheet, and play a video. A GPU is built for one kind of task: the same simple operation on many numbers at the same time. It has thousands of small cores, each slow on its own, but together they can do an enormous amount of work.

Think of a delivery company. A CPU is a small team of expert drivers who can each plan a route, handle a difficult client, and fix a flat tyre. A GPU is a fleet of a thousand simple vans, each doing one short route. The CPU team is more flexible. The GPU fleet is faster for a large number of simple deliveries. AI is a large number of simple deliveries.

Choose a task below. Each one shows how a CPU’s sequential cores and a GPU’s parallel cores fit different jobs.

Managing system tasks, files, and varied instructions relies on versatile sequential cores.
Many independent multiplications on large arrays match thousands of parallel GPU cores.
Handling quick interactive inputs and branching logic suits a fast general CPU core.
Running purely sequential steps on one core cannot tap thousands of parallel cores at once.

The CPU wins for tasks that need a few fast, flexible steps in sequence. The GPU wins for tasks that need the same simple step on many numbers at once. AI is mostly the second kind of task, which is why it runs on GPUs. A CPU can run a model, but a GPU runs it much faster.

What just happened

You compared four tasks and saw how sequential OS and keystroke work fits a CPU, while large parallel matrix math fits a GPU.

Why it works this way

A CPU is optimised for sequential work with lots of decisions. A GPU is optimised for parallel work with few decisions. AI is mostly the second kind: the same multiplication on millions of numbers at once. That is why the GPU is so much faster for AI, and why the CPU is still better for the rest of the computer.

Worked example. A word processor needs to respond to your keystroke in milliseconds, and every keystroke is a different decision. A CPU is built for that. A model needs to multiply a large matrix by a vector, and every multiplication is the same operation on different numbers. A GPU is built for that. The two chips are not competing. They are built for different shapes of work, and AI happens to have the shape the GPU was built for.
A CPU is for a few hard tasks in sequence. A GPU is for the same simple task on many numbers at once. AI is the second kind.
Go deeper: why the GPU is not always better

A GPU is faster for AI, but a computer still needs a CPU. The CPU runs the operating system, manages memory, and handles the parts of the work that need a few fast decisions. The GPU is a specialist, not a replacement. That is why a good AI machine has both: a CPU for the general work and a GPU for the parallel work. The GPU is not a better CPU. It is a different tool for a different shape of work.

Step 3 · Why AI is parallel

The same simple step, repeated millions of times

AI is not one hard calculation. It is many simple ones.

Editorial infographic titled 'The Math of AI: Billions of Simple Steps', contrasting the misconception of a single complex formula with the reality of billions of simple, independent matrix multiplications computed simultaneously.

You might expect AI to be one very hard calculation. It is not. It is a huge number of very simple calculations, all of the same kind. A model multiplies a large matrix by a vector, then does it again, then again. Each multiplication is simple. There are just an enormous number of them, and they do not depend on each other. That is why they can be done at the same time.

Think of a factory assembly line. Each station does one simple step. The step at station one is the same as the step at station one thousand. The work is parallel because the steps do not wait for each other. The GPU is the assembly line. Each core is a station. The work flows through all of them at the same time.

Slide the control below across 5 levels of parallel execution—from 1 (one step at a time) to 5 (thousands of parallel steps at once).

At level 1, calculations run one at a time, taking many sequential rounds to finish a large batch. At level 2, only a few operations run together, leaving most of a large matrix waiting. At level 3, dozens or hundreds of steps proceed together, cutting round counts noticeably. At level 4, large groups of independent calculations run simultaneously across many cores. At level 5, thousands of cores process independent steps together, finishing large batches far faster.

What just happened

You moved the slider from level 1 (one step at a time) up to level 5 (full parallel throughput) and saw how doing independent steps together speeds up large batches of simple maths.

Why it works this way

AI work is mostly the same simple calculation on many numbers at once. That is why it is parallel. Each calculation does not depend on the others, so they can all happen at the same time. The GPU has thousands of cores, and each core can do one of those calculations. That is why the GPU finishes the work in a fraction of the time a CPU would take.

Worked example. A model needs to multiply a 4,000 by 4,000 matrix by a 4,000 number vector. That is 16 million multiplications. A CPU with 8 cores does about 8 at a time, so it needs about 2 million rounds. A GPU with 10,000 cores does about 10,000 at a time, so it needs about 1,600 rounds. The same 16 million multiplications, done in about 1,200 times fewer rounds. That is the speedup, and it comes from parallelism, not from faster individual maths.
AI is not one hard calculation. It is many simple ones, all at the same time. That is why the GPU is built for it.
Go deeper: why parallelism needs memory too

All those cores need numbers to work on, and those numbers have to be in memory close to the cores. A GPU has its own memory, separate from the CPU’s memory, designed to feed thousands of cores at once. That is why a GPU is not just a CPU with more cores. It is a different design, with its own memory, its own way of moving data, and its own way of scheduling work. The parallelism is the headline, but the memory design is what makes it work.

Step 4 · Training and using

Why training needs even more GPUs than using

Training is parallel work at a huge scale.

Editorial infographic titled 'Training vs. Using AI: A Massive Scale Difference', contrasting Phase 1 Training (adjusting weights across thousands of GPUs in data centers) with Phase 2 Inference (running a single forward pass on one GPU).

Both training and using a model need GPUs, but training needs far more. Training adjusts every weight in the model, over and over, on billions of examples. That is parallel work at a scale that needs not one GPU but thousands, connected together in a data center. Using the model is much lighter: one query needs one forward pass, which a single GPU can handle.

Think of building a house versus living in it. Building needs a whole crew, many trucks, and months of work. Living needs one family and the house is already there. Training is building. Using is living. Both need the house, but only one needs the whole crew.

Judge these four statements. Decide whether each one is about training or about using the model.

Thousands of GPUs work together to adjust the model’s weights.
One GPU answers a user’s question in a second.
The model is updated over and over on a huge amount of text.
The model answers a million questions a day from the same fixed weights.

What just happened

You judged four statements and saw which ones are about training and which are about using. The training statements were about adjusting the weights over billions of examples. The using statements were about running the fixed weights to answer a query. Training needs far more GPUs than using.

Why it works this way

Training adjusts every weight, many times, on a huge amount of data. That is parallel work at a massive scale, and it needs thousands of GPUs connected together. Using the model is one forward pass per query, which a single GPU can handle. That is why training is expensive and using is cheap, and why a company can train once and serve millions of users from a much smaller setup.

Worked example. Training a large model might use 10,000 GPUs for three months. Using the trained model might need a few GPUs to serve millions of queries a day. The training is a one time cost, and it is huge. The using is an ongoing cost, and it is much smaller per query. That is why the price of training a model is measured in millions of dollars, and the price of using it is measured in fractions of a cent.
Training needs thousands of GPUs. Using needs far fewer. Training is a one time cost, and it is the expensive part.
Go deeper: why training needs so many GPUs together

A single GPU can hold only so much of the model and the data in its memory. To train a large model, the work has to be split across many GPUs, and the GPUs have to talk to each other constantly to keep the weights in sync. That communication is the hard part, and it is why training a large model is as much a networking problem as a chip problem. The GPUs are the engines, but the connections between them are what make the whole thing work.

Step 5 · Why GPUs are expensive

Why a single chip can cost as much as a car

Scarcity, complexity, and demand.

Editorial infographic titled 'Why High-End AI GPUs Cost So Much', outlining three primary pricing drivers: Extreme Complexity in manufacturing, Severe Scarcity of global foundries, and Massive Demand across the AI industry.

A high end AI GPU is expensive for three reasons. It is complex to make, with billions of transistors on a single chip. It is scarce, because only a few factories in the world can make it. And it is in enormous demand, because every AI company wants as many as it can get. Complexity, scarcity, and demand together push the price to levels that surprise people outside the industry.

Think of a rare violin. It is expensive because it is hard to make, there are only a few, and many orchestras want one. The GPU is the same. It is hard to make, there are only a few factories, and every AI company wants thousands. The price is the result of all three, not just one.

Answer the three questions below. After each answer you will see why every option is right or wrong.

Complexity, scarce factories, and high demand Carving chips by hand from solid gold Selling chips exclusively as plastic toys
Manufacturing is complex and factories are scarce Factories create unlimited chips for free Every chip is simply an empty box
Power, cooling, and data-centre setup Running off a single tiny watch battery Floating in orbit without power cables

What just happened

You answered three questions and saw the reasoning behind every option. Complexity, factory scarcity, and strong demand push AI GPU prices up, alongside power and cooling needs once deployed.

Why it works this way

Price is the result of supply and demand, and for a high end GPU both sides are extreme. Supply is limited by the small number of factories that can make the chips and by the complexity of the manufacturing. Demand is enormous because every AI company needs as many as it can get. When both sides are extreme, the price is extreme. That is why a single chip can cost as much as a car.

Worked example. A high end AI GPU can cost tens of thousands of dollars. A data center with 10,000 of them can cost hundreds of millions just for the chips. Add the power, the cooling, and the building, and the total is in the billions. That is why only a few companies can train the largest models, and why the chips are the bottleneck in the whole industry.
A GPU is expensive because it is complex to make, scarce, and in enormous demand. All three forces at once push the price to car levels.
Go deeper: why the price is not the whole cost

The chip is only part of the cost. A GPU needs power, cooling, and a data center to run in. A single high end GPU can use as much electricity as several homes. A room full of them needs industrial cooling. The price of the chip is the headline, but the cost of running it is just as important. That is why AI is often described as an industrial project, not just a software one.

Step 6 · Prove it

Three questions. Let’s see what stuck.

You have seen why AI needs a GPU, how a CPU and a GPU differ, why AI work is parallel, why training needs more GPUs than using, and why the chips are so expensive. Now check what you can explain in your own words. These questions are about the ideas, not the numbers.

Answer each one, read the explanation, and then see your result. If you miss one, the explanation tells you where to look back.

Why does a GPU speed up AI work?

  • One giant core runs faster
  • Thousands of cores compute in parallel
  • It replaces all system RAM
  • It skips all matrix math

Why does training need more GPUs than using?

  • Training runs on a watch
  • Training updates weights over huge data
  • Inference never uses GPUs
  • Training skips parallel steps

Why do high-end AI GPUs cost so much?

  • They are made of gold
  • Complexity, scarcity, and high demand
  • They need zero cooling
  • They run only simple text
0/3

Your result

What you now know

  • A CPU is a few expert chefs. A GPU is a thousand line cooks. AI is the second kind of work.
  • A CPU is for a few hard tasks in sequence. A GPU is for the same simple task on many numbers at once.
  • AI is parallel: many simple calculations, all at the same time. That is why the GPU is built for it.
  • Training needs thousands of GPUs. Using needs far fewer. Training is the expensive part.
  • GPUs are expensive because they are complex, scarce, and in enormous demand.

Get the monthly summary

One short email a month with the best new topics on the site.

No daily mail, no spam. Just a short note when something worth reading is added.

One short email a month. Unsubscribe any time.

Words you met

  • CPU: a chip with a few fast, flexible cores. Good for sequential work and general computing.
  • GPU: a chip with thousands of small cores. Good for parallel work, like AI.
  • Core: one processing unit inside a chip. A CPU has a few. A GPU has thousands.
  • Parallel: doing many simple steps at the same time. AI is mostly parallel work.
  • Sequential: doing steps one after another. The CPU is built for this.
  • Matrix multiplication: the main operation in AI. The same simple calculation on many numbers at once.
  • Training: adjusting every weight over billions of examples. Needs thousands of GPUs.
  • Using: one forward pass per query. Needs far fewer GPUs than training.

All numbers and examples in these exercises are simplified teaching numbers. Real GPUs have thousands of cores and billions of transistors, but the ideas shown are the real ones.

Understand AI without the jargon

Get our newest AI lessons by email: how models work, what agents can really do, and how to use AI well.

Witjo Newsletter Signup – AI

One short email a month. Unsubscribe any time.

Save to list

Scroll to Top