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.0rc0-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: polarkv-1.1.0rc0-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.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 9471aa91d97af4e10855abde7dfab1b2473dfefd32c8ab74ba1dd798dba06d58
MD5 3a0f7e363c5b7189a816714aa691b1ba
BLAKE2b-256 e7747b96ef33227d2b746466b940d1dea1995e84aa55f4eb0b653545f89ee56c

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