Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/others/lmcache/cpu_offload_lmcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
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
Expand Down
4 changes: 2 additions & 2 deletions examples/others/lmcache/kv_cache_sharing_lmcache_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
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
Expand Down Expand Up @@ -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

Expand Down