Prompt Processing
What is Prompt Processing?
In one sentence: Prompt processing is the model reading and understanding your input before it starts writing an answer.
It is another name for the prefill work. Speed is usually measured in prompt tokens per second, and it is often much faster than generation because tokens are handled in parallel.
What does Prompt Processing look like?
A laptop might process prompts at 500 tokens per second but generate at only 30.
Why does Prompt Processing matter?
Fast prompt processing matters for long documents and big chat histories.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/prompt-processing/">Prompt Processing, explained simply</a> (The AI Math Dictionary)