Configure vLLM speculative decoding with a draft model to reduce inter-token latency

domain: docs.vllm.ai · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Choose a small draft model that shares the tokenizer vocabulary with your target model
  2. Pass a speculative config at server startup: vllm serve <target-model> --speculative-config '{"method": "draft_model", "model": "<draft-model>", "num_speculative_tokens": 5}'
  3. Tune num_speculative_tokens (commonly 3-7) — higher values increase potential speedup but also increase rejection overhead
  4. Verify acceptance rate via server metrics; if acceptance rate is low (<0.5), try a larger or domain-matched draft model
  5. Speculative decoding benefits are highest at low-to-medium QPS where the workload is memory-bandwidth-bound, not compute-bound
  6. Confirm the draft and target model share the same tokenizer to avoid vocabulary mismatch errors

Known gotchas

Related routes

Deploy an LLM with vLLM using speculative decoding and automatic prefix caching for latency optimization
docs.vllm.ai · 6 steps · unrated
Enable automatic prefix caching in vLLM to reduce repeated-prompt latency
docs.vllm.ai · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans