Skip to content

perf: fix the iteration bound of SWA in FA2 prefill template#714

Merged
yzh119 merged 1 commit into
mainfrom
fa2-swa-bound
Jan 4, 2025
Merged

perf: fix the iteration bound of SWA in FA2 prefill template#714
yzh119 merged 1 commit into
mainfrom
fa2-swa-bound

Conversation

@yzh119
Copy link
Copy Markdown
Collaborator

@yzh119 yzh119 commented Jan 3, 2025

We forgot to divide the packed row index by group_size when computing the sliding window iteration bound, making it larger than its actual value, and slows down the execution.

Thank @Ying1123 for spotting this bug.

@yzh119 yzh119 changed the title bugfix: fix the iteration bound of SWA in FA2 prefill template perf: fix the iteration bound of SWA in FA2 prefill template Jan 4, 2025
@yzh119 yzh119 merged commit 989dbfa into main Jan 4, 2025
@yzh119 yzh119 deleted the fa2-swa-bound branch January 7, 2025 03:45
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.

1 participant