[V1] [Hybrid] Some additional clean-up in Mamba2 prefix caching (#26222)

Signed-off-by: Thomas Parnell <tpa@zurich.ibm.com>
This commit is contained in:
Thomas Parnell
2025-10-06 10:40:30 +08:00
committed by GitHub
parent d3c84297c3
commit 778f554157
4 changed files with 171 additions and 136 deletions
+1 -2
View File
@@ -584,8 +584,7 @@ class MambaManager(SingleTypeKVCacheManager):
# hit_length = len(hit_blocks_other_attn[0])
# * self.other_block_size
# so we insert dummy blocks at the beginning:
if i > 0:
computed.extend([block_pool.null_block] * i)
computed.extend([block_pool.null_block] * i)
computed.append(cached)
break # we just need the last match - early stopping