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
7c39e8a1
"vscode:/vscode.git/clone" did not exist on "9f2c9568f071bd45edd98d51cc7f1ebbb4ed5e73"
Unverified
Commit
7c39e8a1
authored
Jul 15, 2025
by
hzh0425
Committed by
GitHub
Jul 14, 2025
Browse files
Fix Bug 'get_cpu_copy not Implemented' in pd offloading mode (#7982)
parent
d969504d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
python/sglang/srt/mem_cache/allocator.py
python/sglang/srt/mem_cache/allocator.py
+6
-0
No files found.
python/sglang/srt/mem_cache/allocator.py
View file @
7c39e8a1
...
...
@@ -526,6 +526,12 @@ class PagedTokenToKVPoolAllocator(BaseTokenToKVPoolAllocator):
self
.
is_not_in_free_group
=
True
self
.
free_group
=
[]
def
get_cpu_copy
(
self
,
indices
):
return
self
.
_kvcache
.
get_cpu_copy
(
indices
)
def
load_cpu_copy
(
self
,
kv_cache_cpu
,
indices
):
return
self
.
_kvcache
.
load_cpu_copy
(
kv_cache_cpu
,
indices
)
def
alloc_extend_kernel_ascend
(
prefix_lens
,
...
...
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