B
zellige-ai/basinkv★ 177 · Python
Sparse KV offload for long-context LLM serving with a fixed GPU working set
Custom / Check Repov0.1.1
Side-by-side 2026 comparison in LLMs & Inference: deepseek-ai/DeepInfer leads both total GitHub adoption (★ 27.7k) and recent 7-day momentum. Licensing: Custom / Check Repo vs Apache-2.0 · Commercial Friendly.
Sparse KV offload for long-context LLM serving with a fixed GPU working set
An accelerator-tuned offline inference engine for DeepSeek-V4.1-Flash
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | zellige-ai/basinkv | deepseek-ai/DeepInfer |
|---|---|---|
| Total GitHub Stars | ★ 177 | ★ 27,715 |
| 24h / 7d Velocity | +45 / +45 | +93 / +1.3k |
| 7-Day Trend Curve | ||
| Engineering Health | B+ · 71/100 | A+ · 89/100 |
| Deployment Signals | Self-Hosted · GPU · CLI | GPU · Local AI |
| Primary Language | Python | Python |
| Commercial License | Custom / Check Repo | Apache-2.0 · Commercial Friendly |
| Activity | Updated today | Updated 2d ago |
| Latest Release | v0.1.1 | Rolling commits (main) |
| Best For | Self-hosted NVIDIA GPU long-context serving where dense KV exhausts VRAM, or vLLM V1 deployments that explicitly need RAM/NVMe prefix reuse without patching the engine | Teams with supported SM100 or Ascend 950 hardware that need to benchmark or integrate DeepSeek-V4.1-Flash offline, with explicit control over parallel execution and reproducibility |
pip install basinkv # or `pip install -e .` from a checkout; registers the vLLM plugin entry point # Qwen3-8B, RAM + NVMe tiered prefix cache (verified on vLLM 0.19.1) vllm serve Qwen/Qwen3-8B --no-enable-prefix-caching --kv-transfer-config '{ "kv_connector": "OasisKVConnector", "kv_role": "kv_both", "kv_connector_extra_config": { "cache_mode": "mixed", "pcie_quant": "int8", "prefix_cache_dir": "/tmp/basinkv_cache", "prefix_cache_ram_gb": 4.0, "prefix_cache_nvme_gb": 32.0 } }' # Gemma 4 / Gemma 3 multi-group SWA + full attention (SupportsHMA, verified on vLLM 0.34.0) vllm serve google/gemma-4-26B-A4B-it --no-enable-prefix-caching --kv-transfer-config '{ "kv_connector": "OasisKVConnector", "kv_role": "kv_both", "kv_connector_extra_config": { "cache_mode": "nvme", "pcie_quant": "wht_int4", "prefix_cache_dir": "/tmp/basinkv_cache_gemma4", "prefix_cache_
DEEPINFER_ENABLE_MTP_VARLEN=1 enables confidence-scheduled verification; DEEPINFER_USE_NEXTN_DECODE caps draft length, defaulting to 5.### Offline inference The default checkpoint, [`deepseek-ai/DeepSeek-V4.1-Flash-1017`](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017), is downloaded into the Hugging Face cache on the first run; set `DEEPINFER_HF_MODEL_DIR=/path/to/DeepSeek-V4.1-Flash-1017` to run from a local copy instead.
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy