AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
翻譯準備中
KVMem virtualizes KV memory across inference backends to make ultra-long-context local AI accessible on limited hardware.
翻譯準備中
開發工具C++ · PythonGitHub @kvmem自行安裝營運者未確認
試用過了嗎? 點一下就好,不需要登入。
製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗English | 简体中文
Long-context conversations and AI agents on limited GPU memory.
KVMem keeps complete native KV history in system RAM, with optional SSD tiering. The GPU holds the history needed for the current request and space for generation. It supports multiple inference backends — NInfer, llama.cpp and PolyStrata, with more coming soon — through a local Web UI and OpenAI-compatible APIs.
xhigh reasoning setting.RTX 5060 Ti 16 GB · 27B IQ3 model · real local runs. The pelican cycling animations below are original HTML outputs from the release video, generated with medium and xhigh reasoning settings.
medium | xhigh |
|---|---|
KVMem makes room as generation proceeds, so Gen reserve is reusable workspace, not the cumulative output limit. Context, request limits and model stop conditions still apply. These are individual examples; see the demo notes for provenance and scope.
Stable release · All releases, including previews and older versions
Choose a package for your operating system, GPU and backend on the release page. Each release contains its downloads, checksums, driver requirements, model support and qualification notes. Supply model weights separately. Releases marked Pre-release are for testing.
START-HERE-EN.bat, then select the backend, model and GPU. Use START-HERE-CN.bat for Chinese.NInfer typically uses .ninfer models; llama.cpp uses GGUF. Model, quantization and vision support depend on the backend and release. For older packages without a one-click entry, follow the included instructions.
See Windows one-click startup, the Linux launcher and the console guide.
The service provides OpenAI-compatible /v1/chat/completions and /v1/responses endpoints with streaming. Tool and multimodal support vary by backend. The API base is http://127.0.0.1:<service-port>/v1; query /v1/models for the loaded model ID.
Configure context limits, GPU history budgets, generation reserve and RAM quotas through the console or launch options. Long contexts still need sufficient system RAM; model weights and inference workspaces also use GPU memory. See the runtime guide and backend differences for parameters, defaults and supported combinations.
git clone --recurse-submodules https://github.com/kvmem/kvmem.git
cd kvmem
python scripts/prepare-backends.py
python scripts/prepare-backends.py --check
Engines use pinned submodules and integration patches. GitHub-generated source ZIPs omit submodule contents. See source preparation and builds for requirements and commands, and the ROCm guide for AMD. Mainline source and published packages may have different capabilities.
| Topic | Guides |
|---|---|
| Startup, settings and support | Runtime guide · Backend differences |
| KV retrieval and memory | Graph recall · RAM / SSD tiering |
| Design and backend integration | Architecture · Memory backend contract |
| Builds and releases | Development workflow · Backend versions and licenses |
| Tests and performance | Validation records · Performance report · Benchmark data |
Reports retain their original versions, hardware and settings; their results do not apply to every package or device. Browse docs/ for more topics.
QQ group: 1040777853 · GitHub Issues
Include the version, GPU, driver, model, launch settings and error logs when reporting an issue. Remove private conversation content from logs.
Thanks to ggml-org/llama.cpp, Neroued/ninfer, iamwavecut/ninfer-all and community contributors, including Ryan-gsq and contributors to 3090/4090 adaptations, adaptive MTP, fast prefill and ngram. LRFU/GQA max references melis2023/kvmem-actkv. Thanks to testers including melis and redsnow23.
Each backend retains its upstream license and third-party notices; see the backend manifest and package licenses. cuBLAS follows the CUDA EULA. Models are distributed separately under their own terms.
KVMem: Virtualizing Million-Token Agent Workspaces on a Consumer GPU
@misc{chai2026kvmem,
title = {{KVMem}: Virtualizing Million-Token Agent Workspaces on a Consumer {GPU}},
author = {Di Chai and Leye Wang and Zeshen Su and Zhiguo Xia and Zhihang Yu},
year = {2026},
eprint = {2609.04852},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2609.04852}
}