-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Support Attention(24)-CUDA and disjoint from contrib op #27542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
020ac15
ONNX Attention thin-dispatcher: direct flash/MEA/unfused dispatch wit…
titaiwangms e270a6a
Update Operator Kernel document
titaiwangms 6c50092
Fix cutlass FMHA crash when attention bias stride is unaligned
titaiwangms 6ac08bf
Fix GQA decode eligibility, padding mask wiring, and 4D BNSH Q transpose
titaiwangms f198af2
Fix all-false mask crash in ConvertMaskToSeqlensKernel
titaiwangms 9eb11e4
Replace host memcpy with device-side fill for CUDA graph capture
titaiwangms 16e8b65
Handle bool mask in decode path to support variable padding
titaiwangms d3b4968
Fix NaN output for all-false bool masks in MEA path
titaiwangms e0760a8
Fix cutlass FMHA bias alignment crash for unaligned kv_sequence_length
titaiwangms a827a1b
Fix 3D mask test to use consistent per-batch padding semantics
titaiwangms 9a0b546
Remove 11 redundant GQA tests from test_gqa.py
titaiwangms 939a08c
Fix padding mask bugs: zero present buffers, decode offset, MEA 2D ex…
titaiwangms 118546d
Add TODO for GQA unfused attention fallback
titaiwangms b8ea59e
Add TODO comments for GQA+float_mask and 4D present gaps
titaiwangms aca1cf8
Add TODO comments for softcap/softmax_precision and output_qk gaps
titaiwangms 0990076
Revert "Add TODO comments for GQA+float_mask and 4D present gaps"
titaiwangms cb64751
Code cleanup: remove dead function, fix comments, CUDA-graph-safe 2D …
titaiwangms 76b006a
Add test improvements: unfused MHA, 4D BNSH GQA, broadcast mask, floa…
titaiwangms c3f771a
lint
titaiwangms d6f16af
Fix 2D mask shape, add 4D BNSH present_kv, cleanup and docs
titaiwangms 813dae2
Fix 2D mask shape, add 4D BNSH present_kv, cleanup and docs
titaiwangms 68a1b02
Address PR review feedback: transpose helpers, assert fixes, SEGFAULT…
titaiwangms 27ee9af
Refine comments, fix docstrings, and remove dead code
titaiwangms 381cd83
Add clarifying comment for DispatchIsAligned bias alignment check
titaiwangms a158251
Fix SM skip thresholds in attention tests (T25)
titaiwangms 73da07a
Address Copilot review: env var support, SM skip fix, nonpad+mask fal…
titaiwangms 1e01894
Wire up nonpad_kv_seqlen + attn_mask composition in unfused path (T28)
titaiwangms 31567e7
Fix 2D mask shape in GQA tests and add mask validation (T29)
titaiwangms c5a1ebb
Fix T28 review issues: guard mask dims, prevent divide-by-zero, fix s…
titaiwangms 7111a4d
Add Python tests for nonpad_kv_seqlen + attn_mask combination (T31)
titaiwangms f8cd689
Address review feedback: BF16 fix, unfused nonpad+mask, test improvem…
titaiwangms 4b87dd8
Fix test failures: reference mask shape, seqlens size, invalid configs
titaiwangms a6dce1a
Validate present_key/present_value outputs in TensorScatter attention…
titaiwangms a16baab
Address Copilot review round 3: log level, present_kv validation, cle…
titaiwangms cb2ae8c
Fix env var leak in tests: restore ORT_DISABLE_* after use
titaiwangms 579af5f
lint
titaiwangms 46570e5
Merge branch 'main' into titaiwang/design_attention_with_ai
titaiwangms File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.