Skip to content

πŸš• Chapter 0 β€” Orientation & the Request Map ​

Episodes 00 – 01

Training vs inference ​

πŸš— TrainingπŸš• Inference
AnalogyBuying the carThe taxi meter
BillOne big bill, then doneKeeps running as long as the product is live
Who paysModel builderYou, 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:

  1. Waiting on arithmetic β†’ compute-bound (prefill usually lives here)
  2. 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 ​

MetricMeaningWhat it really is
TTFT β€” time to first tokenEnter β†’ first word on screenQueue + Prefill
ITL β€” inter-token latencyGap between wordsA distribution. Stalls show up in the tail
ThroughputRequests finished per secondCapacity & cost modelling
Goodput ⭐Requests finished within SLOWhat 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.

<<>> with β™₯️ by S@Nchit