Skip to content

Fix num splits bug#21899

Merged
tianleiwu merged 2 commits intomainfrom
aciddelgado/fix_num_splits
Aug 29, 2024
Merged

Fix num splits bug#21899
tianleiwu merged 2 commits intomainfrom
aciddelgado/fix_num_splits

Conversation

@aciddelgado
Copy link
Copy Markdown
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
Copy Markdown
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
@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