Traffic-aware speculative decoding for LLM inference
An inference service used vLLM speculative decoding with a Llama 3.2 1B draft model and Llama 3.1 8B target model. It nearly doubled single-request JSON extraction speed, but reduced aggregate throughput and increased latency at about 32 concurrent requests, leading the operator to enable speculation only for low-concurrency, high-acceptance workloads.
- Reported result
- For one JSON extraction request, throughput increased from approximately 48 to 88 tokens per second.
- Key limitation
- Benefits depend strongly on draft-token acceptance, temperature, workload repetition, and concurrency.
Task solved
Increase autoregressive token generation throughput while preserving the target model's output distribution.
How it was done
A single 48GB GPU served a JSON extraction workload and an internal chat assistant. The deployment used four speculative tokens, with Llama 3.2 1B as the draft model and Llama 3.1 8B Instruct as the target.
- Tools
- vLLM speculative decoding
What was checked
Reported result
- For one JSON extraction request, throughput increased from approximately 48 to 88 tokens per second.
- Chat at temperature 0.8 showed no benefit, approximately 48 versus 47 tokens per second.
- At roughly 32 concurrent mixed requests, aggregate throughput was about 15% lower than the non-speculative baseline and p50 inter-token latency increased.
- The operator split deployments, using n-gram speculation for low-concurrency extraction and plain decoding for the higher-concurrency chat pool.
Problems / limitations
Benefits depend strongly on draft-token acceptance, temperature, workload repetition, and concurrency. Low acceptance rates make draft computation overhead exceed the gain. At higher concurrency, target verification becomes compute-bound, draft-model execution adds overhead, and draft weights and KV cache reduce capacity. Single-request benchmarks can therefore give misleading results.
Original source
jidonglab / Dev.to
Open source discussion