Skip to content
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

Minor fixes for attention #1504

Merged
merged 2 commits into from
Feb 25, 2025
Merged

Minor fixes for attention #1504

merged 2 commits into from
Feb 25, 2025

Conversation

cyanguwa
Copy link
Collaborator

Description

This PR fixes two things:

  • allow flash-attn 2.7.4 to run on sm100+, and allow head_dim=256 on sm100+
  • include sm120 in certain sm100+ restrictions that were left out (related to head_dim and bottom right causal mask)

Type of change

  • Documentation change (change only to the documentation, either a fix or a new content)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Infra/Build change
  • Code refactoring

Changes

See above.

Checklist:

  • I have read and followed the contributing guidelines
  • The functionality is complete
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Signed-off-by: Charlene Yang <[email protected]>
@cyanguwa cyanguwa requested a review from timmoon10 February 25, 2025 00:03
@cyanguwa
Copy link
Collaborator Author

/te-ci pytorch L0

Copy link
Collaborator

@timmoon10 timmoon10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@timmoon10 timmoon10 closed this Feb 25, 2025
@timmoon10 timmoon10 reopened this Feb 25, 2025
@timmoon10 timmoon10 merged commit 8744188 into NVIDIA:main Feb 25, 2025
20 of 21 checks passed
timmoon10 pushed a commit that referenced this pull request Feb 26, 2025
* minor fixes for attention

Signed-off-by: Charlene Yang <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: Charlene Yang <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants