Add GQA XQA and Flash workspace recipes - #32453
Draft
Ti-Tai Wang (titaiwangms) wants to merge 2 commits into
Draft
Add GQA XQA and Flash workspace recipes#32453Ti-Tai Wang (titaiwangms) wants to merge 2 commits into
Ti-Tai Wang (titaiwangms) wants to merge 2 commits into
Conversation
Introduce graph-free checked workspace recipes for GroupQueryAttention preparation buffers, including windowed cache staging, compaction, sequence metadata, and QKV preprocessing layouts. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b24d04bb-12ab-41a0-8941-76eb9769005d
Add checked graph-free XQA and Flash workspace recipes with Flash split parity and documented non-monotonicity. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b24d04bb-12ab-41a0-8941-76eb9769005d
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.
Summary
Stacked on #32446, add graph-free checked workspace recipes for the CUDA GroupQueryAttention decode backends:
Flash bounded-estimation constraint
Flash workspace is not monotonic in KV length. For
B=1,S_q=1, two heads, head size 64, and 108 SMs, increasing KV length from 13,824 to 13,825 changes the selected split count from 54 to 28 and reduces workspace. Future Level-1/Level-2 aggregation must compute a conservative envelope or report unavailable rather than evaluating only the maximum shape.The split heuristic matches runtime double-threshold semantics, including a regression boundary where using
0.85fwould select 17 splits instead of the runtime 20.Scope
This PR adds concrete selected-backend recipes only. It does not add MEA/unfused recipes, complete-route composition, dynamic-bound route reachability, L1/L2 adapters, cuDNN workspace queries, runtime allocation changes, or #32071 planner integration.
Validation
Tracking: #29775
Dependency: #32446