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
bcc5ba94
Unverified
Commit
bcc5ba94
authored
Jul 11, 2025
by
Ying Sheng
Committed by
GitHub
Jul 11, 2025
Browse files
[minor fix] SWA missing methods (#7972)
parent
cee9f329
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
python/sglang/srt/mem_cache/memory_pool.py
python/sglang/srt/mem_cache/memory_pool.py
+10
-0
No files found.
python/sglang/srt/mem_cache/memory_pool.py
View file @
bcc5ba94
...
@@ -602,6 +602,16 @@ class SWAKVPool(KVCache):
...
@@ -602,6 +602,16 @@ class SWAKVPool(KVCache):
layer_id_override
=
layer_id_pool
,
layer_id_override
=
layer_id_pool
,
)
)
def
load_from_host_per_layer
(
self
,
host_pool
,
host_indices
,
device_indices
,
layer_id
,
io_backend
):
raise
NotImplementedError
(
"HiCache not supported for SWAKVPool."
)
def
backup_to_host_all_layer
(
self
,
host_pool
,
host_indices
,
device_indices
,
io_backend
):
raise
NotImplementedError
(
"HiCache not supported for SWAKVPool."
)
class
AscendTokenToKVPool
(
MHATokenToKVPool
):
class
AscendTokenToKVPool
(
MHATokenToKVPool
):
...
...
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