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
Update: For a deeper systems-level treatment of LLM inference, especially the interaction between request scheduling, prefill, decode, and KV-cache reuse, see arXiv:2606.24937.
Attention dilution (also called context dilution) is one of the fundamental limitations of transformer-based LLMs when dealing with long contexts or extended agent memory.