-
-
Notifications
You must be signed in to change notification settings - Fork 11.6k
[Attention] Get rid of mla cache alignment #14842
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
[Attention] Get rid of mla cache alignment #14842
Conversation
Signed-off-by: Lucas Wilkinson <[email protected]>
|
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run 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 either: Add 🚀 |
Signed-off-by: Lucas Wilkinson <[email protected]>
|
@tylertitsworth @simon-mo Can you take a look? I'm a bit worried that we make this kind of changes back and forth. @LucasWilkinson Can you please test the accuracy after this change? |
|
Afiak this is getting rid of previous complexity and simplify the codebase |
@WoosukKwon the goal with this and #14770 was to just go back and audit alot of the MLA code with the goal of reducing complexity (like @simon-mo mentioned) since original code was written in a bit of a rush. I definitely echo the sentiment to be biased towards not changing these kinds of things, so definitely open to an extra pair of eyes on it. In this case specifically I do think some un-needed complexity slipped in due to the rushed nature of the MLA code (also makes sense to revisit after the recent updates, namely FlashMLA). |
Signed-off-by: Lucas Wilkinson <[email protected]> Signed-off-by: Louis Ulmer <[email protected]>
Signed-off-by: Lucas Wilkinson <[email protected]>
Signed-off-by: Lucas Wilkinson <[email protected]> Signed-off-by: Mu Huai <[email protected]>

With FlashMLA now being the default on Nvidia GPU and the fact that it seemingly doesnt help the Triton backend anymore/ever-did (bit of a mystery). I think we can go ahead and rip this out reclaiming the memory lost to padding:
This PR: