Skip to main content

PolarKV distributed KVCache Pool backend for LLM inference

Project description

PolarKV

Distributed KVCache Pool backend for LLM inference. Supports SGLang and vLLM.

Installation

pip install polarkv

Build From Source

Build the native SDKs from the repository root first, then assemble the wheel here:

cd ..
./build.sh client

cd python
./build_whl.sh
pip install dist/polarkv-*.whl

Usage

SGLang

--hicache-storage-backend dynamic \
--hicache-storage-backend-extra-config '{"backend_name": "polarkv", \
    "module_path": "polarkv.adapters.sglang", \
    "class_name": "PolarKVCache", \
    "polarkv_config_file":"/path/to/config.yaml", \
    "interface_v1":1 \
}'

vLLM

--kv-transfer-config '{"kv_connector": "PolarKVCache", \
    "kv_role": "kv_both", \
    "kv_connector_module_path": "polarkv.adapters.vllm", \
    "kv_connector_extra_config": {"config_file":"/path/to/config.yaml"} \
}'

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.

polarkv-1.1.0-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file polarkv-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: polarkv-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for polarkv-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a91db52ded2b535c74911beaeb93fe65a5afca6d27ae7677984cf6a92419da4
MD5 f45498a894eaa936d9d5e8f9f7b0667f
BLAKE2b-256 e94611f04bfecb9cc5b0492cdfb6c3f0d95465e76eb042dbbbaa62fbcd825b61

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