[TRTLLM-11875][feat] BREAKING: MambaCacheManager based on KVCacheManagerV2 & agentic prefix caching - #16598
Conversation
|
/bot run |
|
PR_Github #60284 [ run ] triggered by Bot. Commit: |
|
PR_Github #60284 [ run ] completed with state
|
94db6dc to
6ffdf55
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #60398 [ run ] triggered by Bot. Commit: |
|
PR_Github #60398 [ run ] completed with state
|
73e76f7 to
f7770b5
Compare
|
PR_Github #61755 [ run ] triggered by Bot. Commit: |
|
/bot run |
|
PR_Github #61755 [ run ] completed with state
|
|
PR_Github #61797 [ run ] triggered by Bot. Commit: |
|
/bot run |
|
PR_Github #61797 [ run ] completed with state
|
|
PR_Github #61809 [ run ] triggered by Bot. Commit: |
|
/bot run |
|
PR_Github #61809 [ run ] completed with state
|
|
PR_Github #61815 [ run ] triggered by Bot. Commit: |
|
/bot run --disable-fail-fast |
|
PR_Github #61815 [ run ] completed with state
|
|
PR_Github #61830 [ run ] triggered by Bot. Commit: |
juney-nvidia
left a comment
There was a problem hiding this comment.
Approved from telemetry and API perspectives
|
/bot run --disable-fail-fast |
|
PR_Github #61830 [ run ] completed with state
|
|
PR_Github #61884 [ run ] triggered by Bot. Commit: |
|
/bot run --disable-fail-fast |
|
PR_Github #61884 [ run ] completed with state
|
|
PR_Github #61901 [ run ] triggered by Bot. Commit: |
|
/bot run --disable-fail-fast |
|
PR_Github #61901 [ run ] completed with state
|
|
PR_Github #61909 [ run ] triggered by Bot. Commit: |
|
/bot run --disable-fail-fast |
|
PR_Github #61909 [ run ] completed with state
|
|
PR_Github #61911 [ run ] triggered by Bot. Commit: |
|
PR_Github #61911 [ run ] completed with state
|
Description
This PR adds the KV-cache-manager V2 implementation for hybrid Mamba models and moves Mamba state reuse onto explicit snapshot boundaries.
Key changes:
MambaHybridCacheManagerV2, including recurrent-state allocation, replay, promotion, dynamic-tree capacity, and deterministic stochastic-rounding state.MambaStateConfigwith periodic and fixed-position snapshot policies. The legacymamba_state_cache_intervalremains accepted only as a deprecated config-file alias.This is an API/config migration: use
kv_cache_config.mamba_state_config.periodic_snapshot_intervalinstead ofkv_cache_config.mamba_state_cache_intervalin Python code.Test Coverage
Local validation after merging current
main:PR Checklist
Please review the following before submitting your PR:
PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.
PR follows TRT-LLM CODING GUIDELINES to the best of your knowledge.
Test cases are provided for new code paths (see test instructions).
If PR introduces API changes, an appropriate PR label is added, either
api-compatibleorapi-breaking. Forapi-breaking, includeBREAKINGin the PR title.Any new dependencies have been scanned for license and vulnerabilities.
CODEOWNERS is updated if ownership changes.
Documentation is updated as needed.
Update the TAVA architecture diagram if there is a significant design change.
The reviewers assigned automatically or manually are appropriate for the PR.
Please check this after reviewing the above items as appropriate for this PR.
GitHub Bot Help
To see a list of available CI bot commands, comment
/bot help.