BasinKV fits 256K-context Qwen4-35B-A3B on a 24GB GPU, with 14.7% faster decode and AMD support

ghgi_ · reddit · 2026-12-06

Zellige's BasinKV adds native Qwen4-35B-A3B support to llama.cpp (SGLang/vLLM in progress), fitting 256K context on a single 24GB GPU: stock llama.cpp hits CUDA OOM at 32K on an L4, while BasinKV holds peak VRAM flat at 21.8 GiB.

Key numbers:

The trick: instead of replacing Qwen4's trained Query-Sparse Attention indexer, BasinKV rides it — an 8x smaller pooled GPU indexer cache plus a fixed CLOCK working set, with KV stored as INT8 (or WHT-INT4) in pinned host memory over coalesced PCIe UVA reads, leaving FlashAttention and CUDA/HIP graphs untouched. Full build/run commands and a llama.cpp wiring patch are included.

Original post →

More from Infra

Infra channel →