Prefill and decode: the two speeds of a chat model
AI on your own PC, explained · 9 of 20
Beginner
Reading all prompt tokens at once ran at 524 to 531 tokens per second at 1k context, against about 67 when we replayed one token at a time. Writing the answer stays one token at a time.