Views
No views yet
| Configuration | Temperature = 0 | Temperature = 1 |
|---|---|---|
| MEDUSA + KL | 2.19 | 1.85 |
| MEDUSA + LK (ours) | 2.21 | 2.00 |
Note: Earlier vLLM versions sampled draft tokens greedily regardless of temperature, which underestimated acceptance rates at temperature > 0. Stochastic draft sampling was introduced in v0.18.0, and from v0.21.0 it can be enabled viaspeculative_configusingrejection_sample_methodanddraft_sample_method. The acceptance metrics reported above were measured under standard rejection sampling and are reproducible with the configuration below.
1from vllm import LLM, SamplingParams
2
3llm = LLM(
4 model="meta-llama/Llama-3.1-8B-Instruct",
5 speculative_config={
6 "method": "medusa",
7 "model": "nebius/MEDUSA-Llama-3.1-8B-Instruct",
8 "num_speculative_tokens": 6,
9 "rejection_sample_method": "standard",
10 "draft_sample_method": "gumbel",
11 },
12)
13
14sampling_params = SamplingParams(temperature=0.7)
15outputs = llm.generate(["Explain speculative decoding in simple terms."], sampling_params)@misc{samarin2026lklosses,
title = {LK Losses: Direct Acceptance Rate Optimization for Speculative Decoding},
author = {Alexander Samarin and Sergei Krutikov and Anton Shevtsov and Sergei Skvortsov and Filipp Fisin and Alexander Golubev},
year = {2026},
eprint = {2602.23881},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2602.23881}
}