docs: update cuDNN sliding window attention support#2624
Open
sbhavani wants to merge 1 commit intoNVIDIA:mainfrom
Open
docs: update cuDNN sliding window attention support#2624sbhavani wants to merge 1 commit intoNVIDIA:mainfrom
sbhavani wants to merge 1 commit 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 OverviewGreptile SummaryUpdated documentation to reflect that cuDNN now supports causal sliding window attention (SWA) starting from version 9.2+. Changes include:
The documentation changes are accurate and consistent with the implementation in Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant Docs as Documentation
participant User as End User
participant Code as TransformerEngine Code
Dev->>Docs: Update attention.ipynb
Note over Docs: Add SWA support info in section 1.3<br/>Update backend support matrix table<br/>Specify cuDNN 9.2+ causal SWA support
Dev->>Docs: Update cp_ag_thd_dpa_jax_deep_dive.ipynb
Note over Docs: Add note about cuDNN SWA support<br/>Clarify striping pattern limitations
User->>Docs: Read documentation
Docs-->>User: cuDNN 9.2+ supports causal SWA<br/>Requires dropout=0.0 and bias_type="no_bias"<br/>Not all striping patterns supported for CP
User->>Code: Configure attention with SWA
Note over Code: cuDNN 9.2+ implementation<br/>fused_attn.cpp enforces constraints
Code-->>User: SWA execution with documented constraints
|
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: