-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
[Bugfix][Mamba] Fix Multistep on Mamba-like models #10705
[Bugfix][Mamba] Fix Multistep on Mamba-like models #10705
Conversation
ids are not passed correctly to the mamba cache manager, thus doesn't release mamba cache slots on time Signed-off-by: mzusman <[email protected]>
👋 Hi! Thank you for contributing to the vLLM project. 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:
🚀 |
Signed-off-by: mzusman <[email protected]>
Signed-off-by: mzusman <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix!
) -> None: | ||
# This test is verifying that multistep works correctly | ||
#on mamba-like models | ||
with vllm_runner(model, num_scheduler_steps=8, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to add check to make sure that the mamba cache is empty at the end of the test to catch #10693, but unfortunately I don't see a way to do it that's not very high effort.
Signed-off-by: mzusman <[email protected]> Signed-off-by: Andrew Feldman <[email protected]>
Signed-off-by: mzusman <[email protected]>
Signed-off-by: mzusman <[email protected]>
Bugfix for Mamba with multistep scheduler, where finished requests ids were not passed into the MambaCacheManager,
which in turn ran into out of free slots situation, unable to receive new incoming requests,
The fix was to move the get_and_reset_finished_request_call inside the if clause so it would be called only upon finished multistep run.
FIX #10693
CC @tlrmchlsmth , @fabianlim