[None][feat] Add V2 Mamba hybrid cache with snapshot reuse#16471
Closed
VALLIS-NERIA wants to merge 8 commits into
Closed
[None][feat] Add V2 Mamba hybrid cache with snapshot reuse#16471VALLIS-NERIA wants to merge 8 commits into
VALLIS-NERIA wants to merge 8 commits into
Conversation
This was referenced Jul 16, 2026
Collaborator
Author
|
/bot run |
Collaborator
|
PR_Github #59619 [ run ] triggered by Bot. Commit: |
Signed-off-by: Xiwen Yu <13230610+VALLIS-NERIA@users.noreply.github.com>
Signed-off-by: Xiwen Yu <13230610+VALLIS-NERIA@users.noreply.github.com>
Collaborator
|
PR_Github #59619 [ run ] completed with state
|
Signed-off-by: Xiwen Yu <13230610+VALLIS-NERIA@users.noreply.github.com>
Signed-off-by: Xiwen Yu <13230610+VALLIS-NERIA@users.noreply.github.com>
Signed-off-by: Xiwen Yu <13230610+VALLIS-NERIA@users.noreply.github.com>
Signed-off-by: Xiwen Yu <13230610+VALLIS-NERIA@users.noreply.github.com>
Signed-off-by: Xiwen Yu <13230610+VALLIS-NERIA@users.noreply.github.com>
1461b2d to
149013b
Compare
Collaborator
Author
|
/bot run |
Collaborator
|
PR_Github #59668 [ run ] triggered by Bot. Commit: |
Signed-off-by: Xiwen Yu <13230610+VALLIS-NERIA@users.noreply.github.com>
149013b to
0ff3a34
Compare
Collaborator
Author
|
Reopened as a stacked draft at VALLIS-NERIA#8 so it can target the PR1 branch and show only its single squashed commit. Closing this upstream draft as superseded. |
Collaborator
|
PR_Github #59668 [ run ] completed with state
|
This file contains hidden or 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
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.
@coderabbitai summary
Description
This PR adds the V2 Mamba hybrid-cache core and snapshot reuse on top of the generic scheduler/resource-manager contracts in #16427.
The changes:
V2MambaHybridCacheManager, which stores attention KV blocks together with Mamba convolution and SSM state in KVCMv2-managed pools.This PR depends on #16427. GitHub cannot use a branch from a fork as the base of an upstream PR, so the draft diff temporarily includes #16427 until that PR merges and this branch is rebased. The commit-minimum integration formerly carried by this work is already available on
mainthrough #16185.Save-last snapshot reuse and V2 Mamba disaggregated transfer are intentionally split into follow-up PRs.
Test Coverage
pytest -q tests/unittest/_torch/executor/test_mamba_cache_manager.py(44 passed)pytest -q tests/unittest/_torch/executor/test_kv_cache_manager_v2.py(10 passed)pytest -q tests/unittest/kv_cache_manager_v2_tests/test_kv_cache_stats_behavior.py(18 passed)pytest -q tests/unittest/kv_cache_manager_v2_tests/test_kv_cache_manager_v2.py(102 passed; the one stale-config failure was fixed and its focused rerun passed)main(7 passed)pre-commit run --from-ref origin/main --to-ref HEADPR Checklist