-
Notifications
You must be signed in to change notification settings - Fork 121
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
Add kv state cache module. #1777
Merged
Merged
Conversation
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
- support kv state cache on local machine - implement cache object / cache block object - support api of query and update for cache access - using radix tree to store token list as key - seal cache object to vineyard - serialize / deserialize radix tree - build / resolve cache object Working on #1708 and #1712. Signed-off-by: vegetableysm <[email protected]> Signed-off-by: Ye Cao <[email protected]> Co-authored-by: Ye Cao <[email protected]> Co-authored-by: Ye Cao <[email protected]>
…zation of radix subtree. (#1730) Signed-off-by: Ye Cao <[email protected]>
Signed-off-by: vegetableysm <[email protected]>
- Add timestamp for node - Support merge two radix tree - Support merge cache object - Refactor the framework of cache object, cache block object and radix tree - Fix error of setting sub_tree flag, as well as some derived bugs caused by the error - Format the code to an unified style Signed-off-by: vegetableysm <[email protected]>
- Support merge cache object with radix tree. - Use cache version to control merge process. Signed-off-by: vegetableysm <[email protected]>
What do these changes do? ------------------------- As titled. Related issue number -------------------- Fixes #1743 Signed-off-by: Ye Cao <[email protected]>
Fixes #1732 Signed-off-by: vegetableysm <[email protected]>
Fixes #1747 Signed-off-by: Ye Cao <[email protected]>
Signed-off-by: Ye Cao <[email protected]>
Fixes #1742 Signed-off-by: vegetableysm <[email protected]>
Signed-off-by: vegetableysm <[email protected]>
Fixes #1773 Signed-off-by: vegetableysm <[email protected]>
…and deserialization (#1771) Signed-off-by: Ye Cao <[email protected]>
Fixes #1770 Signed-off-by: Ye Cao <[email protected]>
vegetableysm
force-pushed
the
kv-state-cache
branch
from
February 28, 2024 06:04
9727098
to
9f6a64e
Compare
sighingnow
requested changes
Feb 28, 2024
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.
Rename the directory kv-state-cache
to llm-cache
.
Move tests/test_state_cache*.cc to modules/llm-cache/tests/
.
Signed-off-by: Ye Cao <[email protected]>
vegetableysm
force-pushed
the
kv-state-cache
branch
3 times, most recently
from
February 28, 2024 07:55
ed95e24
to
51f8c27
Compare
sighingnow
approved these changes
Feb 28, 2024
Signed-off-by: vegetableysm <[email protected]>
vegetableysm
force-pushed
the
kv-state-cache
branch
from
February 28, 2024 08:14
51f8c27
to
5c12567
Compare
Signed-off-by: vegetableysm <[email protected]>
Ping me when it becomes ready for merging. |
Signed-off-by: vegetableysm <[email protected]>
Fix bug of persist retry. Signed-off-by: vegetableysm <[email protected]>
…#1779) Signed-off-by: Ye Cao <[email protected]>
mengke-mk
approved these changes
Feb 29, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What do these changes do?
Support store kv cache into vineyard.
Share kv cache between different vineyardd.