Tech●●●●●Difficulty 1 of 5

Why does AI need so many GPUs, and what is the difference between training and inference?

The chip that draws dragons in a video game turned out to be the chip that teaches AI to write.

▶ Start the story

AI needs so many GPUs because an AI model is, underneath, an enormous pile of simple arithmetic, and a GPU is a chip built to do huge numbers of calculations at the same time. A graphics processing unit was designed to draw pictures, and the parts of a picture can mostly be worked out independently of one another. So a modern GPU packs hundreds or thousands of small calculation units that all work side by side.

That design turned out to fit AI as well as it fits video games. GPUs sit in graphics cards, phones and game consoles, yet in the 2020s they have increasingly been used to train on the enormous datasets AI needs. Many modern GPUs even carry cores specialised for deep learning.

Two different jobs use these chips. Training is when a model is built: a GPT-style model is first pretrained to predict the next word from a large amount of data, then fine-tuned. Inference is when you use the finished model: you give it an input and it hands back text, images or code. By one estimate, training costs more computing per token than inference does.

The two jobs of an AI model

Training

  • Builds the model
  • Pretrains on a large amount of data, then fine-tunes
  • About 6 per parameter per token (one estimate)

Inference

  • Uses the finished model
  • Takes your input and returns text, images or code
  • About 1 to 2 per parameter per token (one estimate)

Because the chips are so power-hungry and numerous, they are packed into specialised AI data centers. When you chat with an AI on your phone, hosted inference means the work is done in a remote data center and the answer travels back over the Internet. As of 2026, one encyclopedia article estimated that major tech companies would spend about $650 billion on such buildings that year.

Quiz me

0/3

  1. 1.Why are GPUs so well suited to AI?
  2. 2.You type a question to a chatbot and get an answer back. What is that step called?
  3. 3.Per token, how do training and inference compare in computing cost, according to the estimate in the lesson?

Recap

AI is a mountain of simple sums, and GPUs do thousands of sums at once.

💡 A trick to remember it · Picture a kitchen with a thousand cooks each chopping one carrot: that is a GPU, and AI is a very big salad.

Surprising fact · Chips made to draw games now train AI; training is the build phase, inference is the use phase.

Sources (3)

No source, no claim. Every fact in this lesson (14 claims) cites at least one of these.

  1. [1]Graphics processing unit · Wikipedia
  2. [2]Large language model · Wikipedia
  3. [3]AI data center · Wikipedia
More lessons in 💻 Tech (3) See all tech lessons →

One more light on your map.

Get one lesson like this every day, about the things you love. Free, in two or five minutes.

Get the share card for this lesson ↗