Repository navigation
Conversation
G-haoyu
requested review from
ivanium,
orozery,
wzhao18 and
xuechendi
as code owners
October 30, 2026 05:17
G-haoyu
force-pushed
the
fix/nixl-region-alias-compatibility
branch
from
October 30, 2026 05:19
c9ab330 to
d3fa2cc
Compare
Contributor
|
This pull request has merge conflicts that must be resolved before it can be |
Keep exact-length aliases intact while allowing shorter non-MLA views to reuse only compatible packed whole-row regions. Wider views and incompatible scratch layouts remain separate to avoid truncation and region-shape regressions. Co-authored-by: Codex <noreply@openai.com> Signed-off-by: 葛昊宇 <haoyu_ge@intsig.net>
G-haoyu
force-pushed
the
fix/nixl-region-alias-compatibility
branch
from
October 31, 2026 11:00
d3fa2cc to
899b088
Compare
Contributor
Author
|
I also re-ran the targeted tests after rebasing:
|
6 tasks done
This branch has not been deployed
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
Follow-up to #57662, addressing the packed DeepSeek-V4.1 alias regression that remained after region deduplication was keyed by
(base_addr, block_len). The fix keeps aliases that are genuinely compatible together while preserving separate regions where a fold could truncate data.Related issue: #57661.
Claims
test_register_packed_dsv4_mla_cache_as_single_region[v41-aliased-groups], without introducing failures in the exercised NIXL unit suites.Validation
The same source-covered nightly container was used for both versions. The original mainline and this fix branch were compared by changing only
base_worker.py.Primary NIXL connector suites (
test_nixl_connector.py,test_nixl_desc_geometry.py,test_nixl_connector_hma.py,test_nixl_push_connector.py, andtest_tp_mapping.py):The fix branch resolves
test_register_packed_dsv4_mla_cache_as_single_region[v41-aliased-groups]. There were no fix-only failures. The four remaining failures were identical between versions: twotest_abort_timeout_on_prefillercases because Ray is unavailable in the container, and two compatibility-hash validation cases unrelated to region registration.Ten additional NIXL-related suites were run:
bidirectional_kv_transfer,config,mooncake_connector,multi_connector,nixl_heartbeat,nixl_rocm_gpu_mem_diag,nixl_simple_cpu_offload,remote_prefill_lifecycle,simple_cpu_offload_connector, andv1/worker/test_gpu_kv_connector.The failure sets were identical. They are environment/dependency failures in Mooncake, configuration, and multi-connector tests and are not affected by this change. Across all 15 runnable NIXL-related files, the fix branch introduced no new failures.
The six
nixl_integrationsuites were not run because the current environment has no GPU/model setup or running prefill/decode services. End-to-end P/D validation for DeepSeek-V4.1-Flash remains outstanding; community members with a P/D deployment are invited to verify transfer correctness and packed-layout behavior.Details
Root cause
register_kv_cachesbuilds the region table consumed by both sides of a NIXL transfer:The
(base_addr, block_len)key added by #57662 correctly prevents that truncation. Treating every alias as incompatible, however, breaks an established packed-MLA whole-row layout: shorter views in the same packed row are intentionally covered by the row region. A universal(base_addr, block_len, block_stride, num_blocks)key also splits hybrid MLA and CSA-linear views whose kernel-granularity metadata differs even though their transfer region is intentionally shared.Design
The implementation records whether each region came from the packed whole-row path and uses a small compatibility helper at registration time:
This keeps the special case local to region registration and avoids a growing list of model-specific conditions. The alternative approaches were rejected because base-address-only deduplication reintroduces truncation, a universal geometry key regresses hybrid MLA layouts, and generic shorter-view coverage incorrectly absorbs scratch/CSA pages. Removing the packed whole-row path would avoid the ambiguity by losing the descriptor reduction it provides for packed MLA storage.
Scope and limitations
This is a metadata/descriptor-registration fix; it does not change the NIXL wire format or add synchronization to the inference path. It is intended to be compatible with the per-group region addressing from #62317. No user-visible API or documentation change is required.
This PR is a follow-up to #57662, not a duplicate of #61121. #61121 changes which DeepSeek-V4.1 layouts enter the packed-MLA whole-row path; this PR fixes the compatibility rules for aliases after region deduplication and preserves the behavior of existing hybrid/scratch layouts.
AI assistance
AI assistance was used for root-cause analysis, implementation, and test analysis. The submitter reviewed the changed lines and performed the validation reported above.
Pull Request Checklist
I used vLLM's
/pr-checklistskill. (Mandatory for agents, optional for humans).AI assistance was used during the creation of this PR.
Design Fit: The change is localized to NIXL region registration, reuses existing metadata, and documents the compatibility rules and trade-offs.
Testing and Validation: The fix was compared against the original mainline across 15 runnable NIXL-related unit files; no fix-only failures were observed. P/D integration validation is documented as unavailable in the current environment.
Code Quality and Style: The change preserves existing interfaces and formatting; no user-visible API or documentation update is needed.
Pull Request Contents: The description includes the predecessor PR, duplicate-work check, root cause, implementation details, validation evidence, limitations, and AI assistance disclosure.