项目
在 GitHub 查看
vllm-project/vllm-gr
关于
A framework for efficient model inference with generative recommendation models
人工智能与机器学习实测星标增长
- 24小时
- +2
- 7天
- 正在收集历史
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
vLLM-GR brings generative recommendation models to vLLM.
Latest News
- [2026/11] vLLM community officially released vllm-project/vllm-gr in order to support generative recommendation model serving.
About
vLLM-GR is an independent extension of vLLM for generative recommendation. A recommendation model uses a person's interaction history to predict which items will interest them.
- Recommendation inputs. Views, clicks and other interactions describe a user's history. A prompt can ask the model to recommend the next item.
- Model architectures. The current implementation focuses on inference for autoregressive generative recommendation models.
- Recommendation outputs. Generation returns candidate item IDs, such as semantic IDs (SIDs), ordered by sequence likelihood. Ranking a supplied candidate set is planned.
vLLM-GR is fast with
- One submission for the entire beam search. The frontend submits the request to EngineCore once. The engine drives prefill and every decode step, then returns the ranked candidates and their scores in one response.
- BeamAttn and KV cache reuse. All beams attend to the same cached prompt. The beam KV cache carries each selected parent's suffix into the next step. Across requests, vLLM's prefix cache skips prefill for matching prompt blocks.
- Asynchronous scheduling. While the device executes one step, the host can prepare and submit the next. This overlaps host preparation with device execution across prefill and decode.
- On-device beam postprocessing. Device kernels apply catalog constraints and select the highest-scoring valid continuations. The next decode step uses the selected tokens directly on the device, avoiding a host round trip for each beam decision.
vLLM-GR is flexible and easy to use with
- Generate candidate SIDs with full-vocabulary or catalog-constrained Beam search. Set per-step candidate and beam widths and the result count.
- Reuse the same
grconfiguration for offline Python inference, OpenAI-compatible HTTP completions, and experimental gRPC serving. - Roll out model weights and replace item catalogs independently. Weight updates pause and drain instances. Online catalog replacement requires asynchronous Beam execution on CUDA.
- Reuse vLLM's platform abstraction to support CUDA GPUs and Ascend NPUs with device-specific worker and ModelRunner optimizations, and extend support to other hardware backends.
vLLM-GR supports the following models
- Generative recommendation. OneRec-1.7B generates a ranked list of candidate SIDs for a user's history.
Getting Started
- Installation — Install vLLM-GR from source on NVIDIA GPUs or Ascend NPUs.
- OneRec quickstart — Generate ranked recommendations with OneRec-1.7B offline or serve the model over HTTP.
- Feature compatibility — Check which beam search and serving features are supported on each platform.
Contributing
We welcome and value any contributions and collaborations. Please check out Contributing to vLLM-GR for how to get involved.
Join the Community
Ask questions and share feedback in #sig-gr on vLLM Developer Slack,
or scan the vLLM-GR WeChat group QR code in WeChat.
If the QR code has expired, ask for a fresh one in #sig-gr.
Security
See the security policy for reporting and deployment guidance.
License
Apache License 2.0, as found in the LICENSE file.
探索相关项目
加载中…