[Bugfix][Core] Preserve Mamba running CoW after external hits (#51766)
Signed-off-by: Dao Le <Dao007forever@gmail.com> Co-authored-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
co-authored by
OpenAI Codex
parent
490259c1f6
commit
ce07118669
@@ -1559,6 +1559,7 @@ class MambaManager(SingleTypeKVCacheManager):
|
||||
# `num_required_blocks` might be less than `len(req_blocks)` if blocks are
|
||||
# over-allocated at last round.
|
||||
if num_required_blocks <= len(req_blocks) and not has_partial_hit:
|
||||
self._allocated_block_reqs.add(request_id)
|
||||
return []
|
||||
else:
|
||||
prev_block_len = len(req_blocks)
|
||||
|
||||
Reference in New Issue
Block a user