Fix nightly test failure: CPP radix cache init (#14018)
This commit is contained in:
@@ -45,8 +45,8 @@ class RadixCacheCpp(BasePrefixCache):
|
|||||||
self.write_through_threshold = (
|
self.write_through_threshold = (
|
||||||
1 if server_args.hicache_write_policy == "write_through" else 2
|
1 if server_args.hicache_write_policy == "write_through" else 2
|
||||||
)
|
)
|
||||||
self.device = self.token_to_kv_pool_allocator.device
|
|
||||||
self.token_to_kv_pool_allocator = params.token_to_kv_pool_allocator
|
self.token_to_kv_pool_allocator = params.token_to_kv_pool_allocator
|
||||||
|
self.device = self.token_to_kv_pool_allocator.device
|
||||||
self.req_to_token_pool = params.req_to_token_pool
|
self.req_to_token_pool = params.req_to_token_pool
|
||||||
self.page_size = params.page_size
|
self.page_size = params.page_size
|
||||||
self.kv_cache = self.token_to_kv_pool_allocator.get_kvcache()
|
self.kv_cache = self.token_to_kv_pool_allocator.get_kvcache()
|
||||||
|
|||||||
Reference in New Issue
Block a user