mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[PR #800] [CLOSED] [Store] Zero copy for Mooncake store get_tensor API #1832
Labels
No labels
ascend
auto-closed
bug
bug
CI/Build
Common
documentation
enhancement
feature request
good first issue
help wanted
high priority
MetaX
nightly-failure
pull-request
PyTorch Backend
question
RFC
Roadmap
stale
Store
Tests
Transfer Engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/Mooncake#1832
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/Mooncake/pull/800
Author: @jerrychenhf
Created: 9/2/2025
Status: ❌ Closed
Base:
main← Head:zero-copy-get-testor📝 Commits (4)
c834522Zero copy for Mooncake store get_tensor9b0a892Delete the data ptr if register buffer failed7cb518aCode formattingd84f466Correct log message📊 Changes
5 files changed (+93 additions, -17 deletions)
View changed files
📝
mooncake-integration/store/store_py.cpp(+6 -13)📝
mooncake-store/include/client_buffer.hpp(+11 -0)📝
mooncake-store/include/pybind_client.h(+3 -0)📝
mooncake-store/src/client_buffer.cpp(+10 -4)📝
mooncake-store/src/pybind_client.cpp(+63 -0)📄 Description
Fix #799
To realize zero copy, we allocated a new buffer after getting the total length. The buffer is registered directly to transfer engine to read data directly into the buffer. The buffer is returned with ownership transferred to the caller. It will be used to create the tensor. For any error cases, the buffer needs to be freed until it is used for tensor (numpy array).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.