vLLM-GR: Beam-Search Serving for Generative Recommendation
Generative recommenders like OneRec produce a semantic ID (SID) for the next item a viewer might watch, but a feed needs many candidates within one request's latency budget. Each ID is only a few tokens, yet the engine must explore many paths and return servable items — a workload general-purpose LLM serving stacks were not built around.
Generative recommenders like OneRec produce a semantic ID (SID) for the next item a viewer might watch, but a feed needs many candidates within one request's latency budget. Each ID is only a few tokens, yet the engine must explore many paths and return servable items — a workload general-purpose LLM serving stacks were not built around.
vLLM-GR, released as version 0.30.0 on vLLM 0.30.0, keeps vLLM's scheduler, model execution and paged KV cache and adds a beam session that spans the whole search. EngineCore owns each session from admission to completion; the model runner scores the next token at each stage, beam selection records each surviving path's score and parent, and the next decode uses those parent indices to read the right KV state. Because all candidate paths share the cached user history, the prompt is not copied per candidate, and a prefill–decode–decode pipeline lets the host prepare the next stage while the accelerator runs the current one. A catalog constraint table restricts generation to SIDs that map to real items, and per-stage beam widths and per-parent limits let a service explore more partial IDs than it returns. Callers submit one beam search via Python, an OpenAI-compatible HTTP endpoint, or gRPC and get candidate sequences and scores back in one response. The benchmarks report P99 latency for OneRec-1.7B at 1,024 input tokens, beam widths 256 and 128, and batch sizes 1, 4 and 8 across four NVIDIA GPUs and two Ascend NPUs. The authors caution that the charts mix timing definitions, sample counts and backend settings. In the most controlled run (RTX PRO 6000, BF16, three generated tokens, catalog constraints off, 48 timed batches after three warmups), NVIDIA SID-GR was slightly faster at batch size 1 (28.25 ms vs 29.21 ms), while vLLM-GR led at batch sizes 4 and 8. At beam width 256 and batch size 8 on H20, vLLM-GR measured 369.4 ms against 1,280.1 ms for SGLang and 428.1 ms for SID-GR; on A2 with constraints enabled it edged xLLM, 312.69 ms to 324.60 ms. At beam width 128 the fastest backend varies by accelerator and batch size, and some Ascend runs ran out of memory before the largest configurations.
For teams serving generative recommenders, beam search with shared KV and catalog constraints is now a first-class workload on the vLLM stack, and the authors' numbers suggest it pays off most at larger batch sizes and wide beams. Treat the cross-backend comparisons as vendor-run and provisional until backend revisions and timing setups are standardized.