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

[Bugfix] Mamba cache Cuda Graph padding #6214

Merged
merged 3 commits into from
Jul 8, 2024

Conversation

tomeras91
Copy link
Contributor

The current Jamba implementation doesn't allow use of Cuda Graph with batch sizes that weren't captured. When trying to do that, a RuntimeError is raised with incompatible tensor shapes. This happens because the mamba cache wasn't padded to the Cuda Graph batch size.

This PR fixes this issue, and adds a test to assert it.

…ape and not by number of sequences. This is so we pad the mamba cache to the captured CG batch sizes
@simon-mo simon-mo merged commit ddc369f into vllm-project:main Jul 8, 2024
68 of 70 checks passed
tlrmchlsmth added a commit to neuralmagic/nm-vllm that referenced this pull request Jul 16, 2024
dtrifiro pushed a commit to opendatahub-io/vllm that referenced this pull request Jul 17, 2024
xjpang pushed a commit to xjpang/vllm that referenced this pull request Jul 24, 2024
@tomeras91 tomeras91 deleted the mamba-cg-cache-padding branch August 12, 2024 15:00
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.

2 participants