You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Request: Add MTP / speculative decoding support to llama-bench for PR #22673 #22947
error: invalid parameter for argument: --spec-type
Motivation
Currently MTP benchmarking requires custom scripts or llama-server setups since speculative decoding flags are unavailable in llama-bench.
Adding support directly to llama-bench would make it much easier for users to quickly test and compare speculative decoding configurations such as different n-max values, context depths, throughput scaling, and VRAM tradeoffs using the built-in benchmarking tooling.
Possible Implementation
I did some digging and it looks like llama-bench currently uses its own parser / benchmark loop instead of the shared common argument infrastructure used by llama-cli and llama-server, which is likely why the speculative decoding flags are currently unavailable there.
Reacted by Janus Reith, Charles Huber, Goldlionren, Mike Iversen, Nic, Vinay Saini, Jürgen Kozyrev, JamesLee, Niccolò Belli, Eddie Kim and 8 more
llama-bench measures performance with synthetic tokens. That's fine for regular models, but it doesn't work well for speculative decoding: SD speedups depend heavily on the actual prompts, the task category, the serving settings, and so on, and random tokens can't capture realistic draft acceptance.
For SD specifically, you may want to check this PR (#23869), which uses SPEED-Bench (an industry-standard speculative decoding benchmark) to measure SD performance end-to-end against llama-server.
Activity
ruixiang63 commentedon May 29, 2026
llama-benchmeasures performance with synthetic tokens. That's fine for regular models, but it doesn't work well for speculative decoding: SD speedups depend heavily on the actual prompts, the task category, the serving settings, and so on, and random tokens can't capture realistic draft acceptance.For SD specifically, you may want to check this PR (#23869), which uses SPEED-Bench (an industry-standard speculative decoding benchmark) to measure SD performance end-to-end against llama-server.
github-actions commentedon Jul 14, 2026
This issue was closed because it has been inactive for 14 days since being marked as stale.