File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 2323)
2424from lightllm .server .core .objs import ShmReqManager , StartArgs
2525from .dynamic_prompt .radix_cache import RadixCacheReadOnlyClient
26+ from lightllm .server .multi_level_kv_cache .cpu_cache_client import CpuKvCacheClient
2627from lightllm .server .core .objs .shm_objs_io_buffer import ShmObjsIOBuffer
2728from lightllm .utils .log_utils import init_logger , log_time_ready
2829from lightllm .server .router .token_load import TokenLoad
@@ -99,6 +100,8 @@ def __init__(self, args: StartArgs):
99100 g_router_lock .obj = self .router_lock
100101
101102 self .shm_reqs_io_buffer = ShmObjsIOBuffer ()
103+
104+ self .cpu_cache_client = None if not self .args .enable_cpu_cache else CpuKvCacheClient (init_shm_data = False )
102105 return
103106
104107 async def wait_to_model_ready (self ):
You can’t perform that action at this time.
0 commit comments