A model can fit on a GPU and still run out of memory when you give it a long prompt or several simultaneous users. Each generated token adds keys and values to the attention cache. Keeping that growing history in GPU memory competes with model weights and other requests.

Zellige’s BasinKV takes a different allocation: retain a small working set on the GPU, keep the longer history in host memory or storage, and fetch selected blocks when attention needs them. The repository implements and extends the OasisKV architecture. Its approach is worth understanding before adding another GPU just to fit a longer context.

What moves, and when

For full-attention heads, BasinKV describes a default GPU working set of 2,048 tokens. It scores blocks outside that working set and prefetches selected blocks across PCIe while earlier layers compute. Fixed-size resident buffers let the integration use existing attention kernels and CUDA graphs, according to the project. The model weights do not need retraining.

There are two consequences for a deployment. First, available GPU memory is no longer the only capacity limit: the host still has to hold the history, and transfers still need bandwidth. Second, sparse attention changes which cached tokens are used during decoding. A successful launch or a faster token rate says nothing by itself about whether the model still finds the evidence your application needs.

The README recommends a larger 4,096-token working set for full-attention models with 32 or more layers, including Qwen3-8B. That’s a useful reminder that the 2,048 default is a starting point, not a context-length guarantee. The project also describes INT8 host KV as a default and a more compressed INT4 option when host memory or index memory is tight. Compression and block selection are separate choices to evaluate.

Check which integration you are getting

The repository lists integrations for llama.cpp, SGLang and vLLM V1, but they do not all do the same thing. Its llama.cpp and SGLang paths require wiring against pinned upstream revisions. The documented vLLM V1 mode is an out-of-tree connector for RAM/NVMe prefix caching on an unmodified server. Prefix reuse can save work when requests share a prompt; don’t assume that installing that connector enables the same sparse decoding path as the other integrations.

Upstream version pins also matter operationally. Treat an engine upgrade as an integration change: build the pinned version first, then test a newer revision separately. Check the project’s current engine-specific guides and supported hardware before allocating time to a rollout.

What I would measure

Run the same model and prompts with the ordinary engine and the offload configuration. Include prompts where the answer depends on a small detail near the beginning, middle and end of a long context. Record answer accuracy against known evidence, not just whether the output sounds plausible. Repeat at the concurrency and context lengths you actually serve.

Measure time to first token separately from decode tokens per second and end-to-end latency. Watch peak GPU memory, host RAM and PCIe traffic; if using a disk-backed prefix cache, distinguish a cold request from a cache hit. A configuration that fits twice as many requests may still be a bad trade if transfer contention drives tail latency past the service’s limit.

The project’s README reports its own hardware-specific measurements and quality ablations. Those are a useful starting point for selecting a configuration, not an independent result for your model and workload. Keep the original engine configuration available while testing, and compare both capacity and answer quality before switching traffic.