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

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

Merged
merged 1 commit into from
Jan 4, 2025

Conversation

yzh119
Copy link
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