Module 7 · Running it: memory, speed and money

Beyond the transformer: what the alternatives trade

In this lesson

  • 9 min read
  • 9 reading sections
  • Knowledge check
  • Lesson 10 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 10Free · no account needed
Lesson steps

Why anyone wants out

Read back over this module and one object keeps appearing: the key-value cache. It grows with every token of context, it is read on every decode step, it decides how many users fit on a card, and prefill cost grows with the square of the prompt. Paging, quantising the cache, sliding windows, grouped-query attention, disaggregated serving: most of the engineering in the last nine lessons is engineering around one data structure.

The alternatives to the transformer attack that structure at the architecture rather than in the serving stack. Each one makes a trade, and the trade is the thing to understand, because the marketing will only tell you one side of it.

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) ‘Beyond the transformer: what the alternatives trade’, in How a Language Model Actually Works. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/how-llms-work/beyond-the-transformer (Accessed: 29 November 2026).