GPU
Three numbers on a GPU card
Compute, memory size and the road between them
A GPU card is sold on three numbers. How much arithmetic its cores can do in a second. How many gigabytes of memory sit on the card. And how fast bytes can move between that memory and the cores. Most people look at the first two. For a language model that is writing an answer, the third one sets the speed. This lesson opens gpu-2 and follows the bytes. You will see why a model has to live in the memory on the card, what happens if it lives in the server's ordinary RAM instead, why a full batch slows everyone a little, and why storing weights in fewer bits makes a model both smaller and faster.
- Compute
- 990 TFLOPS on an H100
- Memory size
- 80 GB on the card
- Memory bandwidth
- about 3,350 GB/s, memory to cores
- The model
- Qwen3-32B · 32.8 GB at 1 byte a weight
Read the whole lesson as text
1. One card, three numbers
A request reaches gpu-2. Open the worker and there are two computers on one motherboard. The host has CPUs and ordinary memory, DDR5 in slots. The GPU is a card in a PCIe slot with its own cores and its own memory soldered right beside them. That memory is called HBM, and people also say VRAM. Three roads carry bytes here, and they are very unequal. From the card's memory to its cores: about 3,350 GB every second. From the host's memory to its CPUs: about 307. Across the PCIe slot between the two computers: about 64.
- A chat request is sent to gpu-2. What happens to it next depends on three numbers of the card inside.
2. First question: does it fit?
Memory size is the number that says yes or no. There is no swapping to disk on a GPU. A model that does not fit does not start. The weights come first. Qwen3-32B has 32.8 billion of them, and this factory stores each in one byte, so they take 32.8 GB of the 80. What is left is for the KV cache, the working memory of the conversations being served. Each token of context costs 262,144 bytes there. So the second number of the card turns directly into how much conversation it can hold at once: about 180,000 tokens.
- The weights take 32.8 GB. The other 47.2 GB is cut into blocks for KV cache.
3. Every token reads every weight
Now the model writes. Each new token needs one pass through all 64 layers, and a pass uses every weight once. The weights do not sit in the cores. They are streamed out of GPU memory, through the cores, on every single pass. The arithmetic done on each weight as it goes by is small, and the cores finish it faster than memory can deliver the next bytes. So the cores wait on memory. That makes the ceiling simple division. 3,350 GB a second, over 32.8 GB a pass, is 102 passes a second. No amount of extra compute raises that number. Only a wider road or a smaller model does.
- For one token, all 32.8 GB of weights stream from GPU memory through the cores.
4. Why the model cannot live in system RAM
The server has far more ordinary memory than the card has HBM, often a terabyte. It is tempting to leave the weights there. Follow the bytes. To reach the GPU's cores from host memory they have to cross the PCIe slot, at about 64 GB a second. One pass would take half a second, so the model would write two tokens a second. This is the whole reason GPU memory is priced the way it is. The card's memory is not special because it is large. It is special because of the road that leaves it. PCIe is for loading the model once and for moving cache blocks in and out. It is never in the path of a pass.
- Suppose the weights stayed in host memory. Each pass would pull 32.8 GB across PCIe.
5. A batch shares the road
One pass can produce a token for many requests at once. The weights go by once and every request in the batch uses them. That is why a GPU server is efficient at all. But each request also reads its own KV cache during the pass, and those bytes travel the same road. Take 32 conversations of 2,000 tokens. Their caches add up to 16.8 GB, read on every pass on top of the weights. The pass is now 49.6 GB and the ceiling drops from 102 passes a second to 67. Each user gets 67 tokens a second where a lone user had 102. The card as a whole produces 2,162. Bandwidth is the thing they are sharing.
- With 32 requests in the batch, each pass reads the weights once and all 32 caches.
6. Fewer bits: smaller and faster
Weights are trained as 16-bit numbers. Stored that way this model is 65.6 GB. It fits in 80, but only 14.4 GB is left for conversations and each pass reads twice as many bytes, so the ceiling is 51 tokens a second. Storing each weight in 8 bits is what this factory does. The model halves, the room for KV cache triples and the ceiling doubles. At 4 bits it halves again. This is called quantization, and it is the one change that helps on memory size and on bandwidth together. What it costs is precision. Each weight is rounded to one of fewer values, and below 8 bits the answers start to show it.
- Halve the bytes per weight and a pass reads half as much. The same road carries twice the tokens.
7. Reading a card's label
Now the three numbers can be read for what they decide. Memory size says whether the model fits and how many conversations fit beside it. Bandwidth says how fast it writes. Compute says how fast it reads a prompt. Put this model on four cards. The H200 has the same cores as the H100, so prompts are read no faster. It writes faster and holds more than twice the conversations, because the only things that changed are its memory and the road out of it. That is a whole product generation made of the second and third numbers alone.
- The same 32.8 GB pass, on four cards. The ceiling follows the bandwidth and nothing else.
Summary
A model that is writing an answer reads all of its weights for every token. So its speed is the bandwidth between GPU memory and the GPU's cores, divided by the size of the model. Memory size decides whether the model fits and how many conversations fit with it. Compute decides how fast a prompt is read. The weights have to live on the card because the slot to the rest of the server is fifty times narrower. Everyone in a batch shares that one road, and storing weights in fewer bits is the only change that buys both room and speed.
Next lesson: A computer in the network slot