Skip to content

Deduplicate lockstep MLA pending job cleanup - #11

Closed
procr1337 wants to merge 1 commit into
FujitsuPolycom:codex/upstream-mixed-mla-indexer-20260721from
procr1337:gilded-gnosis-fix-mla-offload2
Closed

Deduplicate lockstep MLA pending job cleanup#11
procr1337 wants to merge 1 commit into
FujitsuPolycom:codex/upstream-mixed-mla-indexer-20260721from
procr1337:gilded-gnosis-fix-mla-offload2

Conversation

@procr1337

Copy link
Copy Markdown

Lockstep MLA groups share physical block IDs, so a transfer job may contain the same block ID once per logical group. Iterate the deduplicated set of block IDs in _remove_pending_job() so each (block, job) pair is only removed once from the set-backed pending-job index, instead of crashing with KeyError on the second occurrence.

Fixes a KeyError in _remove_pending_job() observed when KV cache offloading (--kv-offloading-size) is enabled while serving GLM-5.2 (MLA + decode context parallelism), reproduced by
offload-fix-glm52/probe_gpu_cache.py.

Lockstep MLA groups share physical block IDs, so a transfer job may
contain the same block ID once per logical group. Iterate the
deduplicated set of block IDs in _remove_pending_job() so each
(block, job) pair is only removed once from the set-backed pending-job
index, instead of crashing with KeyError on the second occurrence.

Fixes a KeyError in _remove_pending_job() observed when KV cache
offloading (--kv-offloading-size) is enabled while serving GLM-5.2
(MLA + decode context parallelism), reproduced by
offload-fix-glm52/probe_gpu_cache.py.
@procr1337 procr1337 closed this Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant