Inference 101
Every answer an AI gives is a small job run on a machine somewhere. This course follows one through, opens up the machine and the tricks that make it cheap, then shows you how to cost it.
1What happens when you press send
By the end, you can
- Follow one request from your prompt to the answer.
- Say where the time and money go, and why memory matters more than maths.
- Explain batching, caching, quantisation, speculative decoding and routing in plain words.
- Say what a GPU, an inference chip and a serving engine each do.
- Run an open model on your own machine, and know what you give up.
- Read a price list, measure speed fairly, and price a job by the finished task.
The lessons
The basics
Faster and cheaper
- 6Batching: serving many people at onceThe batching card
- 7Caching: not reading the same thing twiceWhat can be cached, on one card
- 8Quantisation: smaller numbers, smaller billsThe quantisation trade-off card
- 9Speculative decoding: a fast guesser and a careful checkerThe speculative decoding card
- 10Routing: the right model for each jobA routing table