What is Prefill?
The first stage of LLM inference, processing all input prompt tokens together; it tends to be compute-bound. The following token-by-token generation is called decode.
Field: AI Hardware & Software Stack
The first stage of LLM inference, processing all input prompt tokens together; it tends to be compute-bound. The following token-by-token generation is called decode.
Field: AI Hardware & Software Stack
In prefill, hundreds or thousands of input tokens are computed together, so weights are reused across many tokens, the work becomes matrix-matrix products and it is compute-bound.
LLM inference splits into a stage that processes the input …For compute-bound prefill the gain is small, and quantization that performs the computation itself in low precision helps more.
In LLM inference, why does weight-only 4-bit quantization (…AI compiler AI inference All-reduce Arithmetic intensity Attention mechanism Backpropagation Batch size Computational graph Data parallelism FlashAttention