SpinTheMic
Pro

Explain it in 60 seconds

Prefill vs decode phases

Machine Learning · LLM Fundamentals · Experienced

What are the prefill and decode phases of LLM inference, and why do they behave differently?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Prefill: process all prompt tokens in parallel; compute-bound.
  • Decode: generate one token at a time; memory-bandwidth-bound.
  • Prefill drives time to first token; decode drives tokens per second.
  • Different optimizations for each.
  • Disaggregated serving runs them on separate hardware.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics