Skip to main content
MindStudio
Pricing
BlogAbout
My Workspace
vLLM-GRgenerative recommendation modelOneRec 1.7B

vLLM-GR: How to Run Generative Recommendation Models Locally

vLLM-GR extends vLLM to serve generative recommendation models like OneRec 1.7B locally. Here's how it works and how to install it.

Edited by Luis Chavez-Mattos, Director of Product RSS
vLLM-GR: How to Run Generative Recommendation Models Locally

What is vLLM-GR?

vLLM-GR is an extension of the vLLM inference engine built specifically to serve generative recommendation models rather than chat-style language models. Instead of generating a text answer token by token, a generative recommendation model looks at a user’s watch or click history and outputs semantic IDs, codes that represent items a user might want next. Your application then maps those IDs back to real products, videos, or songs in your catalog. vLLM-GR is designed to return many ranked candidates from a single request, which is what recommendation systems actually need.

TL;DR

  • vLLM-GR is a new extension under the vLLM project on GitHub that adapts the popular LLM-serving engine to generative recommendation tasks instead of text generation.
  • The engine uses beam search to explore many candidate paths at once, sharing cached user history across all paths so the GPU doesn’t redo the same work repeatedly.
  • The currently supported model is OneRec 1.7B, a roughly 4.29 GB download, demonstrated on a video recommendation use case.
  • A single request can return over 100 ranked candidates with scores, and results can optionally be filtered to only items that exist in your own catalog.
  • Setup requires an exact vLLM version match (0.30.0), and the project ships an environment checker to confirm CUDA and version compatibility before you load a model.
  • In testing on an RTX A6000 (48GB VRAM), the OneRec model loaded using under 4GB of GPU memory, leaving plenty of headroom even on modest hardware.
  • The project is explicitly experimental: ranking an arbitrary list of supplied items is still a planned feature, not yet available.
The enterprise platform for building software with AI.
Vendor Risk Portal✓ SOC 2✓ HIPAA✓ Audit log
VendorsApprovalsContractsReportsSettings
Active vendors1,284
In review37
High risk6
VendorTierRiskApprovalNEW
Northwind SupplyTier 1LowApproved
Acme LogisticsTier 2MediumApprove
Helios DataTier 1HighPending
Granite FreightTier 3LowApproved
Pinecrest LabsTier 2LowApprove
You → RemyAdd an approval step for new vendors

How is this different from regular vLLM?

Regular vLLM is built around a simple pattern: you send a prompt, the model generates a sequence of tokens, you get one answer back. That works well for chatbots and coding assistants where a single coherent response is the goal.

Recommendation systems have a different shape of problem. A video platform, shopping site, or music app doesn’t want one suggestion, it wants a ranked list of dozens or hundreds of plausible next items, generated fast enough to serve in real time. vLLM-GR adapts vLLM’s serving infrastructure, including its memory-efficient handling of the GPU, to this multi-candidate use case. The core mechanism it adds is beam search tuned for recommendation: instead of following one path through the model’s output space, it keeps a set number of competing paths alive simultaneously (a “beam width”), and all of those paths share the same cached representation of the user’s history rather than each one recomputing it from scratch.

How do semantic IDs and beam search actually work?

In a generative recommendation model like OneRec, each item in the catalog isn’t represented by a title or SKU, it’s represented by a semantic ID built from multiple parts (for example, a three-part code labeled A, B, and C). The model generates these IDs piece by piece, the same way a language model generates a sentence word by word.

Here’s where beam search comes in. With a beam width of 128, the model doesn’t just pick the single best option at each generation step, it keeps the 128 best partial paths alive at every stage, building out part A, then B, then C for each of them. By the end, you have up to 128 complete semantic IDs, each with a score, where a score closer to zero indicates a higher-ranked candidate. All of this happens from a single request: the CPU prepares the next generation step while the GPU is still finishing the current one, and every beam shares the bulk of the cached computation, only tracking its own small slice of additional state. That shared-cache design is what lets the system generate many ranked candidates quickly instead of running the model 128 separate times.

The output isn’t a list of movie titles or product names. It’s a list of semantic ID codes, and it’s the application’s job to map those codes back to actual catalog entries.

What can vLLM-GR actually do right now?

As of this writing, the project lists one supported model: OneRec 1.7B, demonstrated on a video recommendation and ranking use case. In practice, that means you can run two kinds of tests:

A cold-start prompt with no history, where you simply ask the model to recommend a next video with no prior context. This returns a ranked list of candidates (not personalized, since there’s no user signal), but it demonstrates that one request can produce a full ranked beam of items.

AI-built software for mission-critical enterprise applications.
911 Dispatch ConsoleHarbor County Emergency Services
LIVE
✓ Audit log✓ Role-based access✓ Self-hosted

A personalized prompt with a watch history, where you feed the model a sequence of semantic IDs representing videos a user has already watched, then ask for the next recommendation. In this scenario, results can be filtered so they only include items from your own catalog rather than the model’s entire output vocabulary, which is the setting that’s actually useful for a production recommendation pipeline.

What’s not yet available: ranking an arbitrary list of items you supply (rather than generating from the model’s learned vocabulary). The project describes this as planned but not shipped.

How do you install and run it?

The workflow mirrors a typical vLLM setup, with one extra verification step specific to GR:

  1. Clone the repository from the vLLM-GR project on GitHub.
  2. Create an isolated environment (a uv virtual environment works well) and install the dependencies.
  3. Run the included environment check. This confirms your vLLM version and platform are compatible before you try loading any model. vLLM-GR has a tight version dependency, it currently requires vLLM 0.30.0 specifically, and the checker also confirms CUDA is detected as your platform. This step only validates versions and platform, it doesn’t guarantee the model itself will run cleanly, but it catches a large class of setup errors early.
  4. Download the model. Using the Hugging Face CLI, OneRec 1.7B is a small download, about 4.29 GB, so it doesn’t take long even on modest bandwidth.
  5. Run the provided example script. The default example sends a simple prompt (“recommend the next video”) with a beam width of 128, returning the top five candidates by score. By default the engine uses up to half of available GPU memory, though actual usage for a model this size is much lower.

On a single Nvidia RTX A6000 with 48GB of VRAM, the loaded OneRec model consumed under 4GB of GPU memory, suggesting this particular model is well within reach of far smaller cards.

Is vLLM-GR worth using today?

For teams experimenting with recommendation infrastructure, it’s worth watching closely rather than deploying into production immediately. The appeal is real: it brings vLLM’s efficient serving patterns (shared caching, GPU-efficient batching) to a problem space, generative recommendation, that previously didn’t have a mature open-source serving layer built around it. Getting 100+ scored, ranked candidates from a single request, with optional catalog filtering, is a meaningful building block for recommendation systems in video, shopping, music, or news apps.

The caveats are equally real. Only one model is currently supported, the setup documentation and logs describe the project as experimental, and a core feature (ranking a custom supplied list rather than generating from the model’s vocabulary) isn’t built yet. The strict version pinning to a specific vLLM release also means it needs active maintenance to track vLLM’s own fast release cadence. Treat it as an early look at where generative recommendation serving is headed, not a drop-in production system yet.

Frequently Asked Questions

What does “GR” stand for in vLLM-GR?

GR stands for generative recommendation. It refers to models that generate semantic IDs representing recommended items, rather than generating natural language text.

What model does vLLM-GR currently support?

The project currently lists OneRec 1.7B as its supported model, demonstrated through a video recommendation and ranking example. It’s a small model, roughly 4.29 GB to download.

What are semantic IDs?

› Build a loan-approval app for 2,000 bankers.
already included:✓ SOC 2✓ role-based access✓ audit log✓ self-hosted
The enterprise platform for building software with AI.

Semantic IDs are structured codes (made up of multiple parts) that the model generates to represent catalog items, like videos or products. They aren’t human-readable titles, your application has to map them back to real items in your catalog.

Do I need a powerful GPU to run OneRec 1.7B with vLLM-GR?

Based on testing on an RTX A6000 with 48GB of VRAM, the loaded model used under 4GB of GPU memory, suggesting it can run comfortably on much smaller cards.

Can vLLM-GR rank a custom list of items I provide?

Not yet. That capability is listed as planned but not currently implemented. Today it generates and ranks candidates from the model’s own learned output space, optionally filtered to items present in your catalog.

Editorial standards

Presented by MindStudio

No spam. Unsubscribe anytime.