-
Notifications
You must be signed in to change notification settings - Fork 3
[feat](PA): support pa_decode_gluon and refactor attention ops #42
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
base: main
Are you sure you want to change the base?
Conversation
| output_zeros=False, | ||
| ) | ||
| else: | ||
| if self.rotary_emb is not None: |
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.
this pass missed?
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.
yea, now we have model using reshape_and_cache_with_pertoken_quant ? if none, we don`t wanna introduce new dispatch or if else, if necessary, then we add it.
| self.reduce_indptr = reduce_indptr | ||
| self.reduce_final_map = reduce_final_map | ||
| self.reduce_partial_map = reduce_partial_map | ||
| if block_tables_converted is not None: |
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.
keep these..
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.
just someone deleted it when rebase main, I will recover it.
This PR integrates new paged attention triton kernel, it supports
sliding_windowandsinkparams. This PR also refactors attention layers with attention backend dispatch.the accuracy of gpt-oss in gsm8k dataset:
