Skip to content

Conversation

DwyaneShi
Copy link
Collaborator

Pull Request Description

This PR includes all the rest changes of the AIBrix KVCache feature.

  • L2Cache
  • KVCacheManager and GroupAwareKVCacheManager
  • Unit tests for L2Cache and KVCache managers
  • Add kvcache in release workflow

Related Issues

Resolves: #[Insert issue number(s)]

Important: Before submitting, please complete the description above and review the checklist below.


Contribution Guidelines (Expand for Details)

We appreciate your contribution to aibrix! To ensure a smooth review process and maintain high code quality, please adhere to the following guidelines:

Pull Request Title Format

Your PR title should start with one of these prefixes to indicate the nature of the change:

  • [Bug]: Corrections to existing functionality
  • [CI]: Changes to build process or CI pipeline
  • [Docs]: Updates or additions to documentation
  • [API]: Modifications to aibrix's API or interface
  • [CLI]: Changes or additions to the Command Line Interface
  • [Misc]: For changes not covered above (use sparingly)

Note: For changes spanning multiple categories, use multiple prefixes in order of importance.

Submission Checklist

  • PR title includes appropriate prefix(es)
  • Changes are clearly explained in the PR description
  • New and existing tests pass successfully
  • Code adheres to project style and best practices
  • Documentation updated to reflect changes (if applicable)
  • Thorough testing completed, no regressions introduced

By submitting this PR, you confirm that you've read these guidelines and your changes align with the project's contribution standards.

Haiyang Shi added 3 commits May 7, 2025 15:15
- L2Cache
- Unit test

Signed-off-by: Haiyang Shi <haiyang.shi@bytedance.com>
- KVCacheManager and GroupAwareKVCacheManager
- Unit tests

Signed-off-by: Haiyang Shi <haiyang.shi@bytedance.com>
Signed-off-by: Haiyang Shi <haiyang.shi@bytedance.com>
@DwyaneShi DwyaneShi force-pushed the haiyang/kvcache-l2cache-and-mgr branch from 8042e42 to a0d0fc7 Compare May 7, 2025 22:49
@@ -8,8 +8,6 @@ license-files = ["LICENSE"]
readme = "README.md"
repository = "https://github.com/vllm-project/aibrix/tree/main/python/aibrix_kvcache"
classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python 3.10 is not compatible? I see last PR 3.10 originally failed as well

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Last PR failed due to the fakeredis library (mocking redis server) used in testing the mete service module is not compatible with python 3.10, so I made pytest skip the related tests if using python 3.10.
  • In this PR, L2Cache uses asyncio.TaskGroup which is available since python 3.11. We could fix this compatibility issue in a separate PR.
  • itertools.batched is also not compatible with 3.10 and 3.11, found a quick way to fix it, will push the changes soon.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good

@DwyaneShi DwyaneShi force-pushed the haiyang/kvcache-l2cache-and-mgr branch from a0d0fc7 to 6b60874 Compare May 8, 2025 00:56
We use several modules available since python 3.11 in
L2Cache.

Signed-off-by: Haiyang Shi <haiyang.shi@bytedance.com>
@DwyaneShi DwyaneShi force-pushed the haiyang/kvcache-l2cache-and-mgr branch from 6b60874 to bc7ad67 Compare May 8, 2025 01:36
@DwyaneShi DwyaneShi merged commit 402c62c into vllm-project:main May 8, 2025
12 checks passed
Yaegaki1Erika pushed a commit to Yaegaki1Erika/aibrix that referenced this pull request Jul 23, 2025
…ject#1064)

* [Feature] AIBrix KVCache L2Cache Part3

- L2Cache
- Unit test

* [Feature] AIBrix KVCache Manager

- KVCacheManager and GroupAwareKVCacheManager
- Unit tests

* [CI]: add kvcache in release workflow

* [Chore] remove python 3.9 and 3.10

We use several modules available since python 3.11 in
L2Cache.

---------

Signed-off-by: Haiyang Shi <haiyang.shi@bytedance.com>
Co-authored-by: Haiyang Shi <haiyang.shi@bytedance.com>
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.

2 participants