Skip to content

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!

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!

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