Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zhaoyu6
sglang
Commits
b361750a
"vscode:/vscode.git/clone" did not exist on "4c3fa875e606de285ceccbef53476ebebc7188e4"
Unverified
Commit
b361750a
authored
Sep 01, 2025
by
huangtingwei
Committed by
GitHub
Sep 01, 2025
Browse files
Mooncake store get zero copy meta optimization (#9857)
parent
16e56ea6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
python/sglang/srt/mem_cache/memory_pool_host.py
python/sglang/srt/mem_cache/memory_pool_host.py
+2
-0
No files found.
python/sglang/srt/mem_cache/memory_pool_host.py
View file @
b361750a
...
...
@@ -467,6 +467,7 @@ class MHATokenToKVPoolHost(HostKVCache):
ptr_list
=
[]
key_list
=
[]
kv_buffer_data_ptr
=
self
.
kv_buffer
.
data_ptr
()
indices
=
indices
.
tolist
()
v_offset
=
(
self
.
layer_num
*
self
.
size
...
...
@@ -706,6 +707,7 @@ class MLATokenToKVPoolHost(HostKVCache):
ptr_list
=
[]
key_list
=
[]
kv_buffer_data_ptr
=
self
.
kv_buffer
.
data_ptr
()
indices
=
indices
.
tolist
()
for
index
in
range
(
0
,
len
(
indices
),
self
.
page_size
):
k_ptr
=
(
kv_buffer_data_ptr
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment