-
Notifications
You must be signed in to change notification settings - Fork 68
LCORE-941: Use proper vLLM image for prow RHOAI tests #1014
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| apiVersion: nvidia.com/v1 | ||
| kind: ClusterPolicy | ||
| metadata: | ||
| name: gpu-cluster-policy | ||
| spec: | ||
| daemonsets: | ||
| tolerations: | ||
| - key: nvidia.com/gpu | ||
| operator: Exists | ||
| effect: NoSchedule | ||
| - key: gpu | ||
| operator: Exists | ||
| effect: NoSchedule | ||
| operator: | ||
| defaultRuntime: crio | ||
| driver: | ||
| enabled: true | ||
| toolkit: | ||
| enabled: true | ||
| devicePlugin: | ||
| enabled: true | ||
| dcgm: | ||
| enabled: true | ||
| dcgmExporter: | ||
| enabled: true | ||
| gfd: | ||
| enabled: true | ||
| migManager: | ||
| enabled: false | ||
| nodeStatusExporter: | ||
| enabled: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Minimal NFD instance | ||
| apiVersion: nfd.openshift.io/v1 | ||
| kind: NodeFeatureDiscovery | ||
| metadata: | ||
| name: nfd-instance | ||
| namespace: openshift-nfd | ||
| spec: | ||
| instance: "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # NFD Namespace | ||
| apiVersion: v1 | ||
| kind: Namespace | ||
| metadata: | ||
| name: openshift-nfd |
5 changes: 5 additions & 0 deletions
5
tests/e2e-prow/rhoai/manifests/namespaces/nvidia-operator.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # NVIDIA GPU Operator Namespace | ||
| apiVersion: v1 | ||
| kind: Namespace | ||
| metadata: | ||
| name: nvidia-gpu-operator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
25 changes: 25 additions & 0 deletions
25
tests/e2e-prow/rhoai/manifests/vllm/vllm-inference-service-gpu.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| apiVersion: serving.kserve.io/v1beta1 | ||
| kind: InferenceService | ||
| metadata: | ||
| name: vllm-model | ||
| namespace: e2e-rhoai-dsc | ||
| annotations: | ||
| serving.kserve.io/deploymentMode: RawDeployment | ||
| sidecar.istio.io/inject: "false" | ||
| spec: | ||
| predictor: | ||
| minReplicas: 1 | ||
| maxReplicas: 1 | ||
| model: | ||
| modelFormat: | ||
| name: vLLM | ||
| runtime: vllm-gpu | ||
| resources: | ||
| limits: | ||
| nvidia.com/gpu: 1 | ||
| cpu: "4" | ||
| memory: 20Gi | ||
| requests: | ||
| nvidia.com/gpu: 1 | ||
| cpu: "2" | ||
| memory: 16Gi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| apiVersion: serving.kserve.io/v1alpha1 | ||
| kind: ServingRuntime | ||
| metadata: | ||
| annotations: | ||
| openshift.io/display-name: vLLM GPU | ||
| name: vllm-gpu | ||
| namespace: e2e-rhoai-dsc | ||
| labels: | ||
| opendatahub.io/dashboard: "true" | ||
| spec: | ||
| builtInAdapter: | ||
| modelLoadingTimeoutMillis: 90000 | ||
| containers: | ||
| - args: | ||
| - --model | ||
| - meta-llama/Llama-3.2-1B-Instruct | ||
| - --enable-auto-tool-choice | ||
| - --tool-call-parser | ||
| - llama3_json | ||
| - --chat-template | ||
| - /mnt/chat-template/tool_chat_template_llama3.2_json.jinja | ||
| - --download-dir | ||
| - /tmp/models-cache | ||
| - --port | ||
| - "8080" | ||
| - --max-model-len | ||
| - "2048" | ||
| - --gpu-memory-utilization | ||
| - "0.9" | ||
| image: ${VLLM_IMAGE} | ||
| name: kserve-container | ||
| env: | ||
| - name: HF_HUB_OFFLINE | ||
| value: "false" | ||
| - name: TRANSFORMERS_OFFLINE | ||
| value: "false" | ||
| - name: HF_DATASETS_OFFLINE | ||
| value: "false" | ||
| - name: HF_HOME | ||
| value: /mnt/models-cache/hf_home | ||
| - name: HUGGING_FACE_HUB_TOKEN | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: hf-token-secret | ||
| key: token | ||
| - name: VLLM_API_KEY | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: vllm-api-key-secret | ||
| key: key | ||
| ports: | ||
| - containerPort: 8080 | ||
| name: http1 | ||
| protocol: TCP | ||
| volumeMounts: | ||
| - name: chat-template | ||
| mountPath: /mnt/chat-template | ||
| - name: models-cache | ||
| mountPath: /mnt/models-cache | ||
| - name: vllm-cache | ||
| mountPath: /.cache | ||
| resources: | ||
| limits: | ||
| nvidia.com/gpu: 1 | ||
| cpu: "6" | ||
| memory: 20Gi | ||
| requests: | ||
| nvidia.com/gpu: 1 | ||
| cpu: "4" | ||
| memory: 16Gi | ||
| volumes: | ||
| - name: chat-template | ||
| configMap: | ||
| name: vllm-chat-template | ||
| - name: models-cache | ||
| emptyDir: {} | ||
| - name: vllm-cache | ||
| emptyDir: {} | ||
| multiModel: false | ||
| supportedModelFormats: | ||
| - autoSelect: true | ||
| name: vLLM | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,11 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| PIPELINE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
|
||
| "$PIPELINE_DIR/scripts/bootstrap.sh" "$PIPELINE_DIR" | ||
| "$PIPELINE_DIR/scripts/gpu-setup.sh" "$PIPELINE_DIR" | ||
| source "$PIPELINE_DIR/scripts/fetch-vllm-image.sh" | ||
| "$PIPELINE_DIR/scripts/deploy-vllm.sh" "$PIPELINE_DIR" | ||
| "$PIPELINE_DIR/scripts/get-vllm-pod-info.sh" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: lightspeed-core/lightspeed-stack
Length of output: 885
🌐 Web query:
vLLM argument parser trailing spaces CLI flags parsing behavior💡 Result:
Short answer: vLLM’s CLI uses a FlexibleArgumentParser built on Python argparse, so flag-parsing follows standard argparse rules — trailing whitespace inside an argument value is preserved by the parser but the shell will usually strip/unpack whitespace unless you quote the value. For file/path arguments and complex JSON-style args, you must quote or escape spaces; vLLM has reported issues when unescaped spaces appear in local file paths. References and guidance below.
Practical tips:
Sources:
[1] vLLM argparse utilities documentation.
[2] vLLM GitHub issue: "Inference fails when there is space character in local file path."
[3] vLLM CLI reference / flags documentation.
Remove trailing spaces in vLLM flags to prevent startup failure.
Lines 19 and 21 contain trailing spaces after
--tool-call-parserand--chat-template. Kubernetes passes the args array directly to the container without shell processing, so these flags become--tool-call-parserand--chat-template(with spaces). The vLLM argparse parser won't recognize these as valid flags and will reject them as unrecognized arguments, causing the container to fail on startup.Fix
📝 Committable suggestion
🤖 Prompt for AI Agents