Repository navigation
[llm] Backport deferred Triton validation for frontends - #67174
Conversation
Co-authored-by: Codex <[email protected]> Signed-off-by: Jeffrey Wang <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request introduces a patch to defer Triton validation in vLLM to the GPU worker initialization phase, allowing CPU frontends to build configurations without requiring Triton. It also adds a new release test to verify this behavior on CPU-only head nodes. The review feedback correctly identifies a bug in the new test where awaiting results_async() directly will raise a TypeError because it returns an async generator, and suggests using an async list comprehension to collect the results instead.
| assert response.status_code == 200, response.text | ||
| assert response.json()["usage"]["completion_tokens"] > 0 | ||
| router = serve.get_deployment_handle("LLMRouter", app_name=app_name) | ||
| reports = await router.broadcast("get_token_push_report").results_async() |
There was a problem hiding this comment.
Awaiting results_async() directly will raise a TypeError because results_async() is an async generator (returning an AsyncIterator), which cannot be awaited. Instead, you should use an async list comprehension to collect the results from the generator.
reports = [
report
async for report in router.broadcast(\"get_token_push_report\")
]There was a problem hiding this comment.
False positive -- there's no yield in results_async:
ray/python/ray/serve/handle.py
Lines 980 to 1033 in c8c4d99
Co-authored-by: Codex <[email protected]> Signed-off-by: Jeffrey Wang <[email protected]>
Co-authored-by: Codex <[email protected]> Signed-off-by: Jeffrey Wang <[email protected]>
kouroshHakha
left a comment
There was a problem hiding this comment.
looks good. Just address Gemini (maybe)
…7436) ## Description #67197 bumped vLLM to 0.32.0 but did not refresh vllm-defer-triton-validation.patch (added in #67174 against 0.31), so `git apply` fails in the llmbuild / llmgpubuild / llmbuild (aarch64) images: ``` error: patch failed: vllm/config/vllm.py:743 error: patch failed: vllm/v1/worker/gpu_worker.py:68 ``` Regenerate the patch against vLLM 0.32.0. Besides line offsets, 0.32.0 dropped the ROCm block in `VllmConfig.use_v2_model_runner` that had imported `current_platform` into scope, so the patch now imports it locally before the `is_unspecified()` check (a context-only rebase would `NameError` at runtime). ## Related issues > Link related issues: "Fixes #1234", "Closes #1234", or "Related to #1234". ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. Co-authored-by: Claude Opus 5.5 <[email protected]>
…y-project#67436) ## Description ray-project#67197 bumped vLLM to 0.32.0 but did not refresh vllm-defer-triton-validation.patch (added in ray-project#67174 against 0.31), so `git apply` fails in the llmbuild / llmgpubuild / llmbuild (aarch64) images: ``` error: patch failed: vllm/config/vllm.py:743 error: patch failed: vllm/v1/worker/gpu_worker.py:68 ``` Regenerate the patch against vLLM 0.32.0. Besides line offsets, 0.32.0 dropped the ROCm block in `VllmConfig.use_v2_model_runner` that had imported `current_platform` into scope, so the patch now imports it locally before the `is_unspecified()` check (a context-only rebase would `NameError` at runtime). ## Related issues > Link related issues: "Fixes ray-project#1234", "Closes ray-project#1234", or "Related to ray-project#1234". ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. Co-authored-by: Claude Opus 5.5 <[email protected]>
Description
Backport the vLLM fix that defers MRV2’s Triton availability check until worker startup.
With
KVAwareRouter, each proxy node constructs a fullVllmConfigfor prompt rendering. On a CPU-only head, configurations such as DFlash2 can fail validation because no Triton driver is available. The head’sLLMRouterthen fails to start, leaving HAProxy on load-only routing.Related issues
Upstream fix: vllm-project/vllm#62576
Additional information
AI assistance was used.