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
02543b54
You need to sign in or sign up before continuing.
Unverified
Commit
02543b54
authored
Jun 12, 2025
by
sogalin
Committed by
GitHub
Jun 11, 2025
Browse files
Fix misusing the "_is_cuda". (#7091)
parent
25a6a9aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/mem_cache/memory_pool.py
python/sglang/srt/mem_cache/memory_pool.py
+1
-1
No files found.
python/sglang/srt/mem_cache/memory_pool.py
View file @
02543b54
...
...
@@ -267,7 +267,7 @@ class MHATokenToKVPool(KVCache):
self
.
layer_transfer_counter
=
None
self
.
device_module
=
torch
.
get_device_module
(
self
.
device
)
self
.
alt_stream
=
self
.
device_module
.
Stream
()
if
is_cuda
else
None
self
.
alt_stream
=
self
.
device_module
.
Stream
()
if
_
is_cuda
else
None
k_size
,
v_size
=
self
.
get_kv_size_bytes
()
logger
.
info
(
...
...
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