Debug Foundry

Let a small model guess ahead — and check four guesses at once.

Turn it, pause it, drag through the steps. Then tune the drafter and watch the speedup move.

Not a video. A small simulation of speculative decoding — a tiny drafter, a big verifier, one token lane.

Drag to turn · scroll or pinch to zoom

Finished state of the speculative decoding simulation

Tokens per big-model pass
1

1/8First step sentence

    0.0s
    Replay the ending with
    Drafter quality decent drafter

    What it's for

    Good to know

    Verification is parallel because the big model can score a whole drafted span in one forward pass — checking is not generating. This simulation shows the greedy case: each draft is the drafter's best guess and the big model's own token replaces the first miss, so the text is exactly what greedy decoding would say. With random sampling, a corrected accept/reject rule (in the references) keeps the output distribution exactly the big model's.

    How it works, step by step

      Why the steps go in this order

      Before you rely on it

      Four draft chips stand in for a tunable lookahead, and the acceptance rate and tokens-per-pass numbers are illustrative — real speedups depend on the drafter, the workload and the hardware. The parallel verify, the keep-the-matches rule and the exactness guarantee are exactly as shown.

      References