Home▸AI & Machine Learning▸Speculative Decoding: Draft Proposals, Verification and Speedup Curve (2D)

Speculative Decoding: Draft Proposals, Verification and Speedup Curve (2D)

Rows of draft proposals, verification marks and the output stream, with a live speedup-versus-draft-length curve and the best draft length marked. Same shared model as the 3D scene.

AI & Machine Learning2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Speculative Decoding: Draft Proposals, Verification and Speedup Curve (2D) ↗ Open standalone

A cheap draft model guesses several tokens ahead and a large target model verifies them all in one pass. Tune the draft length, draft cost, draft sharpness and target temperature, and watch the rounds play out token by token: accepted guesses, a corrected token at the first rejection or a bonus token when everything passes. The measured tokens per pass converge to the closed form, and the output distribution stays exactly the target's. Blender-built machines with numerical checks of the acceptance rate, the exactness identity and the speedup formula.

⚙ Under the hood

Rows of draft proposals, verification marks and the output stream, with a live speedup-versus-draft-length curve and the best draft length marked. Same shared model as the 3D scene.

Speculative DecodingLLM InferenceAcceptance RateRejection SamplingDraft Model

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)