mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-15 07:45:01 +08:00
[BugFix] Update KV block hash type from BlockHash to ExternalBlockHash in kv_events_subscriber - #26264 (#26265)
Signed-off-by: atalhens <sneh.lata@nutanix.com>
This commit is contained in:
parent
de342585ff
commit
46b0779996
@ -6,7 +6,7 @@ import msgspec
|
|||||||
import zmq
|
import zmq
|
||||||
from msgspec.msgpack import Decoder
|
from msgspec.msgpack import Decoder
|
||||||
|
|
||||||
from vllm.v1.core.kv_cache_utils import BlockHash
|
from vllm.v1.core.kv_cache_utils import ExternalBlockHash
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -24,8 +24,8 @@ class KVCacheEvent(
|
|||||||
|
|
||||||
|
|
||||||
class BlockStored(KVCacheEvent):
|
class BlockStored(KVCacheEvent):
|
||||||
block_hashes: list[BlockHash]
|
block_hashes: list[ExternalBlockHash]
|
||||||
parent_block_hash: Optional[BlockHash]
|
parent_block_hash: Optional[ExternalBlockHash]
|
||||||
token_ids: list[int]
|
token_ids: list[int]
|
||||||
block_size: int
|
block_size: int
|
||||||
lora_id: Optional[int]
|
lora_id: Optional[int]
|
||||||
@ -33,7 +33,7 @@ class BlockStored(KVCacheEvent):
|
|||||||
|
|
||||||
|
|
||||||
class BlockRemoved(KVCacheEvent):
|
class BlockRemoved(KVCacheEvent):
|
||||||
block_hashes: list[BlockHash]
|
block_hashes: list[ExternalBlockHash]
|
||||||
medium: Optional[str]
|
medium: Optional[str]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user