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

Fix num splits bug #21899

Merged
merged 2 commits into from
Aug 29, 2024
Merged

Fix num splits bug #21899

merged 2 commits into from
Aug 29, 2024

Conversation

aciddelgado
Copy link
Contributor

Description

Found a bug with num splits where the heuristic isn't being performed properly due to incorrect passing of sequence length to heuristic function.

Motivation and Context

We were experiencing significant performance issues with long sequence length with flash attention due to this misconfiguration.

@tianleiwu
Copy link
Contributor

Please change all places of get_num_splits_and_buffer_sizes using total sequence length.

tianleiwu
tianleiwu previously approved these changes Aug 28, 2024
@aciddelgado aciddelgado marked this pull request as ready for review August 29, 2024 19:17
@tianleiwu tianleiwu merged commit 0223e86 into main Aug 29, 2024
95 of 97 checks passed
@tianleiwu tianleiwu deleted the aciddelgado/fix_num_splits branch August 29, 2024 22:00
tianleiwu pushed a commit that referenced this pull request Aug 29, 2024
### Description
Found a bug with num splits where the heuristic isn't being performed
properly due to incorrect passing of sequence length to heuristic
function.



### Motivation and Context
We were experiencing significant performance issues with long sequence
length with flash attention due to this misconfiguration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants