Skip navigation
Introducing vLLM-GR: efficient inference for generative recommendation. 🎉
0:00 / 0:30

Introducing vLLM-GR: efficient inference for generative recommendation. 🎉

vLLM

@vllm_project55K followers

Visit on X
538 likesDownloadOriginal post

28,831 views

Introducing vLLM-GR: efficient inference for generative recommendation. 🎉 Turn interaction history into a set of candidate items with accelerator-side beam search, catalog constraints and shared KV caching—built on vLLM. Benchmarks, architecture and getting started below.

17 Comments

Comments from the original post on X (Twitter)

  • vLLM's profile picture

    @vllm_project

    Wide beams, lower tail latency. At beam width 256 and 1,024 input tokens, vLLM-GR recorded the lowest P99 among the backends shown at batch sizes 4 and 8 on all six accelerators. H20, batch 8: 369.4 ms vs. 1,280.1 ms for SGLang and 428.1 ms for NVIDIA SID-GR. These are separate benchmark runs; timing, sample counts and backend settings vary. Full methodology is in the blog.

    9 likes

  • vLLM's profile picture

    @vllm_project

    Beam width 128 shows how the tradeoffs change with hardware and batch size. On A5, vLLM-GR recorded the lowest P99 among the backends shown at all three batch sizes. At batch 8: 128.2 ms. On A100 at batch 8, NVIDIA SID-GR was lower: 199.0 ms vs. 209.7 ms for vLLM-GR. 1,024 input tokens. On Ascend, vLLM-GR and xLLM used catalog constraints; SGLang’s constraint setting was not recorded. See the blog for per-run methodology.

    6 likes

  • vLLM's profile picture

    @vllm_project

    One request, many candidate paths. vLLM-GR adds a beam session to the vLLM engine, reusing its scheduler, model execution and paged KV cache. Python, HTTP and gRPC entry points return candidate sequences and scores. Runs on @NVIDIA GPUs and @Huawei Ascend NPUs.

  • vLLM's profile picture

    @vllm_project

    Reuse the history. Prepare the next step. Beams share prompt KV, while each path keeps its suffix state. The host prepares the next decode stage while the device executes the current one, reducing duplicate work and waits between stages. The 2 → 3 → 2 paths shown are illustrative.

    2 likes

  • vLLM's profile picture

    @vllm_project

    Try OneRec-1.7B with vLLM-GR 0.30.0, built on vLLM 0.30.0. Blog + installation and serving examples: Code: Thanks to InferMatrix, @Inferact, openPangu, TikTok-Global E-commerce, ByteDance’s Data-Arch-China Commerce and Advertising-ML Infra, and LingQuAI for their contributions and production feedback!

    8 likes

  • Recsys Frontier's profile picture

    @RecsysFrontier

    Congrats on the launch! We're adopting vLLM-GR for OneTrans generative retrieval (GR), and look forward to continuing our deep collaboration with the vLLM team.

    3 likes

  • Oliver Leisgen's profile picture

    @OLeisgen

    Accelerator side beam search + catalog constraints with shared KV caching across the user history prefix is huge for practical throughput. Constrained decoding overhead and duplicate prefix KV were basically the two main blockers keeping generative retrieval out of real-time serving stacks.

    1 like

  • nathen fernandes's profile picture

    @NathenFernandes

    beam search on the accelerator is the part i'd test first 👀

    1 like

  • Adria Blancafort's profile picture

    @adriablancafort

    Very cool!

  • Igor Lessio - Robots/acc - AIFlow Labs's profile picture

    @AIFlow_ML

    H20 batch 8: 369 ms vs 1,280 for SGLang.

  • lz's profile picture

    @chen_linzh96875

    fantastic!

  • Anaxagore's profile picture

    @GarryLing1

    Interesting benchmark nuance in the post: at beam width W=256 on RTX PRO 6000, vLLM-GR & SID-GR run candidate pool K=W while SGLang Beam uses 2W, and SID-GR still edges out BS=1 (28.25 vs 29.21 ms) before vLLM-GR's async PDD host-prep pulls ahead at BS=4/8.

  • ZANDAR 2610's profile picture

    @Xandar2610

    @bot what is this for and. Who

  • Utsav Rai's profile picture

    @utsxvrai

    beams sharing the prompt KV is such a clean memory win

  • Karan🧋's profile picture

    @kmeanskaran

    Cool but can you share with me about vllm for Mac? Facing difficulties to run.

  • Fonsi_AI's profile picture

    @Fonsi_AI123

    Does catalog masking handle live inventory updates without rebuilding the trie?

  • John Smith's profile picture

    @JohnSmithub01r

    @grok 基座模型是啥 为啥能做推荐