Skip to main content
Cloud & AI Hub
Browse
Glossary AI Directory Playgrounds Models Prompts Explainers Strategy Matrix Benchmark Decoder
Inference Systems Optimization

Speculative Decoding Speedup Calculator

Evaluate expected generation speedups when pairing large target models with small, high-speed draft models. Compute token latency, expected acceptance rates, and net compute savings.

Serving Variables

Adjust latency and acceptance configurations below.

80 ms
Single-token forward pass latency of the main LLM (e.g. Llama 3 70B).
10 ms
Single-token forward pass latency of the draft LLM (e.g. Llama 3 8B).
0.70
Probability that the target model accepts a draft token. Dependent on semantic domain alignment.
4
Number of draft tokens generated before submitting block verification to the target model.
Net Speedup 1.82x Faster token generation
Speculative Latency 44.0 ms Compared to baseline 80ms
Expected Tokens / Step 2.77 Generated per verification

Speculative Generation Step Trace

Draft Proposal Phase
Target Verification Outcome

âš™ī¸ Speculative Decoding Math

The expected number of accepted tokens per verification block of length γ is: E = (1 - αγ + 1) / (1 - α)

The net latency per generated token matches: Ttoken = (γ × Tdraft + Ttarget) / E