An NVIDIA H100 can do close to a thousand trillion floating point operations every second. Put Meta's Llama 3.1 8B on it, ask it one question, and it writes back at roughly 200 tokens a second at best.

That gap bothered me. So I worked out where the speed actually goes.

The short version: for a single user, your GPU is not limited by how fast it can compute. It is limited by how fast it can read its own memory.

One token at a time

A language model writes text one token at a time. To produce the next token, it runs the whole model once: every layer, every weight.

Then it does it again for the token after that. And again.

So if your model has 8 billion weights, generating 100 tokens means touching all 8 billion weights 100 times. Nothing gets skipped.

Those weights live in the GPU's memory. To use them, the GPU has to pull them out of memory and into the compute units. That pulling has a speed limit, called memory bandwidth.

The one division

Here are the two numbers you need.

The model. Llama 3.1 8B has about 8 billion parameters. In FP16, each one takes 2 bytes. That is roughly 16 GB of weights.

The GPU. An H100 SXM has 80 GB of HBM3 memory with a bandwidth of 3.35 TB per second. That is 3,350 GB per second.

Every token needs all 16 GB read once. So the most tokens you can possibly produce in a second is:

3,350 GB/s ÷ 16 GB ≈ 209 tokens per second

That is the ceiling for a single user. It does not matter how many tensor cores the chip has. If the weights can't arrive faster, the math can't happen faster.

How much compute is sitting idle?

Now look at the other side.

A rough rule is that one token costs about 2 floating point operations per weight. For an 8 billion parameter model, that is around 16 billion operations per token.

The H100 delivers about 989 trillion operations per second in dense FP16.

989,000,000,000,000 ÷ 16,000,000,000 ≈ 61,800 tokens per second

So on compute alone, the chip could do about 61,800 tokens a second. Memory lets it do about 209.

That is roughly 300 times more compute than a single user can use. For one stream of text, most of the most expensive chip in the data center is waiting on memory.

This is my own back-of-envelope math, not a benchmark. But it gets the shape right, and the shape is what matters.

Why this explains most of inference engineering

Once you see the memory wall, a lot of things that looked like separate tricks turn out to be the same trick.

Batching

If the GPU has to read all 16 GB anyway, it might as well use those weights for many users at once. With a batch of 32 requests, you still read the weights once per step, but you produce 32 tokens instead of 1.

That is how a server gets thousands of tokens a second out of a chip that can only give one user about 200. Batching doesn't make any single user faster. It stops wasting the idle compute.

Quantization

If each weight takes fewer bytes, there are fewer bytes to move.

PrecisionWeightsCeiling on H100
FP16~16 GB~209 tok/s
FP8 / INT8~8 GB~419 tok/s
INT4~4 GB~838 tok/s

Half the bytes, double the ceiling. That is why quantization speeds up inference even when the GPU has compute to spare. It was never about the compute.

Faster memory

NVIDIA's H200 uses the same Hopper compute as the H100. What changed is the memory: 141 GB of HBM3e at 4.8 TB per second.

4,800 GB/s ÷ 16 GB ≈ 300 tokens per second

Same chip design, same tensor cores, about 43% more tokens for a single user. The whole upgrade is memory.

Bigger models hurt twice

A 70 billion parameter model in FP16 is about 140 GB. That doesn't even fit on one H100. And on an H200, where it does fit, the ceiling drops to around 34 tokens a second for one user. More weights means more bytes to drag across for every single token.

Where the simple math breaks

The ceiling is a ceiling, not a forecast. Real numbers come in lower, for a few reasons.

  • The weights aren't the only thing in memory. The KV cache has to be read too, and it grows with the length of the conversation.
  • There is overhead between tokens. Sampling, scheduling, and the Python code around the model all take time that has nothing to do with bandwidth.
  • You never hit 100% of rated bandwidth. The spec sheet number is a peak.
  • Batching doesn't scale forever. At some point the batch is big enough that compute or KV cache memory becomes the limit instead.

So treat the division as a sanity check. If your measured number is far below the ceiling, something other than the hardware is slowing you down. If it is close to the ceiling, no amount of tuning will help, and you need fewer bytes or faster memory.

The takeaway

When someone says a GPU is "fast", they usually mean compute. For serving a language model to one user, the number that matters is on a different line of the spec sheet.

Next time you size a deployment, do the division first. It takes ten seconds and it tells you what you're actually paying for.

Sources

  • NVIDIA H100 and H200 specifications: 80 GB HBM3 at 3.35 TB/s (H100 SXM), 141 GB HBM3e at 4.8 TB/s (H200), 989 TFLOPS dense FP16.
  • Meta, Llama 3.1 8B model card (parameter count).
  • All ceilings and the idle-compute estimate are my own calculations from those specs.