Repository navigation
fix(ci): fix model caching and PVC permissions for k8s GPU runners #829
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
Changes from 5 commits
f3ae25d
cec4bb8
9bd31f0
9a3267e
bfc2a80
4465a9b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -188,6 +188,7 @@ jobs: | |
| E2E_NIGHTLY: "1" | ||
| E2E_MODEL_TP_OVERRIDES: '{"meta-llama/Llama-3.1-8B-Instruct":1,"Qwen/Qwen2.5-7B-Instruct":1,"Qwen/Qwen3-30B-A3B":1}' | ||
| E2E_LOG_DIR: nightly_gateway_logs | ||
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
| run: | | ||
| mkdir -p nightly_gateway_logs | ||
| bash scripts/ci_killall_sglang.sh "nuk_gpus" | ||
|
|
@@ -198,7 +199,7 @@ jobs: | |
| fi | ||
|
|
||
| E2E_RUNTIME=${{ matrix.variant.runtime }} \ | ||
| ROUTER_LOCAL_MODEL_PATH="/raid/models" \ | ||
| HF_HOME="/models" \ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Switching the benchmark invocation to Useful? React with 👍 / 👎. |
||
| pytest e2e_test/benchmarks/test_nightly_perf.py \ | ||
|
Comment on lines
+201
to
202
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Complete the model-path migration for H200 nightly job as well. These updates move H100 jobs to Suggested patch- E2E_RUNTIME=${{ matrix.variant.runtime }} \
- ROUTER_LOCAL_MODEL_PATH="/raid/models" \
+ E2E_RUNTIME=${{ matrix.variant.runtime }} \
+ HF_HOME="/models" \
pytest e2e_test/benchmarks/test_nightly_perf.py \
-k "$K_FILTER" \
-s -vv -o log_cli=true --log-cli-level=INFOAlso applies to: 314-315 🤖 Prompt for AI Agents |
||
| -k "$K_FILTER" \ | ||
| -s -vv -o log_cli=true --log-cli-level=INFO | ||
|
|
@@ -301,6 +302,7 @@ jobs: | |
| E2E_NIGHTLY: "1" | ||
| E2E_MODEL_TP_OVERRIDES: '{"meta-llama/Llama-3.1-8B-Instruct":1,"Qwen/Qwen2.5-7B-Instruct":1,"Qwen/Qwen3-30B-A3B":1}' | ||
| E2E_LOG_DIR: nightly_gateway_logs | ||
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
| run: | | ||
| mkdir -p nightly_gateway_logs | ||
| bash scripts/ci_killall_sglang.sh "nuk_gpus" | ||
|
|
@@ -311,7 +313,7 @@ jobs: | |
| fi | ||
|
|
||
| E2E_RUNTIME=${{ matrix.variant.runtime }} \ | ||
| ROUTER_LOCAL_MODEL_PATH="/raid/models" \ | ||
| HF_HOME="/models" \ | ||
| pytest e2e_test/benchmarks/test_nightly_perf.py \ | ||
| -k "$K_FILTER" \ | ||
| -s -vv -o log_cli=true --log-cli-level=INFO | ||
|
|
@@ -417,6 +419,8 @@ jobs: | |
| GPU_TYPE: H200 | ||
| E2E_NIGHTLY: "1" | ||
| E2E_LOG_DIR: nightly_gateway_logs | ||
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
| HF_HOME: /raid/models | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Useful? React with 👍 / 👎. |
||
| run: | | ||
| mkdir -p nightly_gateway_logs | ||
| bash scripts/ci_killall_sglang.sh "nuk_gpus" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -328,7 +328,7 @@ jobs: | |
|
|
||
| - name: Run benchmarks | ||
| env: | ||
| ROUTER_LOCAL_MODEL_PATH: /home/ubuntu/models | ||
| HF_HOME: /models | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This replacement drops the only variable that Useful? React with 👍 / 👎. |
||
| run: | | ||
| bash scripts/ci_killall_sglang.sh "nuk_gpus" | ||
| SHOW_WORKER_LOGS=0 SHOW_ROUTER_LOGS=1 pytest e2e_test/benchmarks \ | ||
|
|
@@ -790,7 +790,7 @@ jobs: | |
| bash scripts/ci_killall_sglang.sh "nuk_gpus" | ||
| export CGO_LDFLAGS="-L$(pwd)/bindings/golang/target/release" | ||
| export LD_LIBRARY_PATH="$(pwd)/bindings/golang/target/release:$LD_LIBRARY_PATH" | ||
| SHOW_WORKER_LOGS=0 SHOW_ROUTER_LOGS=1 ROUTER_LOCAL_MODEL_PATH="/home/ubuntu/models" \ | ||
| SHOW_WORKER_LOGS=0 SHOW_ROUTER_LOGS=1 HF_HOME="/models" \ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This step now sets only Useful? React with 👍 / 👎. |
||
| pytest --reruns 2 --reruns-delay 5 e2e_test/bindings_go -s -vv | ||
|
|
||
| go-bindings-benchmark: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ fi | |
| echo "Using uv version: $(uv --version)" | ||
|
|
||
| echo "Installing vLLM (nightly for smg-grpc-servicer support)..." | ||
| uv pip install vllm --extra-index-url https://wheels.vllm.ai/nightly/cu129 | ||
| uv pip install vllm --extra-index-url https://wheels.vllm.ai/nightly/cu129 --index-strategy unsafe-best-match | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
# 1) Confirm the exact install line in repo
fd "ci_install_vllm.sh" --exec sed -n '20,26p' {}
# 2) Verify supported index strategy values in the CI toolchain image
if command -v uv >/dev/null 2>&1; then
uv --version
uv pip install --help | sed -n '/--index-strategy/,+12p'
else
printf 'uv is not installed in this sandbox. Re-run these two commands in the CI image:\n'
printf ' uv --version\n'
printf ' uv pip install --help | sed -n '\''/--index-strategy/,+12p'\''\n'
fiRepository: lightseekorg/smg Length of output: 519 🌐 Web query:
💡 Result:
Configuration docs also list Sources: uv “Compatibility with pip” docs (index strategies + warning). [1] uv “Settings” reference (the 🏁 Script executed: # Check if there are any comments or git history around this line
git log --oneline -n 20 scripts/ci_install_vllm.sh 2>/dev/null || echo "Git not available"
# Check for any documentation or comments in the script
cat scripts/ci_install_vllm.sh
# Search for other uses of index-strategy in the codebase
rg "index-strategy" --type sh --type py --type yaml --type txtRepository: lightseekorg/smg Length of output: 1314 🏁 Script executed: # Check if vllm is pinned elsewhere or if there's a requirements file
fd "requirements" --type f | head -20
fd "pyproject" --type f | head -20
rg "vllm" --type py --type txt -A 2 -B 2 | head -50Repository: lightseekorg/smg Length of output: 3866 Reconsider Line 23 uses Since your script requires nightly vllm for
🤖 Prompt for AI AgentsThere was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Useful? React with 👍 / 👎. |
||
|
|
||
| # Install nixl for vLLM PD disaggregation (NIXL KV transfer) | ||
| echo "Installing nixl..." | ||
|
|
||
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.
This change replaces
ROUTER_LOCAL_MODEL_PATHwithHF_HOME, but E2E model selection still resolves local fixtures only viaROUTER_LOCAL_MODEL_PATH(e2e_test/infra/model_specs.py,_resolve_model_path). With onlyHF_HOMEset, workers receive HF model IDs instead of mounted PVC paths, so this workflow stops using/models/<org>/<model>and can fail or stall on runners without Hub access or complete HF cache metadata. KeepROUTER_LOCAL_MODEL_PATH=/modelshere (you can setHF_HOMEin addition).Useful? React with 👍 / 👎.