LLM inference explained: from prompt to generated tokens
Understand LLM inference, prefill and decode, TTFT and TPOT, GPU memory, batching, and the measurements that matter for a serving system.
Read the introductionA request, from text to tokens
- TokenizeText becomes token IDs
- PrefillProcess the prompt
- DecodeGenerate the next token
- RespondStream text to the client