Skip to content

[Bugfix] restore MLA notif request_id accidentally reverted in #40731#41975

Closed
ZhanqiuHu wants to merge 1 commit into
vllm-project:mainfrom
ZhanqiuHu:fix/mla-notif-req-id
Closed

[Bugfix] restore MLA notif request_id accidentally reverted in #40731#41975
ZhanqiuHu wants to merge 1 commit into
vllm-project:mainfrom
ZhanqiuHu:fix/mla-notif-req-id

Conversation

@ZhanqiuHu

@ZhanqiuHu ZhanqiuHu commented May 7, 2026

Copy link
Copy Markdown
Contributor

Purpose

Restore the fix from #40449 that was accidentally reverted during the refactor in #40731.

In _read_blocks_for_req, when MLA is enabled and P_TP > D_TP, the broadcast notification to non-reading P-ranks was using req_id (decode-side) instead of meta.remote.request_id (prefill-side). This caused "Potentially invalid KV blocks for unrecognized request" errors and eventual timeout-based block release on skipped P-ranks.

Fixes #41974

…roject#40731

PR vllm-project#40449 fixed the MLA broadcast notification to use
`meta.remote.request_id` (the prefill-side id) instead of
`req_id` (the decode-side id). The refactor in vllm-project#40731
inadvertently reverted this back to `req_id`, causing
"Potentially invalid KV blocks for unrecognized request"
errors on non-reading P-ranks when P_TP > D_TP.

Fixes vllm-project#41974

Signed-off-by: Zhanqiu Hu <zhanqiuhu@gmail.com>

@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 May 7, 2026

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates the notif_id generation within the _read_blocks_for_req method in the NIXL worker. It ensures that the remote request ID from the metadata is used instead of the local request ID when notifying other ranks in MLA configurations. There were no review comments provided, so I have no feedback to offer.

@ZhanqiuHu

Copy link
Copy Markdown
Contributor Author

duplicate

@ZhanqiuHu ZhanqiuHu closed this May 7, 2026
@ZhanqiuHu ZhanqiuHu deleted the fix/mla-notif-req-id branch June 4, 2026 17:44
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.

"[Bugfix] release KV blocks for skipped P-ranks ..." accidentally reverted during rebase

1 participant