vLLM v0.34.0 Suffix Decoding GPU Implementation
Overview
vLLM v0.34.0 introduces a new GPU-native implementation of suffix decoding, a draft-model-free speculation technique. By moving the logic entirely onto the GPU within the Model Runner V2 (MRV2) architecture, this update removes the dependency on the Arctic Inference package and enables compatibility with asynchronous scheduling. The new implementation provides significant performance gains, ranging from 1.05–1.22x in offline throughput at moderate concurrency and up to 1.33x at high concurrency (128–256 requests) compared to previous versions.
Technical Architecture
The system operates by proposing draft tokens based on historical text patterns, which are then verified by the target model in a single forward pass. The architecture relies on three primary components:
- Request-Specific History: A Triton kernel identifies the longest suffix of the current request that has appeared previously in its own prompt or output, up to a depth of 24 tokens.
- Cross-Request Corpus: A GPU-resident token ring buffer (defaulting to 1 million tokens) stores finished responses. Hash tables keyed on 2 and 4-token sequences allow for rapid lookup of potential continuations across different requests.
- Adaptive Verification: To maintain performance under high load, the system uses online-learned confidence scores to trim the number of draft slots verified per step. This prevents the computational cost of verification from outpacing the gains of speculation at high concurrency.
Performance and Throughput
The GPU-native design ensures that the speculator remains performant even as batch sizes scale. Key performance findings include:
- Efficiency: Proposing a draft takes between 11–34 µs of GPU time, regardless of whether the corpus contains 1 million or 4 million tokens.
- Throughput Gains: In benchmarks using Qwen2.5-1.5B and 7B models, the new implementation consistently outperformed the previous Arctic-based method. At 256 concurrent requests, the new implementation remains 1.04x faster than non-speculative decoding, whereas the previous implementation fell behind.
- Workload Suitability: The technique is most effective for workloads with inherent repetition, such as agentic loops, RL rollouts, code editing, and structured JSON generation. For example, RL rollouts saw a 1.47x speedup in throughput.
Implementation and Usage
Suffix decoding is integrated directly into vLLM and requires no external draft models. Users can enable it via the speculative_config parameter:
from vllm import LLM, SamplingParams
llm = LLM(
model="Qwen/Qwen3-8B",
speculative_config={"method": "suffix"},
)
For high-concurrency serving, it is recommended to enable adaptive verification and use the Triton attention backend on pre-Hopper GPUs:
vllm serve Qwen/Qwen3-8B \
--speculative-config '{"method": "suffix", "enable_adaptive_verification": true}' \
--attention-backend TRITON_ATTN
Design Trade-offs
The move to a hash-based index from a suffix tree was a deliberate choice to ensure fixed-cost performance on the GPU. While this results in a marginal decrease in theoretical hit rates (approximately 1% compared to exact search), it eliminates the need for CPU-side coordination and expensive rebuilds. Furthermore, because drafts are generated based on a shared corpus, outputs remain consistent with the target model's distribution, ensuring accuracy is preserved across all configurations.