π Chapter 0 β Orientation & the Request Map β
Episodes 00 β 01
Training vs inference β
| π Training | π Inference | |
|---|---|---|
| Analogy | Buying the car | The taxi meter |
| Bill | One big bill, then done | Keeps running as long as the product is live |
| Who pays | Model builder | You, once you run open weights yourself |
Open-weight models changed who owns the meter. Once you self-host, you control latency, availability and cost, and the work of optimizing them is now yours.
πΊοΈ The six stages of one request β
β³ The hidden stage: the queue
Nothing is computed while a request waits in the queue. Benchmarks don't queue, but your user's clock started when they hit enter.
π Prefill vs βοΈ Decode β two different programs β
There are only two reasons anything is slow:
- Waiting on arithmetic β compute-bound (prefill usually lives here)
- Waiting on memory β memory-bandwidth-bound (decode lives here almost permanently: it drags the whole model across the bus for every token and uses it once)
π The four numbers to live with β
| Metric | Meaning | What it really is |
|---|---|---|
| TTFT β time to first token | Enter β first word on screen | Queue + Prefill |
| ITL β inter-token latency | Gap between words | A distribution. Stalls show up in the tail |
| Throughput | Requests finished per second | Capacity & cost modelling |
| Goodput β | Requests finished within SLO | What actually helped someone |
A response that arrives after the user closed the tab still counts toward throughput. It doesn't count toward goodput.
π§ The symptom β cause tree β
π« Out of scope for this course β
Training, fine-tuning, retrieval quality, prompt design, agent logic. This course starts once the model exists and a request has arrived.
β Homework
Open your production dashboard. Can you see all four numbers? Most teams find they only have throughput.
