Repository navigation
Conversation
41 of 42 tasks
5 tasks done
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.
Motivation
Kimi-K3.1 PCP currently replicates persistent DSA KV across ranks. Store each logical KV page and packed index page on its owner rank, then assemble the working prefix for TRTLLM DSA attention. This extends the existing page-sharded KV infrastructure to Kimi's hybrid attention, HiCache L2 and DFlash paths.
This PR targets
kimi-k3.1-day-0, the branch of #48414.Modifications
--kv-cache-sharding-scratch-size(GiB per GPU, default 10) to bound the two prefix-assembly buffers. Account for active prefixes, overlap and verification headroom in admission and retraction.Kimi requires interleave PCP across all TP ranks, PP1, attention DP1, DCP1, DFlash, TRTLLM DSA prefill/decode, FP8 E4M3 KV, page size 64 and the Python unified tree core. PD prefill additionally requires the DFlash draft KV ring. HiCache support is limited to compatible L2 modes; L3 storage remains unsupported. Model-weight precision is unchanged.
Accuracy Tests
git diff --checkpasses.Speed Tests and Profiling
Pending for this revision. No throughput or latency improvement is claimed. Keep this PR in draft until correctness and performance validation is complete.
Checklist
CI States
Latest PR Test (Base): ❌ Run #41932502087
Latest PR Test (Extra): ❌ Run #41932501942
Latest PR Test (AMD ROCm 10): ❌ Run #41932502132
Tip
Base CI only covers the core cases, and its workload may not exercise your change. Use
/rerun-testto run the tests your change touches, or copy this prompt for an agent: