Repository navigation
Conversation
|
👋 Hi! Thank you for contributing to the vLLM Ascend project. The following points will speed up your PR merge:
If CI fails, you can run linting and testing checks locally according Contributing and Testing. 🤖 How to trigger CI
Note Until the CI gate has run on a commit, the required Tip 💡 Consider Linking a Related Issue or RFCYour PR title contains the [BugFix] tag, indicating a bug fix or new feature. Linking a related issue or RFC in the PR description is strongly encouraged — it gives reviewers helpful context and speeds up the review. You can use any of these keywords:
🙏 Thanks for helping us keep the project well-organized! |
There was a problem hiding this comment.
Code Review
This pull request replaces version-based checks with a feature-detection check (_supports_routed_scale_mode) by inspecting the signature of _original_FusedMoE. The reviewer recommends renaming the module-level constant _supports_routed_scale_mode to _SUPPORTS_ROUTED_SCALE_MODE to adhere to the repository's style guide for module-level constants, and updating all its references across the implementation and test files.
|
|
||
| # Capture the real original before fused_moe.py's module-level code runs. | ||
| _original_FusedMoE = _fused_moe_layer.FusedMoEFactory | ||
| _supports_routed_scale_mode = "routed_scale_mode" in signature(_original_FusedMoE).parameters |
There was a problem hiding this comment.
According to the repository style guide, module-level constants should be named in ALL_UPPER_CASE. Please rename _supports_routed_scale_mode to _SUPPORTS_ROUTED_SCALE_MODE to adhere to this convention.
| _supports_routed_scale_mode = "routed_scale_mode" in signature(_original_FusedMoE).parameters | |
| _SUPPORTS_ROUTED_SCALE_MODE = "routed_scale_mode" in signature(_original_FusedMoE).parameters |
References
- No new module-level mutable globals; constants (ALL_UPPER_CASE) are fine. (link)
| # constructing either the router or the native factory to scale once. | ||
| scaling_kwargs: dict[str, Any] | ||
| if vllm_version_is("0.34.0"): | ||
| if not _supports_routed_scale_mode: |
There was a problem hiding this comment.
Update the reference to the renamed constant _SUPPORTS_ROUTED_SCALE_MODE.
| if not _supports_routed_scale_mode: | |
| if not _SUPPORTS_ROUTED_SCALE_MODE: |
References
- No new module-level mutable globals; constants (ALL_UPPER_CASE) are fine. (link)
| ) | ||
| kwargs = original_factory.call_args.kwargs | ||
| if patch_fused_moe.vllm_version_is("0.34.0"): | ||
| if not patch_fused_moe._supports_routed_scale_mode: |
There was a problem hiding this comment.
Update the reference to the renamed constant _SUPPORTS_ROUTED_SCALE_MODE in the test file.
| if not patch_fused_moe._supports_routed_scale_mode: | |
| if not patch_fused_moe._SUPPORTS_ROUTED_SCALE_MODE: |
References
- No new module-level mutable globals; constants (ALL_UPPER_CASE) are fine. (link)
| router_factory = MagicMock(return_value=router) | ||
| original_factory = MagicMock(return_value=SimpleNamespace(router=router)) | ||
| main = not patch_fused_moe.vllm_version_is("0.34.0") | ||
| main = patch_fused_moe._supports_routed_scale_mode |
There was a problem hiding this comment.
Update the reference to the renamed constant _SUPPORTS_ROUTED_SCALE_MODE in the test file.
| main = patch_fused_moe._supports_routed_scale_mode | |
| main = patch_fused_moe._SUPPORTS_ROUTED_SCALE_MODE |
References
- No new module-level mutable globals; constants (ALL_UPPER_CASE) are fine. (link)
|
Last updated: 2026-12-01 04:49 UTC+8 for commit ci-gate failed. Reason:
See the workflow run for full logs. This comment is updated in place on each new failure and marked as passed once the gate passes (it is kept for history, not deleted). Missing owner approvals. Every changed file needs one approval from its CODEOWNERS owner(s): |
Coverage
More info see: Summary |
Select the routed scaling contract by the factory signature. Keep the EPLB warmup test independent of the removed version helper. Signed-off-by: Tugrahan Karakadioglu <104067096+tgrhn@users.noreply.github.com>
04b0224 to
a81c7af
Compare
|
/run |
Signed-off-by: Tugrahan Karakadioglu <104067096+tgrhn@users.noreply.github.com>
What this PR does / why we need it?
After fixing worker-patch import in #23977, Qwen3.6-35B-A3B MXFP8 TP2 + EP reached model construction but failed because Ascend forwarded
apply_routed_scale_to_outputto a core factory that acceptsrouted_scale_mode. The pinned main checkout and release can both report vLLM 0.34.0.Inspect the original factory signature once to choose the existing argument mapping. Preserve the legacy Boolean argument for factories that use it and the enum mapping for factories that accept the new argument.
How was this patch tested?
The FusedMoE and DeepSeek patch CPU test files passed together (68 tests) on the pinned core. The two launch failures and fixes are independent. A complete Qwen performance run is separate from these unit checks.
CPU CI follow-up
Both CPU matrix artifacts for run 46470546953 show the EPLB warmup test raising
AttributeErrorwhen it mocksvllm_version_is, which this patch removed. The test now exercises the installed factory contract without that obsolete mock. On vLLMc410543d9, the focused pre-fix run reproduced the exception and the post-fix warmup, fused MoE, and callback suite passed 29 tests.The same CI artifacts also report a 30-second timeout in
test_graph_callback_failure_exits_even_if_callback_exceptions_are_swallowed. That test passed in isolation before and after the mock change. Its CI timeout remains unclassified and is pending the full rerun.