[Bug Fix] Fix MambaManager.cache_blocks() crash on null blocks in align mode (#34418)

Signed-off-by: haosdent <haosdent@gmail.com>
This commit is contained in:
haosdent
2026-02-13 00:13:22 -08:00
committed by GitHub
parent 7a8a46ddcb
commit 4137c5dfa7
2 changed files with 48 additions and 0 deletions
@@ -1000,6 +1000,8 @@ class MambaManager(SingleTypeKVCacheManager):
for block in self.req_to_blocks[request.request_id][
num_cached_blocks_before:num_cached_blocks_after
]:
if block.is_null:
continue
assert block.block_hash is not None
self.cached_blocks_this_step.add(block.block_hash)