Skip to content

[Bugfix] adjust_dcp_kv_cache_interleave_size for NixlConnector only - #54803

Merged
NickLucche merged 2 commits into
vllm-project:mainfrom
mistralai:fix-dcp-block-adjustment
Sep 2, 2026
Merged

NickLucche merged 2 commits into
vllm-project:mainfrom
mistralai:fix-dcp-block-adjustment

Conversation

@NickLucche

Copy link
Copy Markdown
Member

DCP kv block adjustment is not being gated on PD connector being present.
I like the alternative approach in #54457, but I think it might be slightly overkill: I do not expect the number of connectors to grow here.
Basically for PD this is a requirement ow block content gets fractioned and the unit of transfer is the block itself.

This PR simply gates the adjustment behind NixlConnector being present.
I would like to do "is_pd" here, but we have some interface work to do that reliably here.

added @cjackal as co-author as it reported the issue and I think the original fix was still valid

Co-authored-by: cjackal <44624812+cjackal@users.noreply.github.com>
Signed-off-by: NickLucche <nicolo.lucchesi@mistral.ai>

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@mergify mergify Bot added bug Something isn't working kv-connector labels Sep 1, 2026
@NickLucche

Copy link
Copy Markdown
Member Author

/ci run

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

✅ Triggered Buildkite CI #86650 for commit 24b39ac81f00.

@cjackal

cjackal commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Is it safe for other variants of nixlconnectors (nixlpush) or mooncake? Wonder if it is okay here just because we only support nixl pdd for dcp yet or the other PD connectors are inherently tokenwise transfer.

@GirasoleY

Copy link
Copy Markdown
Contributor

Actually I think we should not enforce cp_interleave_size to be block_size for P/D transfer.

Attention backend with native cp support always assume cp_interleave_size = 1 (https://github.com/flashinfer-ai/flashinfer/blob/v0.6.18/flashinfer/mla/_core.py#L3724-L3734) So we should fix the connector piece to support random interleave size.

@NickLucche

NickLucche commented Sep 2, 2026 •

Copy link
Copy Markdown
Member Author

Is it safe for other variants of nixlconnectors (nixlpush) or mooncake?

it's the only pd connector supporting it

So we should fix the connector piece to support random interleave size.

block is the minimal unit for pd, if you scatter tokens you need to read from all ranks all the times and reconstruct the block you actually need; so big no-no pd side

The parametrized MultiConnector case asserts on an info_once message that
the lru_cache in vllm.logger dedupes after the identical NixlConnector
param emits it first in the same process. Request the disable_log_dedup
fixture so both params observe the log record.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>

Signed-off-by: NickLucche <nicolo.lucchesi@mistral.ai>
@NickLucche

Copy link
Copy Markdown
Member Author

/ci run

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

✅ Triggered Buildkite CI #86832 for commit 753fcdd06368.

@ivanium ivanium left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Fixing a real issue and I think we can merge this first.

@NickLucche
NickLucche merged commit f81eb41 into vllm-project:main Sep 2, 2026
96 checks passed
mylibrar pushed a commit to tanyuqian/vllm that referenced this pull request Sep 3, 2026
…vllm-project#54803)

Signed-off-by: NickLucche <nicolo.lucchesi@mistral.ai>
Co-authored-by: cjackal <44624812+cjackal@users.noreply.github.com>
nvyutwu pushed a commit to nvyutwu/vllm that referenced this pull request Sep 13, 2026
…vllm-project#54803)

Signed-off-by: NickLucche <nicolo.lucchesi@mistral.ai>
Co-authored-by: cjackal <44624812+cjackal@users.noreply.github.com>
michael-gpu pushed a commit to practical-inference/vllm-ampere-extended that referenced this pull request Oct 20, 2026
…vllm-project#54803)

Signed-off-by: NickLucche <nicolo.lucchesi@mistral.ai>
Co-authored-by: cjackal <44624812+cjackal@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working kv-connector

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants