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

Fix assertion failure in Qwen 1.5 with prefix caching enabled #3373

Merged
merged 7 commits into from
Mar 14, 2024

Conversation

chenxu2048
Copy link
Contributor

Fix #3355.

Prefix caching is currently not supported with sliding window attention, and model runner asserts model_config.get_sliding_window() is None.

However, Qwen2/Qwen1.5 use use_sliding_window to turn off sliding window, which disables sliding window by default but model_config.get_sliding_window() is not None.

Copy link
Collaborator

@cadedaniel cadedaniel left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

vllm/config.py Outdated Show resolved Hide resolved
vllm/config.py Outdated Show resolved Hide resolved
chenxu2048 and others added 2 commits March 14, 2024 14:52
Co-authored-by: Cade Daniel <edacih@gmail.com>
Copy link
Collaborator

@cadedaniel cadedaniel left a comment

Choose a reason for hiding this comment

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

Thanks!

@simon-mo simon-mo merged commit 54be8a0 into vllm-project:main Mar 14, 2024
22 of 24 checks passed
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.

AssertionError: Prefix caching is currently not supported with sliding window attention
3 participants