vLLM-GR brings catalog-constrained beam search to recommendation serving
The open-source vLLM extension runs a complete candidate search in one request and reuses the cached interaction history across candidates.
The vLLM-GR team introduced vLLM-GR on Nov. 24, extending vLLM to serve models that generate item recommendations. The project says vLLM-GR 0.30.0 is built on vLLM 0.30.0 and supports NVIDIA GPUs and Ascend NPUs. Its launch example uses OneRec-1.7B to turn a viewer’s interaction history into a set of candidate video IDs rather than a single next item.
What changed
The extension runs a full beam search inside one request. It reuses vLLM’s scheduler, model execution and paged key-value cache, then adds a session that tracks how candidate paths branch. The paths share the cached viewer history instead of copying it for each candidate, and the accelerator selects which paths survive each step. Teams can search the full token vocabulary or constrain generation to IDs in an item catalog. In constrained mode, the search can discard a partial ID as soon as no catalog item starts with that prefix. The engine returns candidate sequences and scores through offline Python, OpenAI-compatible HTTP or gRPC interfaces, according to the launch post.
Who should test it
The immediate audience is recommendation teams evaluating generative candidate retrieval on these accelerators, particularly those that need wide searches without returning IDs their application cannot serve. The project reports the lowest P99 latency among the backends shown on all six tested accelerators at beam width 256 and batch sizes four and eight. That result is not a blanket ranking: at beam width 128 the leader varied, and the project’s benchmark write-up notes differences in timing definitions, sample counts and backend settings across runs.
What to try
Start with the offline OneRec demo. It documents how to run the same prompt first against the full vocabulary and then against a two-item sample catalog, so teams can check that every constrained result maps to a valid item. For a deployment decision, repeat the comparison with representative histories, beam widths and batch sizes, and measure latency through the serving interface you intend to use. The project lists broader ranking-model support and more flexible online batching as roadmap work, not part of the launch commitment.
sources
- vLLM project — Announcing vLLM-GRvllm.ai
- vLLM-GR — Offline Beam Search Demogithub.com
comments · 0