Skip navigation
"how fast is this speculative decoder for coding?" none of us can know, so I built specbench for you…
0:00 / 0:50

"how fast is this speculative decoder for coding?" none of us can know, so I built specbench for you…

merve

@mervenoyann95K followers

Visit on X
87 likesDownloadOriginal post

10,189 views

"how fast is this speculative decoder for coding?" none of us can know, so I built specbench for you to get the best speed-up 🤝 speculative decoding drafter speed-ups depend on > number of draft tokens > drafter accuracy > quantizations etup > your use case overlapping with training data of drafter > hardware (specifically bandwidth) specbench is a lean CLI to benchmark a given drafter against main model, sweep across different number of draft tokens, hardware, quant setups for you to find best setup for your use case! 🔥 it comes with different presets (coding, knowledge work, multimodal) but it's bring your own dataset, as well as supporting local benchmarking and HF Jobs 🤗 please give this a try, I built it for myself but my colleagues think it's dope so I decided to open-source 🫡

8 Comments

Comments from the original post on X (Twitter)

  • merve's profile picture

    @mervenoyann

    you might like this ^

    3 likes

  • Miguel Figueroa's profile picture

    @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

  • merve's profile picture

    @mervenoyann

    many thanks! I published it on pypi btw

    1 like

  • Eric's profile picture

    @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.

  • Mike Gannotti 🔳's profile picture

    @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.

  • Solomon's profile picture

    @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.

  • Off Radar AI's profile picture

    @OffRadarAI

    Finally something better than picking draft length by vibes

  • Aliii's profile picture

    @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.