VRAM is no longer a limitation for local AI! No more OOM errors.
BasinKV has appeared on GitHub, which allows running models with a huge context without the need to store the entire KV cache in the graphics card memory.
BasinKV moves the KV cache to RAM or NVMe, leaving only the currently needed fragments on the GPU.
llama.cpp benchmark results:
- Qwen3.6-35B-A3B (256K, L4 24 GB): 67 tok/s, standard llama.cpp ends with an OOM error already at 64K. - Qwen3.6-35B-A3B (256K, A100): 95 -> 141 tok/s. - Qwen3-8B (128K, A100): 54 -> 124 tok/s. - Gemma 4 E4B (128K, L4): 31 -> 61 tok/s.
Everything without modifying weights and retraining the models.
The project supports llama.cpp, SGLang, and vLLM. The implementation for llama.cpp currently requires compilation with CUDA.
- The post says BasinKV keeps only needed KV-cache fragments on the GPU and stores the rest in RAM or NVMe.
- Reported results include Qwen3-8B on A100 improving from 54 to 124 tok/s at 128K context.
- The post says the project supports llama.cpp, SGLang, and vLLM; llama.cpp currently requires CUDA compilation.
