Repository navigation
Conversation
Signed-off-by: peihengh <259410613+peihu-nv@users.noreply.github.com>
Collaborator
Author
|
/bot run |
Collaborator
|
PR_Github #76785 [ run ] triggered by Bot. Commit: |
1 task done
Collaborator
|
PR_Github #76785 [ run ] completed with state
|
Signed-off-by: peihengh <259410613+peihu-nv@users.noreply.github.com>
Collaborator
Author
|
/bot run --disable-fail-fast |
Collaborator
|
PR_Github #76808 [ run ] triggered by Bot. Commit: |
Collaborator
|
PR_Github #76808 [ run ] completed with state
|
This branch has not been deployed
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
Generic retention foundation only; serving integration remains. K3’s integrated implementation is in internal Rubin-advance MR !10793; the required merge-back and main port are still pending.
Private turn checkpoints can accumulate across cache owners, while a local per-worker limit cannot safely reclaim checkpoints used by another owner. This adds a model-independent retention catalog, optional job-scoped HTTP coordinator, and a transfer-lifecycle adapter. The adapter pins before lookup or transfer, prepares an immutable private-key manifest before saving, and publishes ownership only after the producer confirms successful completion and retirement. Collection preserves referenced or pinned checkpoints and never includes shared attention pages.
The policy retains the last N distinct turns in first successful publication order, not logical conversation order. Uncertain transfers leave durable pins; ambiguous deletion quarantines the endpoint. The coordinator is intended for a trusted job network and must restart with a fresh epoch and Store namespace.
Draft scope: core and lifecycle adapter only. This is a companion foundation for #19171, but has no code dependency on its unmerged changes, so the diff targets
maindirectly. The attention-only connector does not yet produce private checkpoints. K3/SWA producers, serving integration, native buffer retirement integration, and GPU/RDMA qualification remain follow-up work. No serving flag is added and no throughput or memory-saving result is claimed.Expired-turn identities now survive ledger eviction, so late duplicate publications cannot displace newer turns. Catalog schema 2 requires a fresh job namespace; old catalogs are rejected because their expiry history cannot be recovered. Small expiry records persist for the job lifetime. Transfer pins and shared checkpoint references retain their existing behavior.
Test Coverage
test_mooncake_store_retention.py,test_mooncake_store_retention_rpc.py, andtest_mooncake_checkpoint_lifecycle.py, undertests/unittest/_torch/executor/. Theircpu_onlymarkers place them under the existing CPU-Generic executor registration.pytest -c /dev/null --noconftest -p no:cacheproviderwith a test-only package bootstrap that bypasses TRT-LLM/CUDA initialization while importing the real changed modules. Standard package initialization and the full repository harness await CI.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 updated if ownership changes
Documentation updated as needed
Update tava architecture diagram if there is a significant design change in PR.
The reviewers assigned automatically/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, please comment
/bot help.