Configuring LMCache#
- class lmcache.config.LMCacheEngineConfig(chunk_size: int, local_device: str | None, remote_url: str | None, remote_serde: str | None, pipelined_backend: bool, save_decode_cache: bool, enable_blending: bool)[source]#
-
- static from_defaults(chunk_size: int = 256, local_device: str = 'cuda', remote_url: str = 'redis://localhost:6379', remote_serde: str = 'torch', pipelined_backend: bool = False, save_decode_cache: bool = False, enable_blending: bool = False) LMCacheEngineConfig [source]#
- static from_file(file_path: str) LMCacheEngineConfig [source]#
Load the config from a yaml file