Skip to main content

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's RemoteConnector interface
  • 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


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

If you're not sure about the file name format, learn more about wheel file names.

external_log_connector-0.1.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file external_log_connector-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for external_log_connector-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ba0b20f9769b71009ab28c2ef0096208c30d558b6c3a543ef4cac507103f995c
MD5 290cd7ff84d8d375268d5954ba409820
BLAKE2b-256 c125ad553b1915f2a01d3b6467c2ee4c6b2088331d75df2071277d307966b421

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page