On November 30, Zellige released BasinKV, an open-source tool for long-context inference. It caps GPU-resident KV cache and moves the rest to RAM or NVMe. This lets memory-constrained services handle longer contexts and more concurrent requests.

1. Keep only the working set on the GPU

Long contexts grow the KV cache, exhausting GPU memory or forcing the base inference engine to process requests sequentially. BasinKV stores the full history in host memory or NVMe, keeping needed blocks on the GPU as a working set. The default resident size is 2,048 tokens per full-attention head, which computes relationships between context tokens. Host history uses 8-bit compression by default. Depending on memory headroom, users can choose no compression or smaller 4-bit compression.

Like placing only needed library books on a desk, it selects required blocks on the GPU and prefetches them over PCIe during computation. The company says fixed-size buffers preserve existing attention operations and CUDA graphs, which bundle GPU work for execution. No retraining or new weights are needed.

2. Gains on hardware with tight GPU memory

In company-reported llama.cpp tests, BasinKV reached 141.12 tok/s on an A100-80GB PCIe with Qwen3.6-35B-A3B Q4_K_M at 256K context. The base engine reached 95.01 tok/s and used 31.5 GiB of GPU memory. BasinKV used 22.4 GiB.

In company tests on a 24GB NVIDIA L4 with Qwen3.6-35B-A3B-UD-Q4_K_M, base llama.cpp failed from 64K onward due to CUDA out-of-memory errors. BasinKV reached 67.12 tok/s at 256K, with GPU KV cache and indexes using 84.75 MiB. The company said full weights alone occupied 20.60 GiB under these conditions.

The company reported that an SGLang test processing 16 requests on one H100-80GB showed both higher throughput and shorter batch completion time.

SGLang, 1x H100-80GB, Qwen3.8-27B-FP8, B = 16 x 64K (1.02M tok), base engine uses FP8 KV

Throughput and completion time for the same request batch
ItemThroughput (tok/s)Batch completion time (seconds)
Base engine358.0264.8
BasinKV470.4130.3

Under these conditions, the company reported 1.31x throughput and a 2.03x improvement in batch completion time.

3. Connecting to existing engines

Integration with llama.cpp and SGLang uses integration scripts. The following original example starts the server after applying the integration script and completing the CUDA build.

./llama.cpp/build/bin/llama-server -m Qwen3.6-35B-A3B-UD-Q4_K_M.gguf \
-ngl 99 -c 262144 -b 1024 -ub 1024 -fa on -np 1 \
--oasiskv --oasiskv-resident 2048 --oasiskv-cap 8 \
--oasiskv-index quest --oasiskv-alpha 0.25 --oasiskv-kv-quant int8

The vLLM V1 plugin integrates with the standard vllm serve command to store prefix cache in RAM or NVMe.

According to the company, command-line options and repository paths retain the previous project name, oasiskv.

4. Resources saved and costs shifted

Lower GPU memory use comes at the cost of host RAM, NVMe space, and PCIe transfers. In company llama.cpp tests on an A100-80GB PCIe, WHT-INT4 compression roughly halved host memory and NVMe usage versus INT8. The decode speed difference was below 0.5%.

Prefix caching stores computation results from earlier inputs, reusing them for repeated requests. In the company tests below, storing the cache in RAM delivered the lowest repeat-request latency.

vLLM V1, Qwen3-8B, A100-80GB PCIe, OKVP1 prefix cache

Repeat-request latency by prefix cache storage location (milliseconds)Base engine: Repeat-request latency 961.4; RAM: Repeat-request latency 456.5; NVMe: Repeat-request latency 702.4Base engine961.4RAM456.5NVMe702.4
Repeat-request latency by prefix cache storage location (milliseconds)
Repeat-request latency by prefix cache storage location (milliseconds)
ItemRepeat-request latency
Base engine961.4
RAM456.5
NVMe702.4

5. Quality and applicability

In company quality tests, hybrid models combining different architectures scored 100% on retrieval and question answering in 64K~128K RULER, a long-context retrieval benchmark suite. They scored 18/18 on 3-turn iterative coding at 128K~192K. Guidance for pure-attention models recommends raising the resident token count to 4,096.

However, when the full cache fit on the GPU, the base engine was faster in an H100 test with Qwen3.6-35B-A3B-FP8 and 16 requests at 64K context each. It reached 1,141.2 tok/s versus BasinKV's 950.2 tok/s. The company also reported that accuracy fell from 50% to 0% in a global word-counting test at 240K context with a GPU-resident ratio of 0.83%.

BasinKV expands long-context serving by shifting GPU memory pressure to RAM, NVMe, and transfer costs, with the clearest gains in memory-constrained environments.