Understand how prompts become tokens, how attention and KV cache work, and how serving engines scale inference.
4notes in this path
Note 011 of 4
LARGE LANGUAGE MODELS
From Prompt to Response: A Step-by-Step Walkthrough of LLM Inference
A cleaner mental model for LLM inference: prompt templating, tokenization, scheduling, prefill, KV cache, decode, and the split between the inference engine and the model.