---
title: How to Run vLLM-GR Locally for Recommendation Models
url: "https://goremy.ai/blog/articles/vllm-gr-recommendation-model-locally"
author: Luis Chavez-Mattos
editor: Luis Chavez-Mattos
editor_title: Director, Product
published: "2026-11-30T16:40:23.668Z"
updated: "2026-11-30T16:40:23.668Z"
topic: Local AI
description: Install vLLM-GR on vLLM 0.30.0, download the 4.29 GB OneRec 1.7B model, and get 128 ranked recommendation candidates from one request on a single GPU.
---

# How to Run vLLM-GR Locally for Recommendation Models

> Install vLLM-GR on vLLM 0.30.0, download the 4.29 GB OneRec 1.7B model, and get 128 ranked recommendation candidates from one request on a single GPU.

Edited by Luis Chavez-Mattos, Director, Product · Published 2026-11-30

## How do you run vLLM-GR locally?

You clone the vLLM-GR repository, install it in a clean Python environment, and confirm it is paired with vLLM 0.30.0, the exact version it requires. Then you download the OneRec 1.7B model (4.29 GB) with the Hugging Face command line tool and run the offline example script. With a beam width of 128, one request returns 128 ranked candidates, each a "semantic ID" with a score. A walkthrough on a single 48 GB NVIDIA RTX A6000 did all of this.

## TL;DR

- **vLLM-GR is a recommendation version of vLLM.** Instead of writing text, it generates IDs for items a user might want next.
- **It needs vLLM 0.30.0 exactly.** The project includes an environment check that confirms the version and that CUDA was detected, and you should run it before loading a model.
- **The listed model is OneRec 1.7B.** It is a 4.29 GB download and used under 4 GB of GPU memory in the demo.
- **One request returns many answers.** A beam width of 128 gives 128 ranked candidates, and the example prints the top five.
- **The output is codes, not titles.** Your application has to map each semantic ID back to a real item in your catalog.
- **Catalog filtering works.** With a three-video watch history and a small catalog, the top results all came from that catalog.
- **It is early.** One model is listed, the runner path is labeled experimental in the logs, and ranking a list of items you supply is still planned.

## What is vLLM-GR?

vLLM is a widely used open-source engine for running and serving large language models. It is known for being fast and for using GPU memory efficiently. You send it a prompt, and it generates an answer one token at a time.

vLLM-GR lives under the vLLM project on GitHub. The "GR" stands for generative recommendation. It extends vLLM so it can run recommendation models. The model looks at what a user watched or clicked, then generates IDs for items they might like next. Those are called semantic IDs, and your application maps them back to real products, videos, songs or articles.

## Why does a recommendation model need something different from a chatbot?

A chatbot usually needs one good answer. A recommendation system needs many candidates, often more than a hundred, and it needs them quickly.

vLLM-GR handles this with beam search. Instead of following one path, the model explores many possible paths at once. All of those paths share the cached user history, so the engine does not copy it for every path. Each path keeps only its own small extra piece of memory. You send one request and get back a ranked list with scores.

You can also restrict results to items that exist in your catalog. Without that restriction, the engine picks from the model's full vocabulary.

## What do you need before you start?

The demo used this setup:

- Ubuntu
- One NVIDIA RTX A6000 GPU with 48 GB of VRAM
- A Python environment created with uv
- The Hugging Face command line tool for the model download

You probably do not need a card that large. The model used under 4 GB in the demo, but the example script by default claims up to half of the GPU's memory, so a smaller card may need that setting adjusted. I would check the repo's README for the exact setting before relying on a smaller GPU.

## How do you install vLLM-GR?

1. **Clone the repository.** Get the vLLM-GR code from the vLLM project on GitHub.
2. **Create a clean environment.** The demo used uv. A fresh environment keeps this exact vLLM version from colliding with other projects.
3. **Run the install command from the README.** It takes a few minutes.
4. **Check the versions.** Confirm that both vLLM and vLLM-GR are installed and that vLLM is 0.30.0.
5. **Run the environment check the project provides.** In the demo it passed, and it reported CUDA as the platform.

The environment check only verifies the version and the platform. It does not prove your model will load or run. The real test is the first model run, so treat a passing check as "no obvious setup problems," not as a guarantee. I am not reproducing the exact commands here because they may change as the project evolves. Copy them from the repo.

## How do you download the OneRec 1.7B model?

Use the Hugging Face command line tool with the model name the repo lists. The download is 4.29 GB, small by language model standards, so it finishes quickly on a normal connection.

At the time of the walkthrough, OneRec 1.7B was the only supported model on the project page, and the example use case was video recommendation.

## What does the first test return?

The first test runs in offline mode, meaning you run a script on your own machine rather than calling a server. The prompt is simple: recommend the next video. The script uses a beam width of 128, so one request returns 128 candidates and prints the top five.

Here is what to look for in the output:

| Part of the output | What it means |
|---|---|
| Semantic ID | A code of three parts (A, B, C) between a start and an end token. It stands for an item. It is not a title. |
| Score | A number where closer to zero ranks higher. Rank zero is the model's top pick. |
| 128 candidates | One per surviving beam, from a single request. |

The model builds each ID in three steps: first part A, then B, then C. At each step it tries different options and keeps the best 128 paths rather than committing to one.

Notice what this first run did not include. There was no watch history and no catalog. So the results are not personalized. In the demo, the top three scores were also very close together. The point of this test is not the quality of the picks. It is that one request produced many ranked items.

## What changes when you add watch history and a catalog?

The second test gives the model a watch history of three videos, written as semantic IDs, and asks for the next one. It also supplies a small catalog to filter against.

The result: the top three candidates all came from the catalog, and a robot video ranked first because its score was closest to zero. One caveat matters here. The video titles were labels the creator made up, so the model never saw them. This test shows that ranking and catalog filtering work from end to end. It does not show that the recommendations are good.

That distinction is worth keeping in mind with any recommendation system. A pipeline that runs is the first milestone. Recommendations people actually want need a model trained on your data and a way to measure results.

## How does a request flow through the system?

The project's diagram describes it left to right:

1. You send a request through Python, HTTP or gRPC.
2. The engine core manages the search and prepares each next step while the model is still working on the current one.
3. All paths share the cached user history.
4. The best paths are chosen either from your catalog only or from the model's full vocabulary.
5. You get back a list of candidates with scores.

In the walkthrough's timeline, the search keeps two beams for part A, then three for part B, and finishes with two complete IDs with scores. The CPU prepares the next step while the GPU handles the current one, which saves repeated work.

## What does this mean for you?

**If you are a developer or data scientist,** vLLM-GR is a low-cost way to see how generative recommendation works. You can run a real model on one GPU in an afternoon. Pin vLLM to 0.30.0, run the environment check, and start with the offline script.

**If you work in marketing, e-commerce, media or product,** the practical takeaway is the shape of the system. The model does not know your products. It produces codes, and your team owns the mapping between codes and your catalog. Ask your engineers how items would get their semantic IDs, how the catalog filter would stay current, and how you would judge the results.

**If you are just watching the space,** keep expectations measured. The project lists one model, calls its runner path experimental, and still lists ranking a supplied set of items as planned. It is worth watching, not worth betting a product launch on today.

## What could you build around a model like this?

The model only returns codes and scores. A working recommendation feature also needs the app around it: a catalog table that maps each semantic ID to a real item, and a simple page where someone can review the ranked candidates. With [Remy](https://goremy.ai), you can describe that app in plain English, such as a catalog manager with an import page and a review screen, and get a deployed full-stack app with a database and sign-in. You could then point your model's output at it instead of keeping the mapping in a spreadsheet. Remy does not run vLLM-GR for you, so the model would still run on your own hardware.

## Frequently Asked Questions

### What version of vLLM does vLLM-GR need?

It needs vLLM 0.30.0 exactly. The project provides an environment check that confirms the version and detects your platform (CUDA in the demo). Run it before loading any model, but remember it does not test the model itself.

### How big is the OneRec 1.7B model and how much GPU memory does it use?

The download is 4.29 GB. In the demo it used under 4 GB of GPU memory. By default, the example script is allowed to use up to half of the GPU's memory.

### Why does the output look like codes instead of video titles?

The model generates semantic IDs, each made of three parts between a start and end token. They stand for items but are not titles. Your application maps each ID back to a real item in your catalog.

### Are the recommendations personalized?

Not in the first test, which gave the model no watch history and no catalog. In the second test, the model received a three-video history and a small catalog, which showed the full pipeline working. The titles there were made-up labels, so it was not a test of recommendation quality.

### Is vLLM-GR ready for production?

Not yet, based on what the project shows. One supported model is listed, the runner path is called experimental in the logs, and ranking a list of items you supply is still planned. It is a good tool for learning and prototyping.
