Repository navigation
[Bugfix][KV Connector] Mooncake store: register the committed blocks of an extensible KV cache - #65331
Merged
njhill merged 2 commits intoNov 4, 2026
Conversation
…of an extensible KV cache The store worker took its block count from cache_config.num_gpu_blocks. An extensible KV cache creates the connector against the committed views before it updates that value, so registration split the views by the warmup size and failed. Use the block count of the connector's own kv_cache_config, as the rest of the worker does. Signed-off-by: Canlin <canlinguosdu@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gcanlin
requested review from
NickLucche,
wzhao18 and
xuechendi
as code owners
November 3, 2026 07:47
Contributor
Author
ivanium
approved these changes
Nov 4, 2026
Contributor
|
/ci run |
|
✅ @gcanlin, CI is now available for this PR.
|
|
✅ Triggered Buildkite CI #99764 for commit ℹ️ This PR is 89 commits behind upstream |
njhill
approved these changes
Nov 4, 2026
njhill
left a comment
Member
There was a problem hiding this comment.
Thanks @gcanlin
I have these suggested additional changes but they can be handled in a follow-on: njhill@73db856
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.
Overview
With the extensible KV cache (on by default since #56492),
MooncakeStoreConnectorfails at startup. Its worker splits each layer's view bycache_config.num_gpu_blocks, butextend_kv_cachecreates the connector against the committed views before it updates that value, sogroup_kernel_blocksasserts. The worker now takes the block count from its ownkv_cache_config, as the rest of the worker already does.No open PR covers this (searched for Mooncake + extensible KV cache). Related: #56492, #65225, #65137.
Validation
GLM-5.3-Flash, colocated DEP8 on 8x B200,
MooncakeStoreConnectorwith a standalone store (1.3 TB DRAM plus a 6 TiB SSD tier), real MTP 5. Image nightlye0d00e4b8ewith this change applied:AssertionErroringroup_kernel_blocks--disable-extensible-kv-cache)Needle read-back: 16 contexts of about 20K tokens with 800 locker codes each. Each context is asked one code on a cold store, then the same code and a new one after the load.
The new unit test fails without the fix and passes with it. The rest of
test_mooncake_store_worker.py,test_mooncake_store_connector.pyandtest_mooncake_store_hma_e2e.pygive the same results with and without it.AI assistance (Claude Code) was used to find the cause, write the change and run the tests above.
🤖 Generated with Claude Code