-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add TriePagedAttentionCache with initial implementation Added TriePagedAttentionCache as an optional prefix sharing algorithm, selectable via: `config["paged_kv_cache"]["prefix_sharing_algorithm"] = "trie"` Current Status: - Basic implementation and unit tests complete - Integration test cases for both Base and Trie implementations, with trie implementation xfailed due to pending cache allocation improvements - BasePagedAttentionCache remains the default Next Steps: To achieve full functionality, we need to support cache re-allocations to extend the associated tokens & pages.
- Loading branch information
Showing
10 changed files
with
943 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.