AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
KV 메모리를 가상화해 제한된 하드웨어에서도 초장문맥 로컬 AI를 사용할 수 있게 합니다
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}
}