tensorfolk

Inference fundamentals

Inference has two phases: prefill processes the prompt in parallel, decode generates tokens one at a time. Most performance work targets one or the other.

Stable: this rarely changes. Reviewed 17 Oct 2026.

Key ideas

Common mistakes

Go deeper