Skip to content

Fix for breaking changes in xformers 0.0.21 #834

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

Merged
merged 4 commits into from
Aug 23, 2023
Merged

Fix for breaking changes in xformers 0.0.21 #834

merged 4 commits into from
Aug 23, 2023

Conversation

WoosukKwon
Copy link
Collaborator

Fixes #832

This PR fixes the breaking changes made in the latest release of xformers. Specifically, now the xformers attention bias should have the batch dimension, which is 1 in the current vLLM implementation.

@WoosukKwon WoosukKwon requested a review from zhuohan123 August 23, 2023 00:29
@WoosukKwon WoosukKwon changed the title Fix for breaking changes in xformers Fix for breaking changes in xformers 0.0.21 Aug 23, 2023
Copy link
Member

@zhuohan123 zhuohan123 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the fix!

self.num_heads,
padded_len,
prompt_len,
Copy link
Member

Choose a reason for hiding this comment

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

What is the reason for the change from padded_len to prompt_len here?

Copy link
Collaborator Author

@WoosukKwon WoosukKwon Aug 23, 2023

Choose a reason for hiding this comment

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

Good question. This is actually a right implementation to fulfill the alignment requirement in xformers. This will fix #795, #407, #468

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants