[Bugfix] Update the example code, make it work with the latest lmcache (#19453)

Signed-off-by: Runzhen Wang <wangrunzhen@gmail.com>
This commit is contained in:
runzhen 2025-06-11 05:42:20 -07:00 committed by GitHub
parent 5c8d34a42c
commit 943ffa5703
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -28,8 +28,8 @@ import os
import time
from dataclasses import asdict
from lmcache.experimental.cache_engine import LMCacheEngineBuilder
from lmcache.integration.vllm.utils import ENGINE_NAME
from lmcache.v1.cache_engine import LMCacheEngineBuilder
from vllm import LLM, SamplingParams
from vllm.config import KVTransferConfig

View File

@ -17,8 +17,8 @@ import subprocess
import time
from multiprocessing import Event, Process
from lmcache.experimental.cache_engine import LMCacheEngineBuilder
from lmcache.integration.vllm.utils import ENGINE_NAME
from lmcache.v1.cache_engine import LMCacheEngineBuilder
from vllm import LLM, SamplingParams
from vllm.config import KVTransferConfig
@ -105,7 +105,7 @@ def run_retrieve(store_done, prompts, timeout=1):
def run_lmcache_server(port):
server_proc = subprocess.Popen(
["python", "-m", "lmcache.experimental.server", "localhost", str(port)]
["python", "-m", "lmcache.v1.server", "localhost", str(port)]
)
return server_proc