mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-15 09:15:55 +08:00
[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:
parent
ddfed314f9
commit
5c76b9cdaf
@ -133,3 +133,7 @@ class BlockSpaceManager(ABC):
|
|||||||
@abstractmethod
|
@abstractmethod
|
||||||
def get_num_cached_tokens(self, seq: Sequence) -> int:
|
def get_num_cached_tokens(self, seq: Sequence) -> int:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def remove_seq_from_computed_blocks_tracker(self, seq: Sequence) -> None:
|
||||||
|
pass
|
||||||
@ -98,3 +98,6 @@ class PlaceholderBlockSpaceManager(BlockSpaceManager):
|
|||||||
|
|
||||||
def get_num_cached_tokens(self, seq: Sequence) -> int:
|
def get_num_cached_tokens(self, seq: Sequence) -> int:
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
def remove_seq_from_computed_blocks_tracker(self, seq: Sequence) -> None:
|
||||||
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user