diff --git a/python/sglang/srt/mem_cache/hiradix_cache.py b/python/sglang/srt/mem_cache/hiradix_cache.py index f939fff4b2cf..c23ed1e436ca 100644 --- a/python/sglang/srt/mem_cache/hiradix_cache.py +++ b/python/sglang/srt/mem_cache/hiradix_cache.py @@ -559,13 +559,11 @@ def _match_prefix_helper(self, node: TreeNode, key: List): prefix_len = self.key_match_fn(child.key, key) if prefix_len < len(child.key): new_node = self._split_node(child.key, child, prefix_len) - self.inc_hit_count(new_node) if not new_node.evicted: value.append(new_node.value) node = new_node break else: - self.inc_hit_count(child) if not child.evicted: value.append(child.value) node = child