Skip to content

Glossary: Serving LLMs at Scale

Prefill

The phase where the model reads the whole prompt in parallel and stores keys and values in the KV cache, ending with the first output token. It is compute-bound and mostly sets TTFT.

Where the book teaches it

Related terms

DecodeTime to first token (TTFT)Chunked prefill