Back to Open source

[Speculative Decoding] : Add speculative decoding metrics reporting to llm_bench and wwb

IssueAdd Speculative Decoding Miss Rate Metric to LLM Benchmark Reporting #3805

The benchmark tools did not show how many draft-model tokens the target model rejected. Without a miss-rate metric, users could not easily assess draft-model suitability or tune speculative decoding.

View issue on GitHub
Our PR[Speculative Decoding] : Add speculative decoding metrics reporting to llm_bench and wwb #4248Merged

Added speculative decoding token counts, acceptance rates, and miss rates to llm_bench logs and Who-What Benchmark CSV output using existing performance metrics.

Rates use candidate-token counts rather than processed tokens. The reporting handles zero candidates, unavailable rates, native timing units, and batch-wide counters without repeating totals on every row.

Preserved generated answers and non-speculative output, documented the CSV fields, and added numerical, timing, CSV, and logging regression coverage.

View PR on GitHub
[Speculative Decoding] : Add speculative decoding metrics reporting to llm_bench and wwb · Prashant Takale