Have you ever thought about what actually happens when you type a question into ChatGPT or Gemini? Within a second, an answer starts appearing on your screen.
Behind those two products are two different kinds of chips. ChatGPT runs mostly on Nvidia’s GPUs. Gemini runs on Google’s own chips, called TPUs. Anthropic, which makes Claude, uses both.
Most people think one of them is simply faster. The real difference is in how each chip is built. So in this week’s video, we open up both of them. Here’s the written version.
What an AI chip has to do
The answer appears word by word because the model really does write it one piece at a time. Each piece is called a token, and a token is roughly three quarters of a word.
To write each token, the model turns your question into a long list of numbers and multiplies it by its own numbers, called weights, which it learned in training. This is matrix multiplication.
Say the model has 70 billion weights. Each weight needs one multiplication and one addition, so that’s about 140 billion operations for every single token.
A CPU has a few dozen strong cores that work through tasks one after another. For this much maths, that’s far too slow. An AI chip has to do thousands of these operations at the same moment. GPUs and TPUs do that in two very different ways.
Inside a GPU: the Nvidia H100
GPUs were first built for video games, where millions of pixels have to be worked out at the same time. That same skill turned out to be exactly what AI needs.
The H100 is divided into 132 blocks called streaming multiprocessors (SMs). Beside the chip sit stacks of memory called HBM, which hold the model’s weights.
Zoom into one SM and you find four identical quarters. Each quarter has:
a scheduler that decides what runs next
registers that hold the numbers it’s working on
32 small cores for general maths
1 tensor core for matrix multiplication
Across the whole chip, that’s almost 17,000 cores and 528 tensor cores.
To multiply a big grid of weights, the H100 cuts it into small tiles, and each SM takes a few. Each tile travels from HBM, through a shared cache (L2), into the SM’s own fast memory. There, the tensor cores multiply it, one small block at a time.
The cores work in groups of 32, called warps, and each SM keeps dozens of warps ready at once. When one warp is waiting for numbers from memory, the scheduler switches to another warp that’s ready, with no time lost. That’s how a GPU stays busy even though memory is slow.
This design makes the GPU flexible. It can run almost any program, which is why Nvidia’s software, CUDA, has more than 11 million developers. The price is chip space and power: schedulers, registers and caches take up a large part of the chip, and every step still moves numbers in and out of memory.
Inside a TPU
Google built the TPU for a practical reason. In 2013, it worked out that if people used voice search for three minutes a day, it would have to double its data centres. So it built a chip that does mainly one thing: matrix multiplication.
Each TPU chip has one or two big compute blocks (Google calls them TensorCores, not to be confused with Nvidia’s tensor cores), with HBM memory beside them. Inside a block, most of the space goes to a few very large matrix units. Next to them sit a vector unit for simpler maths, and a small scalar unit that steps through the instructions.
The systolic array, with real numbers
Each matrix unit is a grid of small calculators called a systolic array. Take a small one, two by two.
The weights are loaded into the grid, and they stay there. The left column holds 4 and 5; the right column holds 1 and 6.
The numbers from your question, 2 and 3, flow in from the left.
The top-left cell multiplies 2 × 4 = 8 and passes the 8 down. The cell below multiplies 3 × 5, adds the 8, and gets 23.
The right column does the same: 2 × 1 + 3 × 6 = 20.
Out come 23 and 20, the full answer.
Notice that 2 and 3 were fetched from memory only once. After that, they moved from cell to cell, with no trips back to memory. In Google’s latest TPUs, each grid is 256 × 256, so every number fetched from memory gets used 256 times.
There’s also no scheduler juggling warps. Before the run, a compiler called XLA plans every step, and the scalar unit simply follows that plan. That’s why a TPU can spend its space on matrix units instead of schedulers and caches.
TPUs are also built to work in very large groups. Google’s current TPU, Ironwood, links 9,216 chips into one pod that works as a single system.
The difference, side by side
What fills the chip: a GPU has thousands of small cores plus the schedulers and caches that keep them busy. A TPU has a few very large matrix grids.
Who decides the order: a GPU decides what runs next while it’s running. A TPU follows a plan made before the run.
Trips to memory: a GPU moves numbers to and from memory at every step. A TPU reuses each number hundreds of times inside the grid.
That’s what general and specialised mean in practice. Give both chips a matrix multiplication, and both are fast, with the TPU making far fewer trips to memory. Now give them work that isn’t matrix multiplication, like sorting a list, or code that takes a different path for each number. On a GPU, every core can run any instruction, so the work still runs in parallel across thousands of cores. On a TPU, the big grids can’t help; the work falls to the small vector and scalar units, and it runs much slower.
There’s a practical difference too. Anyone can buy Nvidia GPUs or rent them on almost any cloud, while TPUs are mostly rented from Google Cloud.
What really limits speed: memory
So which chip writes your answer faster? Mostly, that’s decided by memory, not maths.
For every token, the chip has to read all of the model’s weights. Say the 70 billion weights take one byte each. That’s 70 GB, read again for every token.
An H100 reads about 3.35 TB a second from its memory. 3,350 GB ÷ 70 GB ≈ 48 tokens a second for one user, however fast its cores are.
The way around this is to serve many people at once. If 50 people are asking questions, one read of the weights can produce the next token for all 50. That’s why the newest chips compete on memory: Google’s Ironwood and Nvidia’s B200 both have about 192 GB, read at roughly 7 to 8 TB a second.
What a million tokens costs
AI APIs price in dollars per million tokens. That number depends on two things.
1. How many tokens a chip produces each hour. Say a chip costs $4 an hour. Serving one user at 48 tokens a second, that’s about $23 per million tokens. Serving 50 users with each read, it’s about 46 cents. (The real saving is smaller, because each conversation also needs some memory of its own, but the point holds.)
2. Who keeps the profit. Nvidia’s gross margin is about 75%. Google designs its TPUs with Broadcom, so it doesn’t pay that margin. The analyst firm SemiAnalysis estimates an Ironwood chip costs Google about 44% less than Nvidia’s comparable chip. That’s a big reason Gemini can be served cheaply.
When to use which
Your product uses an AI API: you don’t choose the chip. The provider does, and you see their choice in the price and the speed.
New kinds of models, custom code, your own data centre or several clouds: GPUs.
A large, steady job on a standard model on Google Cloud: test TPUs, and compare the cost per million tokens.
Very large scale: both, like Anthropic.
That’s also why TPUs aren’t replacing GPUs. A TPU is a bet that AI will stay mostly matrix multiplication, and when researchers invent something new, it usually runs on GPUs first.
So the next time an answer appears on your screen word by word, the real question isn’t which chip is faster. It’s what a million tokens cost, and who pays for them.
Want to go deeper?
🎓 Live AI PM Cohort (12 weeks): become a job-ready AI Product Manager and builder. Alumni now work at Google, Microsoft and Oracle. → https://www.technomanagers.in/cohort
📘 Self-paced AI Product Management Course (rated 4.9/5): use code NYE27 for 40% off. → https://www.technomanagers.in/courses/ai-product-management-course
📺 Watch on YouTube and subscribe to Technomanagers for the next one in the series.
Sources: Nvidia H100 (Hopper) architecture whitepaper; Google Cloud TPU system architecture docs; SemiAnalysis estimate of Ironwood’s cost (an analyst estimate, not an official figure). Numbers marked “say” are worked examples, not official prices. The chip drawings in the video are our own simplified diagrams.

