Apex › Storage & databases

Speculative decoding

How LLM inference goes 2–3× faster without changing a single output token. A big model normally emits one token per expensive forward pass; speculative decoding runs a cheap draft model to propose several tokens, then the big target verifies them all in one pass and keeps the longest prefix it agrees with (plus its own token at the first miss). Toggle which draft guesses the target accepts and watch the kept prefix, the discarded tail, and the tokens-per-pass speedup — a good draft yields k+1 tokens per pass, a bad one just 1. The result is bit-for-bit greedy target decoding.

More in Storage & databases