[Core] add remove_seq_from_computed_blocks_tracker to BlockSpaceManager (#19686)

Signed-off-by: 刘全 <quan.liu2@dbappsecurity.com.cn>
Co-authored-by: 刘全 <quan.liu2@dbappsecurity.com.cn>
This commit is contained in:
quanliu 2025-06-17 12:40:58 +08:00 committed by GitHub
parent ddfed314f9
commit 5c76b9cdaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -133,3 +133,7 @@ class BlockSpaceManager(ABC):
@abstractmethod
def get_num_cached_tokens(self, seq: Sequence) -> int:
pass
@abstractmethod
def remove_seq_from_computed_blocks_tracker(self, seq: Sequence) -> None:
pass

View File

@ -98,3 +98,6 @@ class PlaceholderBlockSpaceManager(BlockSpaceManager):
def get_num_cached_tokens(self, seq: Sequence) -> int:
return 0
def remove_seq_from_computed_blocks_tracker(self, seq: Sequence) -> None:
return