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
change
sglang
Commits
b361750a
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
Show 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):
...
@@ -467,6 +467,7 @@ class MHATokenToKVPoolHost(HostKVCache):
ptr_list
=
[]
ptr_list
=
[]
key_list
=
[]
key_list
=
[]
kv_buffer_data_ptr
=
self
.
kv_buffer
.
data_ptr
()
kv_buffer_data_ptr
=
self
.
kv_buffer
.
data_ptr
()
indices
=
indices
.
tolist
()
v_offset
=
(
v_offset
=
(
self
.
layer_num
self
.
layer_num
*
self
.
size
*
self
.
size
...
@@ -706,6 +707,7 @@ class MLATokenToKVPoolHost(HostKVCache):
...
@@ -706,6 +707,7 @@ class MLATokenToKVPoolHost(HostKVCache):
ptr_list
=
[]
ptr_list
=
[]
key_list
=
[]
key_list
=
[]
kv_buffer_data_ptr
=
self
.
kv_buffer
.
data_ptr
()
kv_buffer_data_ptr
=
self
.
kv_buffer
.
data_ptr
()
indices
=
indices
.
tolist
()
for
index
in
range
(
0
,
len
(
indices
),
self
.
page_size
):
for
index
in
range
(
0
,
len
(
indices
),
self
.
page_size
):
k_ptr
=
(
k_ptr
=
(
kv_buffer_data_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