docs: update cuDNN sliding window attention support#2624
Open
sbhavani wants to merge 2 commits intoNVIDIA:mainfrom
Open
docs: update cuDNN sliding window attention support#2624sbhavani wants to merge 2 commits intoNVIDIA:mainfrom
sbhavani wants to merge 2 commits intoNVIDIA:mainfrom
Conversation
Update documentation to reflect that cuDNN now supports causal sliding window attention (SWA) starting from version 9.2+. Changes: - Updated backend support matrix table to show cuDNN supports SWA (cuDNN 9.2+, causal masks only) - Added SWA comparison between flash-attention and cuDNN in section 1.3 - Added clarifying note in cp_ag_thd_dpa_jax_deep_dive.ipynb that cuDNN supports SWA but not all striping patterns for context parallelism Technical details: - cuDNN 9.2+: Supports causal SWA with window_size=(left, 0) - cuDNN 9.6+: Enhanced support for asymmetric windows (left, right) - Constraints: Requires dropout=0.0 and bias_type="no_bias" - Only works with causal mask types Signed-off-by: Santosh Bhavani <santosh.bhavani@live.com>
Contributor
Greptile SummaryDocumentation-only PR that updates the attention documentation to reflect cuDNN's sliding window attention (SWA) support starting from version 9.2+.
All documented constraints ( Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[SWA Request] --> B{cuDNN Version?}
B -->|< 9.2| C[SWA Not Supported\nFallback to flash-attention]
B -->|>= 9.2| D{Mask Type?}
D -->|causal / causal_bottom_right| E{dropout == 0.0?}
D -->|non-causal| C
E -->|Yes| F{bias_type == no_bias?}
E -->|No| C
F -->|Yes| G[cuDNN SWA Enabled]
F -->|No| C
Last reviewed commit: 12be7aa |
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.
Description
Update documentation to reflect that cuDNN now supports causal sliding window attention (SWA) starting from version 9.2+.
Type of change
Changes
Please list the changes introduced in this PR:
Changes:
Checklist: