Speculative Decoding

A small draft model proposes K tokens. The target model checks all K in one pass. Accepted draft tokens reduce the number of target-model steps.

Target Model

Draft Model

Hardware

Parameters

Speculative Decoding Cycle

Ready
Draft
Verify ↓
Target
Output Sequence
Tokens will appear here as cycles complete.
expected speedup

Time Breakdown per Cycle

Speedup vs Acceptance Rate

Click a preset to change the settings.