North Coast Synthesis Ltd.

Speculative decoding

◀ Prev | 2026-03-23, access: $ Basic

Generating text, especially on a small computer, often requires the CPU anf GPU to wait for each other, and there may be difficulty filling all the GPU's capacity.  It's possible to improve overall performance by guessing tokens with a cheaper model first, then using spare GPU capacity to confirm whether those guesses are good, eliminating the need to actually choose token with a more expensive model when the guesses happen to be good ones.

Video sampling text theory Generating text, especially on a small computer, often requires the CPU anf GPU to wait for each other, and there may be difficulty filling all the GPU's capacity. It's possible to improve overall performance by guessing tokens with a cheaper model first, then using spare GPU capacity to confirm whether those guesses are good, eliminating the need to actually choose token with a more expensive model when the guesses happen to be good ones.