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

Splitting attention kernel file #10091

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

maleksan85
Copy link
Contributor

@maleksan85 maleksan85 commented Nov 6, 2024

Split paged attention kernel into two files for v1 and v2 to speed up compilation when template instantiation explodes.

side effect: support Navi32

Copy link

github-actions bot commented Nov 6, 2024

👋 Hi! Thank you for contributing to the vLLM project.
Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run fastcheck CI which starts running only a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of those by going to your fastcheck build on Buildkite UI (linked in the PR checks section) and unblock them. If you do not have permission to unblock, ping simon-mo or khluu to add you in our Buildkite org.

Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging.

To run CI, PR reviewers can do one of these:

  • Add ready label to the PR
  • Enable auto-merge.

🚀

@mergify mergify bot added the ci/build label Nov 6, 2024
@maleksan85 maleksan85 marked this pull request as ready for review November 6, 2024 20:17
@maleksan85 maleksan85 force-pushed the splitting_attention_kernel_file branch from 8a08b8f to ef85d7d Compare November 6, 2024 20:18
Signed-off-by: maleksan85 <[email protected]>

finishging split

clean up

Signed-off-by: maleksan85 <[email protected]>
@maleksan85 maleksan85 force-pushed the splitting_attention_kernel_file branch from ef85d7d to 429b7d9 Compare November 6, 2024 20:25
Copy link
Collaborator

@tlrmchlsmth tlrmchlsmth left a comment

Choose a reason for hiding this comment

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

Seems reasonable. Do you have measurements for compile time for these files before and with this change?

@maleksan85
Copy link
Contributor Author

maleksan85 commented Nov 6, 2024

Seems reasonable. Do you have measurements for compile time for these files before and with this change?

I didn't measure but on my non server machine I stopped to see timeouts during build. Also there will be change that increases compile time constants number. Different for AMD MI and AMD Navi thus increasing number of template instantiations and compile time.

@maleksan85
Copy link
Contributor Author

@tlrmchlsmth are you OK with the change or there are some concerns? If OK, please approve.

@tlrmchlsmth tlrmchlsmth added the ready ONLY add when PR is ready to merge/full CI is needed label Nov 9, 2024
@DarkLight1337 DarkLight1337 enabled auto-merge (squash) November 9, 2024 06:18
@DarkLight1337
Copy link
Member

@mergify-io rebase

@russellb
Copy link
Collaborator

russellb commented Nov 9, 2024

@mergify-io rebase

oops, sorry, should be @Mergifyio rebase

@DarkLight1337
Copy link
Member

@Mergifyio rebase

Copy link

mergify bot commented Nov 9, 2024

rebase

❌ Unable to rebase: user DarkLight1337 is unknown.

Please make sure DarkLight1337 has logged in Mergify dashboard.

@DarkLight1337
Copy link
Member

https://github.com/Mergifyio rebase

Copy link

mergify bot commented Nov 9, 2024

rebase

❌ Pull request can't be updated with latest base branch changes

Mergify needs the author permission to update the base branch of the pull request.
@ROCm needs to authorize modification on its head branch.

@youkaichao youkaichao disabled auto-merge November 12, 2024 06:55
@youkaichao youkaichao merged commit 812c981 into vllm-project:main Nov 12, 2024
77 checks passed
@maleksan85 maleksan85 deleted the splitting_attention_kernel_file branch November 12, 2024 20:39
rickyyx pushed a commit to rickyyx/vllm that referenced this pull request Nov 13, 2024
Signed-off-by: maleksan85 <[email protected]>
Co-authored-by: Aleksandr Malyshev <[email protected]>
omer-dayan pushed a commit to omer-dayan/vllm that referenced this pull request Nov 14, 2024
Signed-off-by: maleksan85 <[email protected]>
Co-authored-by: Aleksandr Malyshev <[email protected]>
Signed-off-by: OmerD <[email protected]>
sumitd2 pushed a commit to sumitd2/vllm that referenced this pull request Nov 14, 2024
Signed-off-by: maleksan85 <[email protected]>
Co-authored-by: Aleksandr Malyshev <[email protected]>
Signed-off-by: Sumit Dubey <[email protected]>
KuntaiDu pushed a commit to KuntaiDu/vllm that referenced this pull request Nov 20, 2024
Signed-off-by: maleksan85 <[email protected]>
Co-authored-by: Aleksandr Malyshev <[email protected]>
mfournioux pushed a commit to mfournioux/vllm that referenced this pull request Nov 20, 2024
Signed-off-by: maleksan85 <[email protected]>
Co-authored-by: Aleksandr Malyshev <[email protected]>
Signed-off-by: Maxime Fournioux <[email protected]>
tlrmchlsmth pushed a commit to neuralmagic/vllm that referenced this pull request Nov 23, 2024
Signed-off-by: maleksan85 <[email protected]>
Co-authored-by: Aleksandr Malyshev <[email protected]>
Signed-off-by: Tyler Michael Smith <[email protected]>
sleepwalker2017 pushed a commit to sleepwalker2017/vllm that referenced this pull request Dec 13, 2024
Signed-off-by: maleksan85 <[email protected]>
Co-authored-by: Aleksandr Malyshev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/build ready ONLY add when PR is ready to merge/full CI is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants