vLLM-GR Beats SGLang by 3.5x on Wide-Beam AI Recommendation Serving
vLLM-GR extends the vLLM engine with accelerator-side beam search and catalog constraints to serve generative recommendation models efficiently.
Takeaways
- vLLM team released vLLM-GR, an open-source inference engine for generative recommendation models.
- Adds accelerator-side beam search, catalog constraints, and shared prompt KV cache on top of vLLM.
- At beam width 256 batch 8 on H20: 369 ms P99 vs 1,280 ms for SGLang.
- Supports NVIDIA GPUs and Huawei Ascend NPUs; ships with OneRec-1.7B example.
- Entry points via offline Python, OpenAI-compatible HTTP, and gRPC APIs.
- Roadmap includes HSTU, MTGR, RankMixer, MoE support, and distributed KV cache reuse.
The vLLM project has released vLLM-GR, an open-source fork designed for generative recommendation. These models convert a user’s interaction history into ranked semantic IDs, which are token sequences that resolve to products, videos, or other catalog items.
Version 0.30.0 is based on vLLM 0.30.0 and supports NVIDIA GPUs and Ascend NPUs. The repository includes configurations for serving Kuaishou’s OneRec-1.7B through a Python API, HTTP, or gRPC.
Why feeds strain LLM servers
Generative recommenders must produce many candidates from one request. Given a viewer’s history, a model such as OneRec generates possible semantic IDs for the next video. Building a feed may require hundreds of candidates under a strict tail-latency target.
Beam search handles that task by retaining multiple candidate continuations at each decoding step. Recommendation workloads can require beams hundreds of paths wide, even though each item ID contains only a few tokens. Every path shares the same long prompt and diverges near the end.
General-purpose LLM servers typically optimize for longer text generation and narrower searches. vLLM-GR adapts vLLM’s scheduler, model execution, and paged key-value cache to reuse the shared prompt while efficiently tracking many short candidate paths. The key-value cache stores attention state from earlier tokens, while paging divides that state into blocks that the engine can allocate and release as needed.
Inside the wide-beam path
vLLM-GR maintains a beam session for the full search, recording how candidate paths branch while sharing work across them. Four mechanisms reduce memory use and decode overhead:
- Shared prompt state: All beams reuse the key-value cache for the user’s interaction history. Each candidate allocates new cache blocks only for its diverging suffix.
- Catalog-constrained decoding: The decoder permits prefixes that can complete to valid semantic IDs, pruning paths that cannot resolve to catalog items.
- Overlapped host and device work: The host prepares the next search stage while the accelerator executes the current one, reducing gaps between decoding steps.
- Configurable beam shapes: Services can set beam widths by stage and limit the candidates retained from each parent, allowing broad exploration before the final result set is trimmed.
Wide-beam P99 in the published tests
The project reports the lowest P99 latency among the tested backends at beam width 256, batch sizes 4 and 8, and all six accelerator configurations shown in its results. P99 is the latency threshold met by 99% of requests, so lower values indicate fewer slow requests at the tail of the distribution.
| Accelerator | Batch | Beam | vLLM-GR | SGLang | NVIDIA SID-GR |
|---|---|---|---|---|---|
| H20 | 8 | 256 | 369.4 | 1,280.1 | 428.1 |
| RTX PRO 6000 | 1 | 256 | 29.21 | Not reported | 28.25 |
| A100 | 8 | 128 | 209.7 | Not reported | 199.0 |
| Ascend A5 | 8 | 128 | 128.2 | Not reported | Not reported |
| Ascend A5 | 8 | 256 | 151.7 | Not reported | Not reported |
The H20 result at batch size 8 shows the largest cited gap: vLLM-GR completed P99 requests in 369.4 ms, compared with 428.1 ms for NVIDIA SID-GR and 1,280.1 ms for SGLang. NVIDIA SID-GR led two cited cases at lower concurrency or narrower search, including RTX PRO 6000 at batch size 1 and A100 at beam width 128.
The published summary omits exact backend revisions and most warmup counts, with warmup details provided only for the RTX PRO 6000 run. SGLang also uses a native candidate pool of 2W for a requested beam width W, which increases its search work and limits direct equivalence. The latency figures do not measure recommendation quality, sustained throughput, memory consumption, or production stability.
The teams this fork targets
vLLM-GR applies to systems adopting generative retrieval with semantic IDs, where one model proposes catalog candidates directly. Services built around conventional ranking models or two-tower retrieval use a different execution pattern and receive fewer immediate benefits from the fork.
The project’s launch post lists several planned additions:
- Candidate-scoring support for HSTU, MTGR, and RankMixer
- Native serving support for OneTrans
- Optimizations for larger models, including mixture-of-experts architectures
- Variable-length beams that release key-value cache blocks when sequences reach the end-of-sequence token
- Distributed key-value cache reuse across nodes
Organizations already operating vLLM for chat or agent workloads can reuse familiar scheduling, cache management, and serving interfaces for recommendation. Because vLLM-GR remains a specialized fork, adopters must also account for its separate release line, backend compatibility, and benchmark behavior under their own catalogs, beam settings, batch sizes, and latency targets.