Repository navigation
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
There was a problem hiding this comment.
Pull request overview
Updates the FMHA v3 backward ASM kernel selection to handle gfx1250’s limited causal-mask kernel availability by remapping an equivalent causal mask in the self-attention (square) case, aligning with an existing symmetry already used for gfx942.
Changes:
- For
arch_id == "gfx1250", remapmask_typefrom top-left (1) to bottom-right (2) whenseqlen_q == seqlen_kso existing gfx1250 causal BWD kernels can be selected. - Keep the existing gfx942 square-seqlen remap logic (2 → 1) and apply the analogous inverse remap for gfx1250.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@yzhou103 gentle ping to see if this PR could get a review -- thanks! |
|
No activity for 15 days, so this is now labelled |
|
No activity for 15 days, so this is now labelled |
|
@Micky774 Sorry this sat for so long. main now has the same remap: #6454 (Oct 16) added the gfx1250 |
Motivation
gfx1250 only has kernels which support bottom-right masking. In the case of
s_q=s_kvwe have that bottom-right = top-left masking. This mirrors a similar symmetry already in place for gfx942.Technical Details
Test Plan
Tested by building w/ TE and applying to E2E models.
Test Result
The E2E model succeeds.
Submission Checklist