Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
3ad27d5
docs(patterns): add vLLM Ray Inference Server sandbox pattern
BwL1289 Nov 8, 2026
4faa817
docs(patterns): rename to vllm-ray-inference-server, list Eugo as a p…
BwL1289 Nov 11, 2026
60102f4
docs(patterns): follow the pattern's namespace rename and list decode…
BwL1289 Nov 12, 2026
55fd71d
docs(patterns): frame the vLLM Ray Inference Server beside Red Hat AI…
BwL1289 Nov 12, 2026
d98e693
docs(patterns): say one time instead of once in the vLLM Ray Inferenc…
BwL1289 Nov 12, 2026
ad90260
docs(patterns): add Eugo's partner results to the vLLM Ray Inference …
BwL1289 Nov 14, 2026
1878e28
docs(patterns): say which attention kernels the vLLM Ray Inference Se…
BwL1289 Nov 15, 2026
001e672
docs(patterns): say upstream with Triton attention was not part of th…
BwL1289 Nov 15, 2026
db32a57
docs(patterns): say the Eugo build in the start-up runs picked Triton…
BwL1289 Nov 15, 2026
5a7f9c9
docs(patterns): describe image comparison and scale out on the vLLM R…
BwL1289 Nov 15, 2026
8963719
docs(patterns): give the vLLM Ray Inference Server start-up result fo…
BwL1289 Nov 15, 2026
53fb462
docs(patterns): count failed starts on the same build as the start-up…
BwL1289 Nov 15, 2026
b0f0fa1
docs(vllm-ray-inference-server): give the Eugo partner results as one…
BwL1289 Nov 18, 2026
2ce23d4
docs(vllm-ray-inference-server): update the Eugo partner results, the…
BwL1289 Nov 23, 2026
9403969
docs(patterns): answer the review of the vLLM Ray Inference Server pages
BwL1289 Nov 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
174 changes: 174 additions & 0 deletions content/patterns/vllm-ray-inference-server/_index.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
---
title: vLLM Ray Inference Server
date: 2026-11-08
tier: sandbox
summary: This pattern deploys a large language model (LLM) server on OpenShift and a notebook that benchmarks it on your own GPU, the same way every time, so that you can size GPUs and judge an upgrade from your own measurements. An optional comparison tells real speed changes from run-to-run noise.
rh_products:
- Red Hat OpenShift Container Platform
- Red Hat OpenShift GitOps
partners:
- Eugo
industries:
- General
focus_areas:
- AI
aliases: /vllm-ray-inference-server/
links:
github: https://github.com/eugo-inc/vllm-ray-inference-server
install: getting-started
arch: /images/vllm-ray-inference-server/architecture.svg
bugs: https://github.com/eugo-inc/vllm-ray-inference-server/issues
feedback: https://docs.google.com/forms/d/e/1FAIpQLScI76b6tD1WyPu2-d_9CCVDr3Fu5jYERthqLKJDUGwqBg7Vcg/viewform
---
:toc:
:imagesdir: /images
:_content-type: ASSEMBLY
include::modules/comm-attributes.adoc[]
:vllm-ray-pattern: vLLM Ray Inference Server pattern

[id="about-vllm-ray-inference-server-pattern"]
= About the {vllm-ray-pattern}

The {vllm-ray-pattern} answers one question: is your LLM server fast enough, and does a change make it faster or slower, measured on your own GPU in a way that you can trust? It helps you decide how many GPUs to buy, and whether a new release or setting is faster, from your own measurements instead of someone else's benchmark. The pattern deploys a private large language model (LLM) server on {rh-ocp}, and a notebook that measures it. The notebook reports two measures for one GPU, at 1, 8, and 32 concurrent requests, which are requests that the server serves at the same time:

* Throughput: the tokens per second that the server produces. A token is a word or a piece of a word.
* Time to first token: how long a user waits for the start of an answer.

Compared with the load that you expect, these give a starting estimate of how many GPUs you need. For this estimate, serve the model that you plan to use, as link:/patterns/vllm-ray-inference-server/ideas-for-customization/#changing-the-model-vllm-ray[Serving a different model] describes, because the default model is a small one.

On {AWS}, you can measure on a cloud GPU instance before you buy GPUs; by default, the pattern creates one with an NVIDIA L4 GPU. The server is OpenAI-compatible: it uses the request format of the OpenAI API, so clients written for that API work with it. Eugo maintains the pattern as community content in the {sandbox-tier-first}.

[WARNING]
====
On {AWS}, the default installation creates a billable GPU instance (one `g6.2xlarge` instance with one NVIDIA L4 GPU). AWS only bills for this instance while it is running. However, be aware that uninstalling the pattern does not delete the instance. To delete the instance, see link:/patterns/vllm-ray-inference-server/getting-started/#uninstalling-the-vllm-ray-pattern[Uninstalling the pattern].

The pattern does not create instances on other platforms.
====

[id="background-vllm-ray"]
== Background

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This "Background" section has a lot of information about how the pattern is put together, but not a lot about why it exists or why you made certain decisions when you made it. Most of this information would fit better in a detailed architectural walkthrough or a "how it works" section instead.

I'd suggest dialling down the details. Focus instead on answering questions like:

  • What problem does this pattern demonstrate a solution for?
  • When do people usually suffer from that problem? How does it affect them and their customers? How does your pattern avoid those issues?
  • Why do your customers need that solution? What are their alternatives to following a pattern like yours?
  • What benefits do the specific decisions that you've made in your pattern provide over the alternatives?

@BwL1289 BwL1289 Nov 30, 2026 •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack! We made the background less build detail and hopefully addresses the crux of your points. TLDR, we answer the questions:

"Is this server fast enough, and does a change make it faster or slower? How can we use Ray Serve with vLLM?

It's applicable for teams that size GPUs, upgrade, tune settings, or investigate incidents.

The how-it-is-built detail, such as how the comparison runs its rounds, is on the new Architecture and Ideas for customization pages.


The {vllm-ray-pattern} is for teams that serve a large language model on their own {ocp} cluster, and for teams that plan to and are choosing GPUs, not only for teams that already run vLLM. vLLM is an open source engine that runs large language models on GPUs efficiently. Ray Serve LLM is the serving layer from the open source Ray project for large language models, which runs vLLM, scales the number of vLLM replicas, and serves an OpenAI-compatible API. The pattern installs with one command, through {rh-gitops}.

[id="problem-vllm-ray"]
=== The problem

Every team that serves an LLM has to answer the same question, again and again: is this server fast enough, and does a change make it faster or slower? Most teams cannot answer it with numbers that they can trust, because their numbers come from someone else's hardware, or change from one run to the next:

* *Before buying GPUs:* the only numbers available are published benchmarks, measured on other hardware with other models. Teams that size from them can buy too few GPUs, so their users get slow answers, or too many, so GPUs sit idle and still cost money.
* *Before an upgrade or a settings change:* teams time one run before the change and one run after. Two starts of the same server can differ in speed, so this comparison cannot tell a real improvement from noise. A slower release can reach users, or a real gain can be held back.
* *After an incident:* a server image that installs the newest packages changes with every build. When the server gets slower, nobody can say whether the cause was their own change or a package that changed with the build.

[id="how-pattern-avoids-vllm-ray"]
=== How the pattern avoids it

The pattern gives one fix for each cause:

. *Numbers from your own hardware:* the notebook benchmarks the server on your own GPU, with the same requests every time. It reports throughput and time to first token at 1, 8, and 32 concurrent requests, which gives a starting estimate of how many GPUs you need.
. *A reproducible build:* the server image installs every Python package link:/patterns/vllm-ray-inference-server/architecture/#pinned-versions-vllm-ray[pinned by hash], so a rebuild installs the same Python packages. They change only with a commit, which can be reviewed after an incident.
. *A comparison that accounts for noise:* an link:/patterns/vllm-ray-inference-server/ideas-for-customization/#comparing-images-vllm-ray[optional comparison] runs two server images or settings, such as your current one and a candidate, in repeated rounds next to identical copies. It reports a difference only when the difference is larger than the noise between starts and passes a statistical test.

[id="alternatives-vllm-ray"]
=== Why teams need it, and where it fits

Teams need repeatable numbers from their own server on their own GPU, separated from the noise between starts. The alternatives each miss part of this:

* Published benchmarks come from other hardware.
* Timing a server by hand, for example with one run of GuideLLM, a benchmark tool for LLM servers, measures one server start, so it cannot tell a real change from noise. The optional comparison runs GuideLLM across repeated starts and tests the results.

The pattern is a reference point for what open source vLLM and Ray do on your own GPU, measured the same way each time. It complements link:https://www.redhat.com/en/products/ai/inference[Red{nbsp}Hat AI Inference] and {rhoai}, which remain the supported servers.

[id="design-decisions-vllm-ray"]
=== Benefits of the design decisions

* *Ray Serve LLM.* Unlike `vllm serve`, vLLM's own server, it can add vLLM replicas, copies of the engine, under load when given enough GPUs. Adding replicas is off by default.
* *Upstream packages only.* Instead of a vendor's build, the image uses the vLLM, Ray, and PyTorch projects' releases, so results apply to what anyone can install.
* *One Git repository.* Instead of a hand-built server, your fork describes the whole deployment, so every change can be reviewed.
* *One pod.* Instead of KServe, a model-serving platform for Kubernetes, or KubeRay, an Operator that runs Ray clusters on Kubernetes, the server is one standard pod, with nothing more to install. It does not serve one model across several machines; {rhoai} offers KubeRay for that.

[id="architecture-vllm-ray"]
== Architecture

.Architecture of the {vllm-ray-pattern}
image::/images/vllm-ray-inference-server/architecture.svg[Diagram of the vLLM Ray Inference Server pattern. The Validated Patterns Operator and OpenShift GitOps deploy secrets management, GPU enablement, the inference server, and the notebook from your Git fork.]

* The {validated-patterns-op} installs {rh-gitops} and points its Argo CD instance, the GitOps tool that applies the content of a Git repository to the cluster, at your fork.
* {hashicorp-vault} and the {eso-op} deliver an optional Hugging Face token to the server as a Kubernetes secret. Only a gated model, which Hugging Face lets you download only after you accept its conditions, needs the token. The default model is not gated.
* The {rh-nfd} and the NVIDIA GPU Operator prepare the GPU node, which a job of the pattern creates on AWS.
* A `BuildConfig` object builds the server image inside the cluster. The server deployment runs one pod with Ray Serve LLM and the vLLM engine on one GPU.
* A persistent volume claim keeps the model weights across pod restarts.
* A JupyterLab notebook runs behind the OpenShift OAuth proxy and sends requests to the server through the in-cluster service.

For details, see link:/patterns/vllm-ray-inference-server/architecture/[Architecture].

[id="requirements-vllm-ray"]
== Requirements

Check the following before you install. For details, see link:/patterns/vllm-ray-inference-server/cluster-sizing/[Cluster sizing].

* {ocp} 4.18 or later, with cluster administrator access.
* One NVIDIA GPU node:
** On {AWS}, the pattern creates the GPU node. Your AWS account needs enough GPU instance quota.
** On other platforms, and on AWS clusters that were installed into existing subnets, add the GPU node yourself before you install.
** The server runs on `amd64` nodes by default. For an `arm64` GPU node, see link:/patterns/vllm-ray-inference-server/cluster-sizing/#gpu-node-requirements-vllm-ray[GPU node requirements].
* 50 GiB of free ephemeral storage for the server image build, on a node without the `nvidia.com/gpu` taint. Ephemeral storage is the local disk space of a node for temporary files and container images. A taint keeps pods that do not tolerate it, such as the build, off the node.
* A storage class that provisions persistent volumes dynamically.
* The {ocp-registry} in the `Managed` state, and the `Build` and `ImageRegistry` cluster capabilities enabled, because the cluster builds the server and notebook images itself and stores them in this registry.
* Network access from the cluster to GitHub, PyPI, container registries, and Hugging Face, the source of the model.
* Optional: a Hugging Face token, only to serve a gated model.
* Your own fork of the pattern repository on GitHub, and Podman 4.3 or later, Git, and the `oc` CLI on your workstation.

If the cluster already runs the {rh-nfd} or the NVIDIA GPU Operator, the pattern can conflict with them. link:/patterns/vllm-ray-inference-server/getting-started/#deploying-the-vllm-ray-pattern[Getting started] checks for them before you install.

[id="components-vllm-ray"]
== Technologies that the pattern uses

Of the technologies in the following lists, only {rh-ocp} must already run. The pattern installs the others, or builds them into its images. With the `global.gpuOperators: reuse` setting, which you choose in link:/patterns/vllm-ray-inference-server/getting-started/#deploying-the-vllm-ray-pattern[Getting started], it uses the cluster's own {rh-nfd} and NVIDIA GPU Operator instead.

[id="red-hat-technologies-vllm-ray"]
=== Red Hat technologies

* {rh-ocp}, which must already run
* {rh-gitops}
* The {eso-op} for Red{nbsp}Hat OpenShift
* The {rh-nfd}
* Optional: the Red{nbsp}Hat Custom Metrics Autoscaler, only with `global.scaleOut.mode: keda`. See link:/patterns/vllm-ray-inference-server/ideas-for-customization/#scale-out-vllm-ray[Scaling out the server under load].

[id="other-technologies-vllm-ray"]
=== Other technologies this pattern uses

* The {validated-patterns-op}, a community Operator
* The NVIDIA GPU Operator, from the certified Operators catalog
* {hashicorp-vault}, from the {solution-name-upstream} Helm chart
* vLLM, Ray Serve LLM, and PyTorch, which the server image build installs from PyPI
* The NVIDIA CUDA image based on Red{nbsp}Hat Universal Base Image 9, as the base of the server image
* JupyterLab, in the notebook image
* GuideLLM, a benchmark for LLM servers, which sends the requests of the link:/patterns/vllm-ray-inference-server/ideas-for-customization/#comparing-images-vllm-ray[optional image comparison]

[id="applications-vllm-ray"]
=== Applications that the pattern deploys

* The inference server. Ray Serve LLM runs the vLLM engine and serves an OpenAI-compatible API on port 8000. The default model is `Qwen/Qwen2.5-0.5B-Instruct`.
* The notebook. A JupyterLab notebook measures the running server, as described in link:/patterns/vllm-ray-inference-server/architecture/#notebook-measurements-vllm-ray[How the notebook measures the server].

The link:https://github.com/eugo-inc/vllm-ray-inference-server#what-is-in-the-stock-stack[pattern README] lists the exact version of each component.

[id="partner-results-summary-vllm-ray"]
== Partner results: Eugo

Eugo timed how long each server took to start and stream its first token, in Docker containers on one NVIDIA DGX Spark, not on {ocp}. As shipped, the median start of the upstream `vllm/vllm-openai` v0.33.0 image took 3.6 times as long as that of Eugo's next release build in one comparison, and 4.5 times as long in another. For the settings and the other runs, see link:/patterns/vllm-ray-inference-server/partner-results/#partner-results-vllm-ray[Partner results: Eugo].

[id="support-vllm-ray"]
== Support

Eugo maintains the pattern and supports it on a best-effort basis through link:https://github.com/eugo-inc/vllm-ray-inference-server/issues[GitHub issues] in the pattern repository. The maintainers do not guarantee a response time. Red{nbsp}Hat does not produce, support, or validate this pattern. For an issue with a product that the pattern deploys, contact the vendor of that product.

[id="next-steps-vllm-ray"]
== Next steps

* link:/patterns/vllm-ray-inference-server/getting-started/[Getting started]
* link:/patterns/vllm-ray-inference-server/architecture/[Architecture]
* link:/patterns/vllm-ray-inference-server/cluster-sizing/[Cluster sizing]
* link:/patterns/vllm-ray-inference-server/ideas-for-customization/[Ideas for customization]
* link:/patterns/vllm-ray-inference-server/troubleshooting/[Troubleshooting]
* link:/patterns/vllm-ray-inference-server/partner-results/[Partner results: Eugo]
66 changes: 66 additions & 0 deletions content/patterns/vllm-ray-inference-server/architecture.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
title: Architecture
weight: 20
aliases: /vllm-ray-inference-server/architecture/
---

:toc:
:imagesdir: /images
:_content-type: ASSEMBLY
include::modules/comm-attributes.adoc[]
:vllm-ray-pattern: vLLM Ray Inference Server pattern

[id="architecture-details-vllm-ray"]
== How the {vllm-ray-pattern} works

This page describes how the pattern deploys from your fork, how the inference server runs, what the pattern pins, and how the notebook measures the server. For the architecture diagram and a summary of each component, see link:/patterns/vllm-ray-inference-server/#architecture-vllm-ray[Architecture] on the pattern overview page.

[id="terms-vllm-ray"]
=== Terms used on this page

Token:: A word or a piece of a word. Models read and write text as tokens, so server speed is counted in tokens.
Time to first token:: How long a user waits for the first token of an answer.
Throughput:: Tokens per second that the server produces across all requests that it serves at the same time.
Pinned by hash:: A package is installed only if its file matches a recorded checksum, so every build gets the same file.
Gated model:: A Hugging Face model that you can download only with your access token, after you accept its conditions.

[id="deploying-from-your-fork-vllm-ray"]
=== How the pattern deploys from your fork

Your fork of the pattern repository describes the whole deployment: GPU enablement, the server, a model cache, a secret for gated models, and a timing notebook. You run the `./pattern.sh make install` command one time. The {validated-patterns-op} installs {rh-gitops} and points its Argo CD instance, the GitOps tool that applies the content of a Git repository to the cluster, at your fork. The `clustergroup` Helm chart of the {solution-name-upstream} framework then creates the namespaces, Operator subscriptions, and Argo CD applications that the `variants/prod/values-prod.yaml` file in your fork lists. After that, {rh-gitops} syncs each commit on your branch. It does not delete the objects that a commit removes, and it does not change the image of the running server or notebook. A job in the cluster starts new image builds: every 10 minutes, it starts a build when the server or notebook folder changed and no build of that image is running. For details, see link:https://github.com/eugo-inc/vllm-ray-inference-server/blob/main/AGENTS.md#updating-a-running-install[Updating a running install] in the pattern repository.

[id="first-installation-vllm-ray"]
=== What happens during the first installation

The first installation runs in roughly the following order:

. The Operators install, and {hashicorp-vault-short} starts.
. On AWS, a job of the pattern, which runs every 10 minutes, creates the GPU node. The NVIDIA GPU Operator then installs the NVIDIA driver on the node.
. The cluster builds the server image. This build pulls a multi-gigabyte CUDA development image and installs several gigabytes of Python packages, so the build node needs plenty of free ephemeral storage.
. The server pod stays in the `Pending` state until a node advertises the `nvidia.com/gpu` resource.
. On its first start, the server downloads the model into the `ray-serve-llm-models` persistent volume claim, where the model stays across restarts. vLLM and FlashInfer, a library of GPU kernels for inference that vLLM uses, also compile GPU kernels, the functions that run on the GPU. The pattern does not keep these compiled kernels by default, so every new server pod compiles them again.
. The pod reports `Ready` only after the model loads.

[id="inference-server-vllm-ray"]
=== How the inference server runs

The server runs Ray Serve LLM and the vLLM engine in one pod of a standard deployment, without KServe or KubeRay. Ray, vLLM, and PyTorch come from PyPI and run on the NVIDIA CUDA image that is based on Red{nbsp}Hat Universal Base Image 9. The pattern creates no KServe `InferenceService` or `ServingRuntime` resource. The server image turns off the usage statistics of Ray and vLLM.

The server deployment uses the `Recreate` strategy, because a rolling update needs a second GPU and the same `ReadWriteOnce` persistent volume claim, and with one GPU it cannot finish. As a result, the server is down during each rollout.

[id="pinned-versions-vllm-ray"]
=== What the pattern pins

The pattern pins every Python package by hash and installs wheels only. It pins the base images of the server and the notebook by digest, and the default model by its Hugging Face commit. Some parts are not pinned, among them the system packages that the server image installs with `dnf`, the Operator versions, and the patch versions of the Validated Patterns Helm charts. Two builds from the same commit therefore install the same Python packages, but their system packages can differ.

[id="notebook-measurements-vllm-ray"]
=== How the notebook measures the server

The notebook measures the server in your cluster: the time from pod start to `Ready`, the time to first token, the decode speed of one stream, which is how fast the server writes one answer, and the token throughput at 1, 8, and 32 concurrent requests. The notebook chooses its prompts from a fixed seed, and every request uses a fixed number of output tokens and a temperature of 0, so the model always picks its most likely next token. The time to `Ready` is in whole seconds and can trail the server by up to about 2 seconds.

[id="next-steps-vllm-ray-architecture"]
== Next steps

* link:/patterns/vllm-ray-inference-server/getting-started/[Getting started]
* link:/patterns/vllm-ray-inference-server/cluster-sizing/[Cluster sizing]
* link:/patterns/vllm-ray-inference-server/ideas-for-customization/[Ideas for customization]
Loading