Skip to content

feat(mp): wire fine external chunks into vLLM - #27

Open
myshytf wants to merge 2 commits into
local-inference-lab:release/v0.5.2-glm52-dcp-basefrom
myshytf:feat/dcp-fine-external-release
Open

myshytf wants to merge 2 commits into
local-inference-lab:release/v0.5.2-glm52-dcp-basefrom
myshytf:feat/dcp-fine-external-release

Conversation

@myshytf

@myshytf myshytf commented Aug 18, 2026

Copy link
Copy Markdown

Summary

  • add fine external-cache sub-block projection to the maintained GLM/Kimi DCP release branch
  • wire vLLM group metadata and external chunk geometry through the MP adapter
  • cover SHM and pickle store/retrieve paths end to end
  • preserve the branch's latest recurrent, MLA, and physical-cache-block fixes

Why

Kimi-K3 DCP8 uses a 12,288-token logical manager block while LMCache needs 1,536-token external objects. The release branch requires both the generic projection core and vLLM adapter metadata; either half alone is not functional.

Validation

Source-matched NO_GPU_EXT=1 run:

  • tests/v1/multiprocess/test_dcp_fine_external_chunks.py
  • tests/v1/test_lmcache_mp_connector_fine_chunks.py
  • tests/v1/test_kv_cache_groups.py
  • tests/v1/test_vllm_mp_adapter.py
  • result: 72 passed

Also passed focused ruff check, ruff format --check, static security scan, and git diff --check.

Compatibility

Coarse chunks retain identity block IDs and the pre-existing skip behavior. Fine projection activates only when explicit group geometry proves an exact integer subdivision. Invalid or incomplete geometry fails before SHM slot reservation.

Add fine sub-block projection and carry external chunk geometry from the
vLLM adapter into engine-driven SHM and pickle transfers. Preserve coarse
identity behavior and fail before slot reservation on invalid geometry.

Co-authored-by: Hermes Agent <hermes-agent@nousresearch.com>
Signed-off-by: myshytf <9619163+myshytf@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Aug 18, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • dev/*

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 59702200-0c18-4c3a-856b-d293f9d0160f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Avoid applying a whole-dict fused-attention layout detector to mixed rank-4 attention and rank-3 Mamba tensors. Preserve the legacy physical-block check for homogeneous and single-group registrations while delegating multigroup validation to the existing per-group engine-driven context.

Signed-off-by: myshytf <9619163+myshytf@users.noreply.github.com>
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