Code edits, structured responses and conversations often reuse token sequences. Suffix decoding proposes a continuation seen after an earlier match and lets the target model verify it. The former vLLM implementation sent newly sampled tokens to a host suffix tree every step and required synchronous scheduling. Model Runner V2 keeps both lookup and draft state on the GPU so the CPU can schedule ahead.

Nishant Revur · 2026-11-30 · Suffix Decoding on the GPU: Draft-Model-Free Speculation in vLLM’s Model Runner V2

Two histories supply candidates

One path looks for the longest match inside the request’s own prompt and output. A second appends completed responses to a GPU ring containing one million tokens by default. Two tables index preceding two- and four-token sequences with eight slots per bucket, yielding at most 16 cross-request candidates. Backward token comparisons establish the actual match length and dismiss collisions or overwritten entries. Frequency voting helps choose a continuation. The target model retains the acceptance decision.

A fixed-width draft can be verified selectively

Fixed slots work with graph replay and asynchronous execution. Unmatched slots are filled with the latest sampled token, making full verification wasteful under load. Acceptance counters track source, match-length bucket and draft position. Smoothing and periodic halving let old traffic lose influence. The verifier trims the tail according to the current batch cost. Tensor-parallel ranks ingest completed requests in the same order and maintain identical integer counters, avoiding a collective when proposing tokens.

Where the high-concurrency gain comes from

The authors tested BF16 Qwen2.5-1.5B and 7B on one L4 with greedy decoding capped at 256 output tokens and a mix including chat, math, code edits and templated JSON. With the same attention backend, v0.34.0 with adaptive verification achieved 1.05–1.22 times the older v0.33.0 implementation’s offline throughput through concurrency 64 and 1.19–1.33 times at 128–256. Host synchronization, scheduling and verification length all changed. The full-engine gain therefore reflects more than lookup speed and depends on repetition in the traffic.

The two Qwen panels plot throughput relative to speculation disabled as concurrency rises.View original ↗

The two Qwen panels plot throughput relative to speculation disabled as concurrency rises.

Accounting for corpus ingestion and launch overhead

Completed responses must enter the ring before their request slots are freed. When a burst exceeds ring capacity, programs skip positions a later response in the same burst will overwrite, avoiding competing writers. Ingesting 256 responses of 4,096 tokens took 0.57 ms at default capacity. Proposal kernels themselves used 11–34 microseconds of GPU time at batch sizes 1–256, but the current drafter runs outside CUDA graphs. At 4K context its actual step cost was about 90 microseconds. Launch overhead matters particularly for low-latency single-stream traffic.