From 56eb5d0a3d60857fd597edec3de692d5d5347ff2 Mon Sep 17 00:00:00 2001 From: Xinyuan Tong <115166877+JustinTong0323@users.noreply.github.com> Date: Wed, 3 Sep 2025 18:42:12 +0000 Subject: [PATCH] fix swa clear(): rename is_in_free_group to is_not_in_free_group (#9914) --- python/sglang/srt/mem_cache/allocator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/sglang/srt/mem_cache/allocator.py b/python/sglang/srt/mem_cache/allocator.py index 8be1be85a..497331673 100644 --- a/python/sglang/srt/mem_cache/allocator.py +++ b/python/sglang/srt/mem_cache/allocator.py @@ -283,7 +283,7 @@ class SWATokenToKVPoolAllocator(BaseTokenToKVPoolAllocator): self.swa_attn_allocator.clear() self.full_attn_allocator.clear() self.full_to_swa_index_mapping.fill_(0) - self.is_in_free_group = False + self.is_not_in_free_group = True self.free_group = []