lmcache_inprocess packages LMCache's legacy in-process engine separately from
the main LMCache distribution. It keeps the
existing Python import path, lmcache.inprocess, so current vLLM, TensorRT-LLM,
configuration, and plugin integrations do not need an API rename.
The wheel also supplies
lmcache.integration.vllm.vllm_v1_adapter as a compatibility re-export because
vLLM's connector imports that canonical path. The implementation remains under
lmcache.inprocess.integration.vllm.
The initial source snapshot is copied from LMCache dev commit
95ced2b137e3d854de662a45dd3c6ca3fee0753b.
The exact source revision is also recorded in UPSTREAM_REVISION.
Install a compatible LMCache build first, then this package:
python -m pip install 'lmcache>=0.5.7rc3'
python -m pip install lmcache_inprocessFor development against LMCache dev:
NO_GPU_EXT=1 python -m pip install \
'lmcache @ git+https://github.com/LMCache/LMCache.git@dev'
python -m pip install -e . --no-depsThe distribution is pure Python. Native extensions remain owned and shipped by
the lmcache dependency. A CLI-only NO_NATIVE_EXT=1 LMCache installation is
not sufficient because the in-process engine requires LMCache's common native
operations; CPU validation uses NO_GPU_EXT=1.
- Distribution name:
lmcache_inprocess - Import namespace:
lmcache.inprocess - Base dependency:
lmcache>=0.5.7rc3 - Python: 3.10 through 3.14
- Supported source of shared native extensions: the installed
lmcachepackage
Because both distributions contribute files below the top-level lmcache
directory, install and uninstall them with the same environment manager. A
future LMCache release should stop shipping lmcache/inprocess before both
packages are published as stable releases, avoiding overlapping wheel ownership.
python -m pip install -r requirements/test.txt
python -m build
python -m twine check dist/*
python -m pytest -q tests/smoke
python -m pytest -q tests/inprocess/v1/test_mock_gpu_connector.pyCI builds and installs the wheel in a clean environment, runs CPU smoke tests,
and tests compatibility against a pinned LMCache revision and current LMCache
dev. GPU end-to-end validation is available through the manual workflow in
.github/workflows/gpu-e2e.yml on a repository runner labeled
self-hosted, linux, x64, gpu, and h200.
lmcache/inprocess/: package sourcetests/inprocess/: copied unit and integration testsexamples/inprocess/: in-process examplesbenchmarks/inprocess/: in-process benchmarksscripts/sync_from_lmcache.sh: reproducible upstream refresh helper
Create a GitHub release with a vX.Y.Z tag. The release workflow builds the
source distribution and universal wheel, validates both, uploads them as GitHub
release artifacts, and publishes to PyPI through Trusted Publishing when the
pypi environment is configured for this repository.