Skip to content

Fix NameError on non-CUDA platforms from unguarded fusion pass usage - #1

Closed
hongbolv with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-qwen3-vl-launch-error
Closed

hongbolv with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-qwen3-vl-launch-error

Conversation

Copilot AI commented Feb 11, 2026 •

Copy link
Copy Markdown

Qwen3-VL fails to launch on XPU with BackendCompilerFailed because CUDA-specific fusion passes are imported conditionally but instantiated unconditionally in PostGradPassManager.configure().

Changes

  • Guard CUDA-alike passes (is_cuda_alike()): SequenceParallelismPass, RMSNormQuantFusionPass, ActivationQuantFusionPass, AttnFusionPass, SplitCoalescingPass, QKNormRoPEFusionPass
  • Guard CUDA-only passes (is_cuda()): AsyncTPPass, AllReduceFusionPass

Before:

if self.pass_config.fuse_norm_quant:
    self.passes += [RMSNormQuantFusionPass(config)]  # NameError on XPU

After:

if current_platform.is_cuda_alike():
    if self.pass_config.fuse_norm_quant:
        self.passes += [RMSNormQuantFusionPass(config)]  # Only when imported

Platform behavior:

  • CUDA: All passes available
  • ROCm: CUDA-alike passes only
  • XPU/other: Platform-agnostic passes only

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 11, 2026 05:48
Co-authored-by: hongbolv <33214277+hongbolv@users.noreply.github.com>
Co-authored-by: hongbolv <33214277+hongbolv@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix Qwen3-VL launch error in vLLM setup Fix NameError on non-CUDA platforms from unguarded fusion pass usage Feb 11, 2026
Copilot AI requested a review from hongbolv February 11, 2026 05:51

@hongbolv hongbolv left a comment •

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot

  1. rebase the PR to latest version
  2. What's the behavior for XPU and other?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants