Repository navigation
Conversation
|
Hi @BwL1289. Thanks for your PR. I'm waiting for a validatedpatterns member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
CC @atherr |
|
🤖 Mon Nov 30 17:34:47 - The preview is ready at: |
|
hey @BwL1289, thanks for the PR! I don't think that google group (hybrid-cloud-patterns@googlegroups.com) is used anymore. We're actively revising the requirements for each tier so I'll make sure we update the process for requesting a technical review. For now, if you're happy with it, we can use this PR as the platform for the review of both the pattern repo and the docs. Regarding the naming: I'd just drop the I'm happy to move this repo into validatedpatterns-sandbox if you like and make you a maintainer of that repo. This is NOT required though and if you're happy with the pattern sitting in your repo that's fine. Regarding the pattern itself: I personally installed this pattern on AWS (OCP 4.22.22) and can confirm that installation worked without a hitch and argo had all resources synced and healthy. (You should be proud of this!!) Following the guidance from the README and these docs I was able to verify the inference server was healthy and functional. Overall, I think you did an awesome job. There are some things I'd like to understand better though:
|
| # The directory name, the aliases, and the GitHub links in this page set use the | ||
| # current repository name, rhvp-vllm-ray-inference-server. That name can change, | ||
| # pending two open questions to the Validated Patterns team: whether the "rhvp-" | ||
| # prefix is acceptable under the Red Hat trademark guidelines, and whether the | ||
| # repository moves to the validatedpatterns-sandbox organization. If either | ||
| # changes, rename the directory, the aliases, the image folder, and every link | ||
| # in both pages together. |
There was a problem hiding this comment.
Remove this (answered in main conversation on this PR)
| # in both pages together. | ||
| title: vLLM Ray Inference Server | ||
| date: 2026-11-08 | ||
| validated: false |
There was a problem hiding this comment.
I don't think the validated field actually exists so you can delete this
| # partners: left out on purpose. The pattern deploys software from NVIDIA (the | ||
| # GPU Operator and the CUDA base image) and from the Ray and vLLM projects, but | ||
| # no partner organization takes part in the pattern. A partners entry suggests a | ||
| # partnership, and the site prints a partner trademark notice for it. Add an | ||
| # entry only when a partner organization joins the pattern. |
There was a problem hiding this comment.
Remove the comment here. If you are happy with it, I think we can have Eugo as a partner here. If you add Eugo here, you'll automatically show up in the partners filter in the side bar of https://validatedpatterns.io/patterns/
| # partners: left out on purpose. The pattern deploys software from NVIDIA (the | |
| # GPU Operator and the CUDA base image) and from the Ray and vLLM projects, but | |
| # no partner organization takes part in the pattern. A partners entry suggests a | |
| # partnership, and the site prints a partner trademark notice for it. Add an | |
| # entry only when a partner organization joins the pattern. | |
| partners: | |
| - Eugo |
| include::modules/comm-attributes.adoc[] | ||
| :vllm-ray-pattern: vLLM Ray Inference Server pattern | ||
|
|
||
| // The pattern name can change. See the comment at the top of the front matter. |
Add an overview page and a getting-started page for the rhvp-vllm-ray-inference-server sandbox pattern, plus its architecture diagram.
…artner, apply review notes The pattern repository is now named vllm-ray-inference-server. Move both page folders and the image folder to that name, and update the aliases, the architecture image path, the GitHub links, the clone and cd commands, the secrets file name and the notebook name to match. List Eugo, the maintainer, under partners, so the overview page prints the partner trademark notice. Apply the review notes: drop the front matter comments about a possible rename and the left-out partners entry, and drop validated: false.
… speed The pattern's namespaces are now vllm-inference (the server) and vllm-notebook (the notebook). Update the oc commands, the in-cluster server URL, the notebook access text and the leftover-volume check on both pages, and the namespace labels in the architecture diagram, whose notebook build box now names the BuildConfig and ImageStream notebook. The overview page's notebook entry also lists the single-stream decode speed that the notebook measures.
… products - Background: say that the pattern does not replace or integrate with the Red Hat AI products, such as Red Hat OpenShift AI, which parts are pinned and which are not, the one-time install step and what OpenShift GitOps does not do after it, and what the notebook measures. Drop the claims that each rebuild installs the same software stack and that the pattern uses upstream open source components only. - Prerequisites: use a cluster that does not already run the Node Feature Discovery Operator or the NVIDIA GPU Operator. The pattern installs both itself and can conflict with existing installations. It has not been tested on a cluster that runs Red Hat OpenShift AI.
…e Server background
e0daf7f to
d98e693
Compare
…Server page Add a "Partner results: Eugo" section before Support: the start-up time and start-up reliability of Eugo's next vLLM image (release pending) against the upstream vLLM image, and a link to the matching section of the pattern README.
…rver start-up result compared Add one sentence to the start-up bullet of "Partner results: Eugo": Eugo's image picked Triton attention by itself, upstream with --attention-backend TRITON_ATTN was not measured, and the lead against it is likely smaller.
…e start-up runs The start-up bullet said upstream with --attention-backend TRITON_ATTN "was not measured". The README section it links to describes a separate upstream-only check of that setting, so the bullet now says it was not part of these runs, matching the README.
… attention The start-up bullet said Eugo's image picked Triton attention by itself. That is true of the build these runs used, but the section calls the measured image Eugo's next vLLM image (release pending), and the sentence could be read as that image's default. It now says the Eugo build in these runs picked Triton attention by itself, matching the README. No number changed.
…ay Inference Server page The overview page left both optional features to the pattern README. A new section says what each one does, that both are off by default, that a comparison scales the inference server to zero pods for its run, and that neither has run on OpenShift yet, and it links the README sections. It says nothing that the README on main does not say, and it adds no partner result.
…r three upstream attention settings The start-up bullet of "Partner results: Eugo" gave one result, 20.2 seconds (22%) sooner than upstream with FlashInfer attention, from an earlier build, and a sentence saying the lead against upstream with Triton attention was likely smaller. It now gives the result against each of three upstream attention settings, measured on Eugo's next vLLM test build, as the pattern README does: 10.9 seconds (18%) sooner than FlashInfer with TRT-LLM attention off, 12.0 seconds (20%) sooner than Triton and 16.4 seconds (25%) sooner than FlashInfer, in every paired round, with p = 0.004 or lower after Holm's correction. The sentence about Triton attention is gone, since that setting is now measured. The intro now says Eugo measured its next vLLM test build instead of its next vLLM image.
… result The "Starts that succeed first time" bullet (4 of 12 upstream starts and none of 28 Eugo starts) came from the earlier build. It now comes from the same runs as the start-up result, as in the pattern README: the vLLM start-up memory check stopped 15 of 45 upstream starts and none of 11 Eugo starts.
… table against upstream as shipped and tuned The partner section now names the measured build as Eugo's next release build and says what it runs, how the starts ran and which settings were not the defaults. One table gives the start-up results against upstream vLLM 0.33.0 as shipped (plain vllm serve with eager weight loading, plain vllm serve with vLLM's default weight loading, and this pattern's Ray Serve LLM server) and tuned with three attention settings. The section counts first tries in the tuned runs and in the run with only the 12% GPU memory setting, says why time per output token is a tie, and points to the pattern README for the settings of each run and what is not yet measured.
|
/retest |
|
Thanks @dminnear-rh (CC @atherr), and thank you for verifying it on AWS. Happy to use this PR for the review of both the pattern repo and the docs. What is unique, as far as we could find in the Validated Patterns catalog: it serves its own LLM on Ray Serve and ships a side-by-side benchmark comparison of two server images. Our goal was for this pattern to be as minimal as possible and focused on performance benchmarking (since we're an HPC company 🙃). Let me know if you feel it's still not differentiated enough. Happy to chat over a call. Changes since your review (pattern repo diff, docs pages)
1. Why not Red Hat OpenShift AI? We see the pattern as complementary to Red Hat's AI products: a small, measurable vLLM baseline on Ray Serve. As far as we could find, OpenShift AI serves models through KServe, and its documentation covers Ray for distributed workloads such as training, not Ray Serve. Its Technology Preview multi-node vLLM runtime has used Ray only to spread one model across nodes. The pattern needs no OpenShift AI subscription. It pins Ray 2.60.0 and vLLM 0.29.0, the version Ray 2.60.0 pins. We'd be glad to discuss an OpenShift AI variant on the call. We'd also like to add Red Hat AI Inference Server's vLLM image as a side in the pattern's image comparison, against upstream vLLM and Eugo's build. We haven't tried that image in it yet. 2. What makes it different from the RAG and MaaS patterns? We kept this one at the serving layer and focused on measuring it; the others are application and platform patterns on OpenShift AI. On building on RAG or MaaS with a private pattern for Eugo's changes: we're open to building on them and would like to pick the route on the call. 3. Why was the With Eugo side empty? The pattern installs stock packages only, so the notebook could never run Eugo's build. We removed the empty With Eugo side from the notebook. Eugo's results are in the README's Partner results: Eugo section and on the docs page. Eugo's builds are private today. The build in these results ships with our upcoming release this week. To show the difference, the pattern's image comparison times two server images on the same GPU in paired rounds, with verdicts such as FASTER, SLOWER or TIE, or NO VERDICT with a reason. Eugo's results so far. Eugo's next release build (a vLLM development snapshot taken after 0.33.0 branched off, plus Eugo's fixes) against upstream vLLM 0.33.0, with Qwen2.5-0.5B-Instruct in docker on one NVIDIA DGX Spark shared with other jobs, each start a new container with empty compile caches and the model already in memory. Every run gave vLLM 12% of GPU memory (vLLM's default is 92%, this pattern's 85%), because the NVIDIA DGX Spark's GPU shares its memory with the CPU and with those other jobs. "Eager" means both sides used
A start runs from a new container to the first streamed token (to the first answer through the server); "sooner by" is the median of the paired rounds' differences. Eugo was sooner in every round: 12 of 12 in each plain In the server row, upstream's side was the v0.33.0 image with Ray 2.60.0 and this pattern's server files added, and one import line in Ray changed for vLLM 0.33. The numbers above replace the earlier ones on this PR's docs page: we repeated the runs behind every row except the one with only the 12% setting, with a newer image of Eugo's next release build and upstream unchanged. The server row moved the most, because its earlier run used an older Eugo image. Fewer upstream first tries failed in the tuned runs. The rerun ran while other jobs loaded the machine far less, and vLLM's start-up memory check stops a start when another process frees memory during it. It stopped 2 of 36 upstream first tries and none of 12 Eugo first tries, too few to show a difference by Fisher's exact test. Speed once serving. Against upstream as shipped, time per output token was a tie, at one stream through this pattern's server, in a short check. Most of that time is set by the hardware: at one stream, each output token needs all of the model's weights (about 0.99 GB) read from memory, which at the machine's published memory bandwidth of 273 GB/s takes at least 3.6 ms of the measured 5.8 ms per token for both servers. The rest depends on the software and on how much of that bandwidth the GPU reaches; in this check both servers used FlashAttention-2 for attention so this is expected to be a tie. These results are from one NVIDIA DGX Spark only. Eugo's build has not run on OpenShift or on the pattern's x86 NVIDIA L4 node yet, because right now we build for Arm, and we're planning x86 builds as well. What we haven't done yet: on OpenShift, the image comparison has had one full-length run and both autoscalers only short test runs, all with stock images. That run had one GPU and one model, and it did not test keda mode during a run. The README lists what has not been checked, for the comparison and scale out. Is anything else needed on the docs or pattern side before this PR can merge in the sandbox tier? I've suggested a call on Monday, November 30 by email. Thanks again for the thorough review. |
… OpenShift test runs and the GPU operators' reuse setting
dminnear-rh
left a comment
There was a problem hiding this comment.
@laubai Everything looks good from our side, feel free to merge if you're happy as well!
|
Cheers Drew, reviewing now |
laubai
left a comment
There was a problem hiding this comment.
You've done a great job following style guidance for the most part, so my feedback on this PR is largely substantive and structural - aka, "what is this section supposed to be doing for a reader, and does this content do that?"
Generally, I think you may be assuming that your readers are as familiar with your domain as you are, and that isn't necessarily the case. If you talk only to the people who already know they need what you're offering, you're going to miss the people who do need what you're offering, but aren't aware of that yet. More focus on the "why" of your pattern will help to bridge that gap.
I've also made a few suggestions about structure / organizing information that should help folks avoid mistakes. See what you reckon and let us know. :)
| ==== | ||
|
|
||
| [id="background-vllm-ray"] | ||
| == Background |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
| * A JupyterLab notebook runs behind the OpenShift OAuth proxy. Only users who can edit the `vllm-notebook` namespace can open it. The notebook sends requests to the server through the in-cluster service. | ||
|
|
||
| [id="components-vllm-ray"] | ||
| == Components that the pattern deploys |
There was a problem hiding this comment.
Most patterns also list the technologies that they make use of / require in order to run, alongside the technologies that the pattern itself deploys. I'd recommend giving folks a heads-up here about what the pattern expects to exist before it can be run.
There was a problem hiding this comment.
Ack! Overview now has a Requirements section like OpenShift 4.18 or later, a GPU node, the image registry, and network access with the details on a new Cluster sizing page. It also says that on other platforms and on AWS clusters installed into existing subnets you add the GPU node yourself before you install. The Getting started prerequisites repeat the cluster and workstation items as reminders.
|
|
||
| [WARNING] | ||
| ==== | ||
| On {AWS}, the default installation creates one billable GPU instance: a `g6.2xlarge` instance with one NVIDIA L4 GPU. AWS bills the instance for as long as it runs. To skip the instance, set `global.gpuMachineSet: none` in the `values-global.yaml` file in your fork, and push the change before you install the pattern. On other platforms, the pattern creates no instance. Uninstalling the pattern does not delete the instance. For the steps to delete it, see link:getting-started/#uninstalling-the-vllm-ray-pattern[Uninstalling the pattern]. |
There was a problem hiding this comment.
Some order-of-information issues here.
"On other platforms, the pattern creates no instance" to a second paragraph, or at least to the end of this paragraph. You don't want to split up the idea that "uninstalling the pattern (from AWS) does not delete the instance" from the initial problem of "you can't run this on AWS without incurring costs".
I'd suggest something like:
[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:getting-started/#uninstalling-the-vllm-ray-pattern[Uninstalling the pattern].
The pattern does not create instances on other platforms.
====
There was a problem hiding this comment.
Ack! We used your suggested text as written. Only changed the link to the absolute path that the other links on these pages use. How to skip the instance is in Getting Started on cluster sizing.
| 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="compare-scale-out-vllm-ray"] | ||
| == Image comparison and scale out |
There was a problem hiding this comment.
Could these optional features be part of an "Ideas for customization" page for this pattern?
There was a problem hiding this comment.
Ack! We create a new Ideas for customization page that covers serving a different model, comparing two server images or two sets of engine settings, tuning the engine settings and scaling out the server. Each idea gives motitivtation for why you would use it, what you need where it applies, the steps and how it was tested.
|
|
||
| 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. | ||
|
|
||
| By default, the pattern installs the {rh-nfd} and the NVIDIA GPU Operator itself, and on a cluster that already runs these Operators, the pattern can conflict with them. On such a cluster, set `global.gpuOperators: reuse` before you install: the pattern then uses the cluster's own Operators and does not change them. For what the cluster's Operators must provide, see link:https://github.com/eugo-inc/vllm-ray-inference-server#reuse-the-clusters-gpu-operators[Reuse the cluster's GPU operators] in the pattern README. The reuse setting has run on one test cluster so far. The pattern has not been tested on a cluster that runs {rhoai}. |
There was a problem hiding this comment.
You probably want to note this as a prerequisite / early step in the getting-started.adoc file, and potentially in a "Troubleshooting" section as well.
There was a problem hiding this comment.
Ack! Getting started now checks for both Operators right after login before you fork or edit anything. Troubleshooting also has an entry titled "The GPU Operators fail to install, or a second copy appears" with diagnosis commands and the setting that prevents the conflict.
|
|
||
| You deploy the pattern from your own fork of the pattern repository. {rh-gitops} deploys the content of your fork on GitHub, not the files on your workstation, so commit and push every change before you install the pattern. | ||
|
|
||
| .Prerequisites |
There was a problem hiding this comment.
Generally, prerequisites should be a reminder rather than a full instruction set. A number of these (particularly around the GPU node requirements and how to fulfil them) might be better off in a separate "Cluster sizing" page so that you can include the detail.
There was a problem hiding this comment.
Ack! The Getting started prereqs are now small reminders that link to their detail on a new Cluster sizing page (i.e. the tested cluster, the GPU node requirements with the AWS quota, links to the OpenShift docs for adding a GPU node and to NVIDIA's list of supported GPUs, and the GPU compute capabilities that the server's vLLM packages are built for, etc).
Background now opens with the question the pattern answers and covers the problem, how the pattern avoids it, why teams need it and where it fits, and the benefits of the design decisions. New Architecture, Cluster sizing, Ideas for customization, Troubleshooting and Partner results pages. The AWS cost warning uses the reviewer's text. Getting started checks for existing GPU Operators right after login, and its prerequisites are reminders that link to Cluster sizing.
Thanks so much @laubai. We made a number of edits based on your feedback.
Let me know what you think! |
@laubai let me know if you have any feedback! Would love to get this merged this week! TYSM! |
Summary
This pull request adds the vLLM Ray Inference Server pattern to the site in the sandbox tier.
The pattern deploys an OpenAI-compatible LLM server on one OpenShift cluster, and a notebook that benchmarks it on your own GPU, the same way every time. One pod runs Ray Serve LLM with the vLLM engine on one NVIDIA GPU. The cluster builds the server image with a BuildConfig from hash-pinned PyPI wheels on the NVIDIA CUDA UBI 9 image. OpenShift GitOps deploys the server, the NVIDIA GPU Operator and Node Feature Discovery, Vault with the External Secrets Operator for an optional Hugging Face token, and the JupyterLab notebook.
The pattern also has two optional features, both off by default: a comparison, in which a job runs two server images, or one image with two sets of engine settings, through the same benchmark on the same GPU; and scale out, in which Ray Serve adds vLLM replicas inside the server pod and, in
kedamode, Red Hat's Custom Metrics Autoscaler adds whole server pods.tier: sandbox; the front matter does not setvalidated)partners: - Eugo)As suggested in the review, this pull request is where the informal technical and architecture reviews of both the pattern repository and the docs take place.
Changes in response to the review
global.gpuOperatorssetting. Troubleshooting has an entry for the conflict.Files
content/patterns/vllm-ray-inference-server/_index.adoccontent/patterns/vllm-ray-inference-server/getting-started.adoccontent/patterns/vllm-ray-inference-server/architecture.adoccontent/patterns/vllm-ray-inference-server/cluster-sizing.adoccontent/patterns/vllm-ray-inference-server/ideas-for-customization.adoccontent/patterns/vllm-ray-inference-server/troubleshooting.adoccontent/patterns/vllm-ray-inference-server/partner-results.adocstatic/images/vllm-ray-inference-server/architecture.svgSandbox tier requirements
./pattern.sh make installfrommainat1a781d1, with default settings, on a new installer-provisioned AWS cluster (OpenShift 4.22.18, us-east-1, three m5.2xlarge nodes, no cluster changes). The pattern was then still namedrhvp-vllm-ray-inference-server, with the namespacesrhvp-inferenceandrhvp-notebook. The command's own Argo CD health check passed, with all seven Argo CD applications Synced and Healthy. The pattern added the GPU node, the cluster built both images, the server answered the OpenAI API, and the notebook ran against it with no errors. An earlier install, on another new AWS cluster, found one bug (OpenShift's builder records an emptyCMDas/bin/sh -c null), which1a781d1fixes (README, What this pattern was verified against). Also before the rename, the reviewer installed the pattern on AWS (OpenShift 4.22.22) and reported every Argo CD resource Synced and Healthy and the inference server working (see the review comment in this pull request). After the rename, the renamed pattern (the new name and namespaces, 2-second probes, and a notebook that times only the stock server) passed our OpenShift Local check on November 12, on a cluster without a GPU, run from a temporary test branch set up for OpenShift Local on an arm64 machine. On November 21, the renamed pattern was installed again with./pattern.sh make installfrommainat4e071af, with default settings, on a new installer-provisioned AWS cluster (OpenShift 4.22.18, us-east-1): the command's own Argo CD health check passed, with all seven Argo CD applications Synced and Healthy, the pattern added the NVIDIA L4 GPU node, the cluster built both images, and the server answered the OpenAI API.pattern-metadata.yamlarchitecture.svgin this pull request_index.adocNotes for reviewers
rhvp-prefix; GitHub redirects the old repository URL); Eugo is listed underpartners, so the site shows the partner trademark notice and builds a partner page for Eugo; theglobal.gpuOperators: reusesetting was added for clusters that already run both GPU Operators; and the image comparison, scale out and the partner results were added.AGENTS.mdfile in the pattern repository.Checks
hugoexits 0. The pages report no warning other than the site-wide notice that the optionalrougegem is missing.AGENTS.mdpoint to headings that exist.