Module 7 · Running it: memory, speed and money

Cascades and routers: paying for the hard cases only

In this lesson

  • 8 min read
  • 8 reading sections
  • Knowledge check
  • Lesson 9 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 shape of a workload

Look at a day of real requests and most of them are easy: a reformat, a short classification, a question the small model answers as well as the large one. A few are hard. Sending everything to the frontier model pays the frontier price on every easy request in order to be ready for the hard ones, and the previous lessons’ arithmetic says that price is a multiple of ten or more.

Published routing studies, on mixed workloads, report that sending a third to two-thirds of requests to a cheap model kept around 95 per cent of the strong model’s measured quality at somewhere between a third and a half of the cost. The exact figures depend on the workload; the shape does not. There are two ways to build this, and each has a weak point you can name in advance.

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) ‘Cascades and routers: paying for the hard cases only’, in How a Language Model Actually Works. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/how-llms-work/cascades-and-routing (Accessed: 29 November 2026).