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

[KVCache] Add tree attention with paged cache support #17326

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

vinx13
Copy link
Member

@vinx13 vinx13 commented Sep 2, 2024

This adds support for tree attention with tokens in the kv cache. KVCache is now stateful w.r.t the tree state, multiple decoding rounds can be performed with tree mask and the accepted tokens can be committed at once at the end.

cc @MasterJH5574 @tqchen

@vinx13 vinx13 force-pushed the feat/tree-attn branch 2 times, most recently from 0e0ad43 to 619fefd Compare September 3, 2024 02:02
Copy link
Contributor

@MasterJH5574 MasterJH5574 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 enhancement!

@tqchen tqchen merged commit 8059c77 into apache:main Sep 3, 2024
18 of 19 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.

3 participants