Skip to content
4 changes: 2 additions & 2 deletions python/sglang/srt/mem_cache/hi_mamba_radix_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def write_backup(self, node: TreeNode, write_back=False):
extra_pools=extra_pools,
)
if host_indices is not None:
node.host_value = host_indices
node.host_value = host_indices.clone()
if extra_pools is not None:
self.mamba_backup_commit(node, extra_pools)
assert len(node.host_value) > 0
Expand Down Expand Up @@ -2044,7 +2044,7 @@ def mamba_backup_commit(
return
host_indices = transfers[0].host_indices
if node.mamba_host_value is None and host_indices is not None:
node.mamba_host_value = host_indices
node.mamba_host_value = host_indices.clone()
self.mamba_host_lru_list.insert_mru(node)

def mamba_archive_transfers(self, node: TreeNode) -> Optional[list[PoolTransfer]]:
Expand Down
2 changes: 1 addition & 1 deletion python/sglang/srt/mem_cache/hiradix_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ def write_backup(self, node: TreeNode, write_back=False):
node_id=node.id,
)
if host_indices is not None:
node.host_value = host_indices
node.host_value = host_indices.clone()
assert len(node.host_value) > 0
self.ongoing_write_through[node.id] = node
if not write_back:
Expand Down
Loading