Repository navigation
Conversation
…backend
VisionFlash3Attention unconditionally calls flash_attn_func, but the
wrapper was only defined under `if _is_cuda:`; the MUSA branch imported
just flash_attn_varlen_func. Any VL model on MUSA (mm backend defaults
to fa3 at capability >= 3.1) died in the vision tower with
NameError: name 'flash_attn_func' is not defined
Define the wrapper for MUSA too, forwarding to flash_attn_interface's
fa3-style varlen entry (ver=4 stays CUDA-only behind
VisionFlash4Attention).
Verified on an MTT S5000: Qwen3-VL-4B-Instruct serves end to end with
pure defaults and answers an image prompt correctly; the new unit test
fails on the pre-fix code (hasattr guard red) and passes with the fix.
Co-Authored-By: Claude Code <[email protected]>
Haozon
requested review from
mickqian,
yhyang201 and
yuan-luo
as code owners
November 12, 2026 09:52
5 of 6 tasks
Collaborator
|
Merged to #50275 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
…backend
VisionFlash3Attention unconditionally calls flash_attn_func, but the wrapper was only defined under
if _is_cuda:; the MUSA branch imported just flash_attn_varlen_func. Any VL model on MUSA (mm backend defaults to fa3 at capability >= 3.1) died in the vision tower withDefine the wrapper for MUSA too, forwarding to flash_attn_interface's fa3-style varlen entry (ver=4 stays CUDA-only behind VisionFlash4Attention).
Verified on an MTT S5000: Qwen3-VL-4B-Instruct serves end to end with pure defaults and answers an image prompt correctly; the new unit test fails on the pre-fix code (hasattr guard red) and passes with the fix.
Motivation
Modifications
Accuracy Tests
Speed Tests and Profiling
Checklist
Review and Merge Process
/tag-and-rerun-ci,/tag-run-ci-label,/rerun-failed-ciCI States
Latest PR Test (Base): ❌ Run #43196980004
Latest PR Test (Extra): ❌ Run #43196979655
Latest PR Test (AMD ROCm 10): ❌ Run #43196979951
Tip
Base CI only covers the core cases, and its workload may not exercise your change. Use
/rerun-testto run the tests your change touches, or copy this prompt for an agent: