Module 7 · Running it: memory, speed and money

Serving a hundred people from one card

In this lesson

  • 9 min read
  • 8 reading sections
  • Knowledge check
  • Lesson 5 of 10 in this chapter

This chapter’s goalPredict the tokens-per-second a given model will produce on a given machine from memory bandwidth alone, say whether a model and context will fit in a stated amount of memory, choose a quantisation level and defend it with a measurement, estimate the cost of a token from a GPU’s hourly price, and explain the trade an alternative architecture is making.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 9Free · no account needed
Lesson steps

The idle machine, one more time

The bandwidth lesson left a GPU generating for one user using about a three-hundredth of its arithmetic capacity, because every decode step reads all the weights to produce one token. A server exists to fill the other 299 parts. The way it does that has changed twice since 2022, and each change is a mechanism you can reason about.

Static batching, and why it was abandoned

The first idea: wait until sixteen requests have arrived, run them together as one batch, return the results. Throughput rises sixteen-fold. Three things go wrong. Requests wait for the batch to fill. Every sequence in the batch is padded to the longest, wasting cache. And the batch finishes when its longest response finishes: a user who asked for one word waits for the user who asked for an essay. Static batching gave good throughput numbers and a dreadful experience, and no serious server uses it now.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the AI, Actually Explained exam.

Stuck on something?Ask Anjali, your AI tutor

How to cite: Addaly (2026) ‘Serving a hundred people from one card’, in How a Language Model Actually Works. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/how-llms-work/serving-many-users (Accessed: 29 November 2026).