LMCache Connector for SGLang
This document describes how to use LMCache as KV Cache Management Backend for SGLang engine. For more details about LMCache, please refer to: https://lmcache.ai
Install LMCache
Method 1: with pip
pip install lmcache
Method 2: from source
Clone LMCache project:
git clone https://github.com/LMCache/LMCache
Install:
cd LMCache
pip install -e . --no-build-isolation
Use LMCache
Firstly, setup LMCache config. An example config is set at example_config.yaml. For more settings please refer to https://docs.lmcache.ai/api_reference/configurations.html.
Secondly, setup SGLang serving engine with lmcache:
export LMCACHE_USE_EXPERIMENTAL=True
export LMCACHE_CONFIG_FILE=example_config.yaml
python -m sglang.launch_server \
--model-path MODEL \
--enable-lmcache
Xet Storage Details
- Size:
- 870 Bytes
- Xet hash:
- b34cb91bc050e04a7e835ce347d91e4cb9c84bc2cfd1bbdd4d54af372290ae47
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.