diff --git a/python/sglang/srt/mem_cache/unified_cache_components/swa_component.py b/python/sglang/srt/mem_cache/unified_cache_components/swa_component.py index 306ad2996984..8c27e0c94d52 100644 --- a/python/sglang/srt/mem_cache/unified_cache_components/swa_component.py +++ b/python/sglang/srt/mem_cache/unified_cache_components/swa_component.py @@ -95,7 +95,7 @@ def finalize_match_result( ) -> MatchResult: ct = self.component_type n_swa = 0 - node = result.last_device_node + node = result.last_host_node root = self.cache.root_node while node is not root and n_swa < self.sliding_window_size: cd = node.component_data[ct]