Skip to content

Commit 1bc6a65

Browse files
author
wangzaijun
committed
router addd cpu_cache_client
1 parent ea16d49 commit 1bc6a65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightllm/server/router/manager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
)
2424
from lightllm.server.core.objs import ShmReqManager, StartArgs
2525
from .dynamic_prompt.radix_cache import RadixCacheReadOnlyClient
26+
from lightllm.server.multi_level_kv_cache.cpu_cache_client import CpuKvCacheClient
2627
from lightllm.server.core.objs.shm_objs_io_buffer import ShmObjsIOBuffer
2728
from lightllm.utils.log_utils import init_logger, log_time_ready
2829
from 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):

0 commit comments

Comments
 (0)