Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/sglang/srt/mem_cache/hiradix_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ def evict_host(self, num_tokens: int):
# only evict the host value of evicted nodes
if not x.evicted:
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():
if v == x:
break
Expand Down
Loading