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
3fadc647
Unverified
Commit
3fadc647
authored
Apr 02, 2025
by
Zhiqiang Xie
Committed by
GitHub
Apr 02, 2025
Browse files
bug fix for hicache host eviction (#4989)
parent
e119f042
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/sglang/srt/mem_cache/hiradix_cache.py
python/sglang/srt/mem_cache/hiradix_cache.py
+2
-2
No files found.
python/sglang/srt/mem_cache/hiradix_cache.py
View file @
3fadc647
...
@@ -205,9 +205,9 @@ class HiRadixCache(RadixCache):
...
@@ -205,9 +205,9 @@ class HiRadixCache(RadixCache):
# only evict the host value of evicted nodes
# only evict the host value of evicted nodes
if
not
x
.
evicted
:
if
not
x
.
evicted
:
continue
continue
assert
x
.
lock_ref
==
0
and
x
.
host_value
is
not
None
assert
self
.
cache_controller
.
evict_host
(
x
.
host_value
)
>
0
num_evicted
+=
self
.
cache_controller
.
evict_host
(
x
.
host_value
)
for
k
,
v
in
x
.
parent
.
children
.
items
():
for
k
,
v
in
x
.
parent
.
children
.
items
():
if
v
==
x
:
if
v
==
x
:
break
break
...
...
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