-
Notifications
You must be signed in to change notification settings - Fork 478
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
Extend paged attention to support query_len>1 #8328
Conversation
page_indices, # [batch_size, pages_per_sequence] | ||
num_kv_pages_per_compute_block, | ||
num_queries_per_compute_block, | ||
use_kernel=True, |
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.
hey @WoosukKwon, this is the integration point between vLLM and torch_xla. I'm thinking if vLLM can switch this flag use_kernel
perhaps by using some flags. I want to use the nonkernel version as a per baseline. Do you know if it possible?
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.
For dynamo, it's similar. The integration point is at def multi_queries_paged_attention_xla(
in the same file.
This PR extends the existing paged attention kernel to support query_len>1. Additionally, it upgrades the flash attention from v1 to v2.
Test plan:
cc: @miladm