"how fast is this speculative decoder for coding?" none of us can know, so I built specbench for you…
@mervenoyann95K followers
10,189 views
8 Comments
Comments from the original post on X (Twitter)

@mervenoyann
you might like this ^
3 likes

@figu7511
Neat quick tool. Thank you for sharing. There's always a need for "satellite" tools that enrich & benefit the llama.cpp ecosystem. Another highly needed tool is to have some sort of auto-calibration for a given hardware caps, model and task that provides the optimal args to use.
1 like

@mervenoyann
many thanks! I published it on pypi btw
1 like

@LiEvancool
Does the coding preset test long-context multi-turn diffs or short single-turn completions? Drafter acceptance on a 32k-token repo edit looks pretty different from standalone prompts once KV bandwidth starts competing with draft verification.

@MichaelGannotti
Love that specbench sweeps draft-token counts and quant setups together. Drafter speed-ups always felt like folklore; a bring-your-own-dataset benchmark makes it something you can measure on your own hardware. Thanks for open-sourcing it, Merve.

@solomonmithra99
Concurrency belongs in the sweep too: spec decoding spends idle compute, and at big batches that compute isn't idle, so speedup can go negative.

@OffRadarAI
Finally something better than picking draft length by vibes

@drunk_vibecoder
I’d put 10–20-token completions in their own bucket and rank drafters by end-to-end latency there. If I’m waiting for one line of autocomplete, I care how fast the line arrives. The per-prompt timings in specbench make this comparison possible.