Repository navigation
[Wheel] Support DataProto matrix partial reads - #3567
Merged
stmatengss merged 8 commits intoSep 23, 2026
Merged
Conversation
zxpdemonio
requested review from
ShangmingCai,
UNIDY2002,
alogfans,
staryxchen,
stmatengss and
ykwd
as code owners
August 21, 2026 04:58
This was referenced Aug 24, 2026
Collaborator
Author
|
@stmatengss @yokinoshitayoki Could you please help review this PR? In particular, feedback on the DataProto matrix partial-read semantics and compatibility would be appreciated. Thanks! |
Collaborator
|
@zxpdemonio I tried to rerun these two checks but still failed. Could you take a look? |
…rix-read * origin/main: (202 commits) [Reshard] Add KV cache reshard planning (kvcache-ai#3564) [Store] Release GIL during client setup (kvcache-ai#3947) [TENT] Export EGM host memory over multi-node NVLink (opt-in) (kvcache-ai#3978) [EP] Support NCCL ElasticBuffer recovery after rank replacement (kvcache-ai#3963) [TransferEngine] Prefer THP for shared-segment mmap without a HugeTLB pool (kvcache-ai#3952) [TransferEngine] Add POSIX SHM transport for same-host DRAM copies (kvcache-ai#3918) [Store] Sweep stale handles in bounded write-lock batches (kvcache-ai#3593) [Store] Add recoverable client liveness and asynchronous offboarding (kvcache-ai#2991) [Store] Wire opt-in batch OpLog snapshots into standby runtime (kvcache-ai#3950) [Store] Structure CxlSegmentConfig environment settings (kvcache-ai#3967) [Store] Structure ClientNumaConfig environment settings (kvcache-ai#3966) [Store] Structure MmapArenaConfig environment settings (kvcache-ai#3956) [Store] Structure NoFRegisterConfig environment settings (kvcache-ai#3949) [Store] Structure NvmeKvConnectorConfig environment settings (kvcache-ai#3948) [Store] Introduce SegmentPool catalog and lifecycle (kvcache-ai#3705) TENT: deliver self-targeted notifications in-process (kvcache-ai#3464) [Integration] Fail Python init when allocator support is unavailable (kvcache-ai#2404) [Py] Fix batch_id leak on timeout and submit failure paths (kvcache-ai#2350) [Bugfix][TransferEngine] Export the requested range for dma-buf registration under CUDA VMM (fixes kvcache-ai#2511) (kvcache-ai#3538) [Store] Validate DummyClient registration of external pinned buffers (kvcache-ai#3712) ...
zxpdemonio
requested review from
Aionw,
Ann-1024 and
luketong777
as code owners
September 10, 2026 09:47
12 of 16 tasks
Aionw
approved these changes
Sep 10, 2026
ykwd
approved these changes
Sep 10, 2026
yokinoshitayoki
approved these changes
Sep 10, 2026
Signed-off-by: Teng Ma <stmatengss@gmail.com>
stmatengss
approved these changes
Sep 23, 2026
9 of 13 tasks
8 of 36 tasks
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.
Description
Add partial matrix reads for dense two-dimensional DataProto
batchfields.The public
batch_slicesmapping selects a column slice per field and composeswith the existing
rowsselection. A single M x N implementation covers rowbatches, column batches, and general submatrices without separate code paths.
The implementation:
get_into_rangescall across selectedfields, DataProto stages, and payload chunks;
sliced shape;
DataProto result have been constructed successfully;
the request exceeds the range or physical-fragment limits.
The fast path guarantees one batched ranged call. The fallback is intentionally
whole-request and does not guarantee a single backend call; this keeps the
destination commit semantics and the hot path small. Logical ranges are capped
per field, while physical fragments are capped at 4096 across the entire
batched request before BufferPool allocation.
The append write path is unchanged. Dense matrix fields added through
append_dataproto_fields()are resolved from their existing stage refs and canparticipate in the same batched partial read.
Module
mooncake-transfer-engine)mooncake-store)mooncake-reshard)mooncake-ep)mooncake-pg)mooncake-integration)mooncake-p2p-store)mooncake-wheel)mooncake-common)mooncake-rl)Type of Change
How Has This Been Tested?
Test commands:
Test results:
atomicity 3 passed; append regression 1 passed
The broader structured-object suite completed with 90 passed and 28 skipped.
Three native fast-copy PUT tests fail because the installed
_concat_arrays_intoextension returns zero bytes. The same three tests failidentically on current
mainat266a966b.Ruff check and format validation pass for both new files.
py_compileandgit diff --checkpass for all changed Python files. Full-fileruff-formatwas not applied to the existing legacy files because it rewrites hundreds of
unrelated lines.
Checklist
./scripts/code_format.shproduction additions, 417 including documentation)
AI Assistance Disclosure
Codex was used to help implement, simplify, review, and validate the change.
The human submitter is responsible for reviewing and defending the final code.