Octave KV brings a native 3-bit KV cache to AMD GPUs in vLLM via the ROCM_OCTAVE backend
Octave KV packs K and V into 196 bytes per token per KV head using a rotated Lloyd-Max codebook and norm-preserving scaling, letting four RX 7900 XTX GPUs hold 2.07M tokens of context instead of 446k at fp16.
Summary
AMD's ROCm blog details Octave KV, a 3-bit KV cache format for AMD GPUs implemented as native HIP kernels for RDNA 3 (Radeon RX 7900 XTX) and CDNA 3 (Instinct MI300X). It ships inside vLLM as the ROCM_OCTAVE attention backend, tracked in PR #59774 and RFC #59773, and INCloud Solutions reports running it in production since October 2, 2026 on three servers with four RX 7900 XTX each, serving Qwen3.8-27B (W4A16) with tensor parallel 4 and MTP speculative decoding.
The format builds on TurboQuant's random rotation plus Lloyd-Max codebook idea but changes the layout and the kernels. The 64 RoPE dimensions get their own 4-bit block while the rest of K stays at 3 bits, V is rotated like K and quantized with the same Gaussian codebook, and a norm-preserving scale keeps x · x̂ equal to the squared norm of x. Prefill reads the packed cache directly instead of going through FlashAttention, and MTP verification shares every K/V read across a request's query tokens, so the whole decode path including MTP can be captured in CUDA graphs.
How Octave KV packs and serves the cache
- Capacity: On four RX 7900 XTX GPUs with 8 GB of KV cache per GPU, the compact format holds 2.07M tokens versus 446k for fp16 (4.6x); on a single MI300X the octave_k3v3 format holds 7.01M tokens against 3.60M for AITER's fp8 cache.
- Quality: GSM8K stays at fp16 level (92.4 versus 91.8 for fp16 and 89.8 for TurboQuant), and at 380k tokens of context next-token NLL rises by only 0.0015 nats over fp16, 2.5x less than TurboQuant at the same size.
- Decode speed: Per layer at 380k tokens on RDNA3, decode is 4.6x faster than TurboQuant and MTP verification 11x faster; on MI300X single-request decode matches AITER fp8 and is faster per layer from 32k tokens on (65 versus 103 microseconds at 128k).
- Format layout: Each token's K and V for one KV head fit in 196 bytes; the 64 RoPE dims sit in a separate 4-bit block, V uses random signs plus a Walsh-Hadamard transform over 256 dims with a Lloyd-Max codebook, and one norm-preserving fp16 scale per vector replaces TurboQuant's two.
- Kernel design: Codebooks are unpacked with one v_perm_b32 per four codes straight into int8 WMMA/MFMA, metadata is built on the device with no host syncs, and the backend refuses to start if a kernel is missing for the target architecture rather than falling back to a slow path.
Why it matters
Long-context serving on AMD hardware has been constrained by KV-cache memory rather than compute, and a 4.6x capacity gain on consumer RDNA 3 cards changes what a small multi-GPU box can host. Because the backend is merged into vLLM and refuses to run without native HIP kernels, operators get a predictable performance profile instead of a silent Triton fallback. The production deployment on RX 7900 XTX hardware also signals that ROCm is being used for real coding-assistant workloads, not just MI-series datacenter accelerators.
What to do
- Use the ROCM_OCTAVE attention backend in vLLM for AMD Radeon RX 7900 XTX or Instinct MI300X GPUs.
Original reference: rocm.blogs.amd.com →