docs: correct the enable_gqa / cuDNN explanation - #14561
Open
yiyixuxu wants to merge 2 commits into
Open
Conversation
The Krea 2 PR (#14523) said no fused SDPA kernel takes a mask together with mismatched head counts and that cuDNN raises on `enable_gqa`. Neither is right: torch's cuDNN kernel accepts both, and the `enable_gqa` raises in `attention_dispatch.py` are in the context-parallel ops, not the backends. What actually happens is that torch tries its kernels in a priority order that changes across versions and GPUs, and whenever math comes before cuDNN an `enable_gqa` + mask call lands on math and materializes the full score matrix. Rewrite the GQA section of models.md around that (kernel compatibility table, why to repeat when there is a mask) and fix the Krea 2 processor comment to match. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Collaborator
Author
|
cc @dxqb, feel free to share feedback if you have any! |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
sayakpaul
approved these changes
Aug 22, 2026
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.
No description provided.