Prefill
The step where a model reads the whole request
An AI model answers in two steps. Prefill reads the full request, instructions and question together, before any word is written. Then decode writes the answer one token at a time. Long shared instructions make prefill the costly part when they are read again and again.
Think of it as
Reading the whole exam paper before writing the first answer.
Ideas that use this term