EP 12 · Full video · 2026-11-24

Why does AI run on gaming chips?

Short answer: AI runs on graphics chips because a neural network is mostly one tiny sum, multiply and add, repeated trillions of times, and that is exactly the sum a gaming graphics chip was built to do for every pixel, with thousands of small calculators working at once. A 100-word chatbot answer from a GPT-3-size model takes nearly 50 trillion of these sums; a top gaming card can do over 100 trillion a second.

How it works

From a gaming card to the chips that run AI, in five steps:

  1. 1One answer, trillions of sums. A GPT-3-size model has 175 billion weights. Each piece of a word takes one multiply and one add per weight, so a 100-word answer is nearly 50 trillion sums.
  2. 2Inside the card. An RTX 5090's chip holds 21,760 tiny calculators (CUDA cores), built to colour millions of pixels at once. Each one does the same sum: A times B, plus C.
  3. 3Maths disguised as pictures. In the early 2000s, scientists wrote their numbers as pixel colours so graphics chips would compute them. In 2007 NVIDIA's CUDA let anyone write plain maths for a graphics chip.
  4. 4Two cards in a bedroom. In 2012 Alex Krizhevsky trained AlexNet on two GTX 580 gaming cards and beat the world's best labs at ImageNet: 15.3% wrong against 26.2%.
  5. 5Now the chips wait. Calculating speed has grown faster than memory speed, so today's AI chips like the H100 stack memory in towers right beside the processor, and still wait for numbers.

MYTHAI needs special chips that were designed for AI.

REALLYModern AI took off on chips built for video games, because games and neural networks need the same sum: multiply and add, millions of times at once.

People also ask

Why are GPUs better than CPUs for AI?

A CPU has a handful of powerful cores (about 16 to 24 on a desktop). A GPU like the RTX 5090 has over 21,000 simple ones. AI is millions of independent multiply-and-add sums, so many simple calculators working together win.

What is CUDA?

NVIDIA's platform, released in 2007, that lets programmers write ordinary maths for a graphics chip instead of disguising it as graphics. The calculators inside NVIDIA chips are still called CUDA cores.

What is the memory wall?

Over twenty years, chips' calculating speed grew about three times every two years, but memory speed only about one and a half, so AI chips often wait for numbers to arrive. Stacked HBM memory beside the processor shortens the trip.

Read the transcript

When you ask an AI chat bot a question, how many calculations do you think it does to write you a hundred word answer? A thousand? A million? Maybe a billion? For a model the size of GPT-3, which has 175 billion internal settings, the answer is nearly 50 trillion calculations for one short reply. That number is hard to picture, so let's try. If you sat down and did one of those sums by hand every second without ever sleeping, it would take you about one and a half million years to write that single answer. The machines that do it in seconds weren't designed for AI at all. They were designed to draw video games. They're called graphics processing units or GPUs and chips from this same family trained the AI behind chat GPT. In 2012 a student showed the world why, with two gaming cards in his bedroom and beat the best labs in the world. So why is a chip made for games so good at AI? We'll answer that in three parts. First, we'll open up a graphics card and see what's inside its chip and why it's built so differently from the main processor in your computer. Second, we'll look at what an AI actually calculates and why it turns out to be the same kind of maths as a video game. And third, we'll follow how people discovered this from scientists disguising their maths as pictures to that bedroom in 2012 to the giant AI chips that came after. Let's start with the two main chips inside a gaming computer. The central processing unit or CPU is the chip that runs your operating system, your browser, and your music. A top desktop CPU has around 16 to 24 cores, which are the parts that actually do the calculating. The chip on the graphics card, the GPU, has over 21,000. So which one is more powerful? 21,000 is a lot more than 24, so you'd expect the GPU to win easily. Well, it depends entirely on the job. A useful way to picture it is a professor and a stadium full of students. The professor is the CPU. Each of its cores is fast and flexible and can handle almost any problem you give it, including long problems where every step depends on the one before. The students are the GPU's cores, and each one is slower and much simpler and can only do basic arithmetic. But there are thousands of them and they all work at the same time. For one hard problem, the professor wins. For millions of easy problems that don't depend on each other, the stadium wins by a mile. The analogy isn't perfect, but it captures the trade-off. A few fast, flexible workers or a huge crowd of simple ones. Video games are the second kind of job. Look closely at your screen and you'll see it's made of tiny dots called pixels. An HD screen has about 2 million of them and a 4k screen has over 8 million. A game shows you a stream of still pictures called frames, one after another, so fast that they look like motion. And for every new frame, the color of every one of those pixels has to be worked out again. At 30 frames a second, a fast car jumps a long way between pictures. At 60, each jump is half as big, so the motion looks smoother and fast gaming screens go to 120 or more. 60 frames a second on a 4k screen is around 500 million pixels every second. And working out a single pixel is a pile of small sums. Say a pixel shows part of a brick wall in the sunshine. The chip takes the color of the brick, multiplies it by how bright the Sun is, multiplies again by how directly the light hits the wall, and then adds the dimmer light coming from the sky. Multiply, add. Multiply, add. It's the same short recipe for every pixel and no pixel has to wait for its neighbor. That's exactly the kind of job a stadium is good at. And games have kept making that job bigger. In 1993, Doom drew a picture just 320 pixels wide and the computer's main processor worked out every one of them. Then games went fully 3D, with every surface needing its own sums. And from 1996, gamers began adding separate 3D cards to share the work. Since then, every step towards realism has asked for more. More pixels, more frames, and more sums in each pixel's recipe for shadows, reflections, and light bouncing around a room. So the stadium kept growing. In 2006, Nvidia's top gaming card had 128 simple cores. 19 years later, it's over 21,000. Now let's open up a graphics card and find that stadium. Under the metal frame are two fans, which push air through a block of thin metal fins. Copper heat pipes carry heat from the chip up into those fins, because a top card like this one can draw almost 600 watts. Lift the cooler away and here's the printed circuit board. Around the center is a ring of memory chips, which hold the textures and 3D models of the game. Beside them are the power components, which turn the 12 volts from your power supply into the roughly 1 volt the chip runs on. And in the middle is the graphics processor itself. Zoom into the chip and you'll find it's built from one pattern repeated over and over. Nvidia's top gaming GPU has a 170 identical blocks working, called streaming multiprocessors. Inside each block are 128 tiny calculators, called CUDA cores, which gives 21,760 in total. The cores take their instructions in groups of 32. One instruction goes out and all 32 carry it out, each on its own piece of data. So what is one of these tiny calculators actually do? Mostly one thing. It takes two numbers, multiplies them, and adds a third. A times B plus C. It's called a fused multiply add, and a core can do one every tick of the chip's clock. This chip ticks about 2.4 billion times a second. So 21,000 cores times two calculations times 2.4 billion ticks gives around 105 trillion calculations every second. Remember that chatbot answer with its 50 trillion calculations? On paper, one gaming card could do that much maths in under half a second. Keep that on paper in mind. We'll come back to it at the end. So that's what a graphics chip is built to do. Now let's look at what an AI needs. Say you want a program that can tell a cat from a dog in a photo. Nobody can write the rules for that, because there's always an exception. Pointy ears? Plenty of dogs have them. Whiskers? Same problem. So instead of writing rules, researchers build a neural network. Layers of simple units, loosely inspired by brain cells, that learn the rules from examples. Let's follow one of those units. It receives a handful of numbers from the layer before it. For example, how bright some of the pixels are. Each incoming number has its own setting called a weight. The unit takes the first number, say 0.9, multiplies it by its weight, say 0.5, and keeps the result. Then it takes the next number, multiplies it by its weight, and adds that on. Then the next. When it's done, it passes the total on to the next layer. Multiply, then add. A times B plus C. It's the exact sum each core on the graphics chip was built to do. As far as the chip is concerned, a pixel of brick wall and a unit in a neural network are the same work. And there's a lot of it. A network that recognizes photos might have millions of weights. And GPT-3 has 175 billion. To write each new word piece of an answer, called a token, the model uses every one of those weights once, with one multiply and one add each. That's where our 50 trillion comes from. 350 billion calculations per token, for about a hundred and thirty tokens. The important part is that most of these sums don't depend on each other. Inside one layer, every unit can do its multiplying and adding at the same time as every other unit. The layers still have to go in order, one after another. But within each layer, it's the same easy sum on thousands of different numbers. Just like the pixels. Learning takes even more because the network makes a guess, checks how wrong it was, and nudges every weight a tiny bit to be less wrong. And it does that for 300 billion tokens of text. The checking and nudging costs about twice as much as the guess itself. If our gaming card had to do all of GPT-3's training by itself, running flat out, it would take nearly a hundred years. That's why GPT-3 was trained on a whole cluster of graphic chips that Microsoft provided, all working together. So today, the fit between AI and graphics chips looks obvious. But 25 years ago, these chips could only draw pictures. By the early 2000s, gamers were buying graphics cards by the millions, which made an enormous amount of calculating power cheap. Scientists wanted it for physics, for weather, for medicine. But there was a problem. These chips only understood graphics, so you couldn't just hand one a physics equation. So researchers found a workaround. They disguised their maths as a picture. They stored their numbers as if they were the colors of an image and wrote each calculation as if it were a way of shading pixels. The chip thought it was drawing, but it was actually doing science. It was awkward, but it worked. At Stanford, a team built a programming language called Brooke to make the trick easier. And in 2004, they reported programs running up to seven times faster than on a normal processor. One of that team, Ian Buck, later joined NVIDIA, one of the biggest makers of gaming chips, and led a project called CUDA. Released in 2007, CUDA let programmers write ordinary maths for a graphics chip, with no disguise at all. That's why the tiny calculators we saw earlier are still called CUDA cores. A few AI researchers noticed. In 2009, Rajat Raina, Anand Madhavan, and Andrew Ng at Stanford trained neural networks on graphics cards and reported them running dozens of times faster than on a normal processor. In June 2012, Google made headlines with a very different approach. Its researchers wired together a thousand computers with 16,000 processor cores and let a huge network look at 10 million pictures from the Internet for three days. Without being told what to look for, part of the network learned to recognize cats. It was a landmark result. It also took a thousand computers. That same year in Toronto, a student named Alex Krzyzewski was aiming at a different rise, a yearly contest called ImageNet. Labs from around the world competed to build programs that could name what's in a photo, trained on over a million photos sorted into a thousand categories, from mites to leopards. Alex, his labmate Ilya Sutskever and their professor Jeffrey Hinton wanted to enter a neural network far bigger than usual. But there was a problem. It didn't fit. Each graphics card he used, a GTX 580, had three gigabytes of memory and the network needed more than that. So Alex split the network in half, ran one half on each of two cards, and passed numbers between them as it worked. Then he let it learn for five to six days on a computer in his bedroom at his parents' house. When the results came in, the best of the other teams got about 26% of the photos wrong. Alex's network got 15% wrong. Two gaming cards in a bedroom had left the best labs in the world far behind. Years later, after winning a Nobel Prize, Hinton summed it up like this, "Ilya thought we should do it, Alex made it work, and I got the Nobel Prize." The next year, a team with Andrew Ng trained a network as big as Google's cat network using just three computers with graphics cards in a couple of days. A thousand computers or three. For years, gamers had been the biggest market for these chips. But AI wanted more calculating power than any game had ever asked for. And about a decade after that bedroom, Nvidia was earning more from data centers than from gamers. So the chips were rebuilt around the one sum AI needs most. First came a new kind of core, the tensor core. A CUDA core does one multiply and add at a time. A tensor core takes two small grids of numbers, multiplies them together, and adds a third grid all in one go. The first tensor cores did 64 multiply adds every tick of the clock. The gaming chip we opened earlier has 680 of them, sitting right beside its CUDA cores. Then the chips got bigger. The card Alex used had about 3 billion transistors, the tiny switches every chip is built from. A data center AI chip from 2022, the H100, has 80 billion. The newest generation has over 200 billion. And they stopped looking like gaming cards. The most powerful version of the H100 has no fans and no ports for a screen. It's a module bolted into a server, drawing up to 700 watts, about half of what a room heater uses. A single data center can hold thousands of them. Google went even further and designed its own AI chip from scratch, called the tensor processing unit or TPU. At its heart is one big grid of 65,000 multiply add units. Engineers building only for AI, with no games in mind, ended up with the same idea as the gaming chip. A huge crowd doing one easy sum. Remember the chatbot answer that on paper a gaming card could calculate in under half a second? In practice it's not that simple, and the reason is memory. A stadium of students is only fast if every student has their sheet of paper. On a chip, the paper is the numbers, and the numbers live in memory. To write each new token, the model has to use every one of its weights. So all those billions of weights have to travel from memory into the chip, again for every token. Researchers have measured how this has changed, and over the last 20 years the peak calculating speed of server hardware grew about three times every two years. But memory bandwidth, how fast numbers can move in and out of memory, grew only about one and a half times. So very often the fastest chips in the world are sitting there waiting for paper. That's why the newest AI chips are surrounded by memory, called high bandwidth memory, stacked in towers right beside the processor, so the numbers have the shortest possible trip. One H100 can move over three terabytes every second, hundreds of movies worth of data, and it still wants more. 30 years ago the hard problem was drawing a forest fast enough. Now it's feeding the maths fast enough, and the race to solve it is happening inside chips, that underneath it all are still graphics processors. [Music] [Music]

Sources we checked

Spotted a mistake? Email cogling.studio@gmail.com and we'll check it.

Shorts from this video

Short 6 of 6

What is an AI actually doing?

Not words, not ideas. One tiny sum: multiply, add. Billions of times per word.

Read the answer · YouTube · Instagram

Short 5 of 6

The fastest chips on Earth… waiting?

The fastest chips on Earth aren't short of brains. They're short of paper.

Read the answer · YouTube · Instagram

Short 4 of 6

The chip thought it was drawing

Numbers in as pixel colours, answers out as pixel colours. The trick that became CUDA.

Read the answer · YouTube · Instagram

Short 3 of 6

Two gaming cards vs the best labs

2012: Google used 1,000 computers to find cats. A student used two gaming cards, in his bedroom, and beat every lab.

Read the answer · YouTube · Instagram

Short 1 of 6

How many sums is one AI answer?

Nearly 50 trillion sums. By hand: 1.5 million years. A gaming card: under half a second.

Read the answer · YouTube · Instagram

More explainers

EP 13

Wi-Fi from a black-hole hunt

The hunt found nothing. The maths it left behind fixed Wi-Fi's echo problem.

Read the answer · YouTube · Instagram

EP 13

Your screen was a solar panel

A solar cell that barely worked, run the other way round.

Read the answer · YouTube · Instagram

EP 13

The chip that ran with no power

1985: the meter read zero, and the first ARM chip kept running anyway.

Read the answer · YouTube · Instagram

Get your daily aha

New "how it works" explainers on YouTube Shorts and Instagram Reels.