A logging-enhanced RemoteConnector similar to BlackholeConnector
Project description
external-log-connector: Logging-enhanced Remote Connector
A RemoteConnector extension module based on lmcache, with behavior identical to BlackholeConnector but with detailed logging for each operation.
Features
- Fully compatible with
lmcache'sRemoteConnectorinterface - Structured logging added for each method (
exists/get/put/list/close) - Behavior identical to
BlackholeConnector(no actual data storage)
Installation
Install from pypi
pip install external_log_connector
Build whl package from source
# Clone the project and enter the directory
cd external_log_connector
# Build the whl file (will be generated in the dist/ directory)
./build_whl.sh
pip install dist/*.whl
How to use
# lmcache.yaml
chunk_size: 256
local_device: "cpu"
local_cpu: False
max_local_cpu_size: 5
remote_url: "external://host:0/external_log_connector.lmc_external_log_connector/?connector_name=ExternalLogConnector"
remote_serde: "naive"
pipelined_backend: False
extra_config:
ext_log_connector_support_ping: True
ext_log_connector_health_interval: 10.0
ext_log_connector_stuck_time: 6.0
LMCACHE_USE_EXPERIMENTAL=True LMCACHE_TRACK_USAGE=false \
VLLM_MLA_DISABLE=0 VLLM_USE_V1=1 LMCACHE_CONFIG_FILE=./lmcache.yaml \
vllm serve /disc/data1/deepseek/DeepSeek-V2-Lite-Chat/ \
--trust-remote-code \
--served-model-name vllm_cpu_offload \
--max-model-len 32768 \
--max-seq-len-to-capture 10000 \
--max-num-seqs 64 \
--gpu-memory-utilization 0.9 \
--host 0.0.0.0 \
-tp 1 \
--kv-transfer-config '{"kv_connector":"LMCacheConnectorV1","kv_role":"kv_both","kv_parallel_size":2}'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file external_log_connector-0.1.2-py3-none-any.whl.
File metadata
- Download URL: external_log_connector-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba0b20f9769b71009ab28c2ef0096208c30d558b6c3a543ef4cac507103f995c
|
|
| MD5 |
290cd7ff84d8d375268d5954ba409820
|
|
| BLAKE2b-256 |
c125ad553b1915f2a01d3b6467c2ee4c6b2088331d75df2071277d307966b421
|