Extend effective memory by offloading KV cache to CPU memory.
KV cache offloading stores key-value cache data in CPU memory when GPU HBM is exhausted, enabling:
With 192-256GB HBM per GPU, KV cache offloading is often unnecessary. Consider it only for extreme workloads.
native: vLLM's built-in offloading (recommended)lmcache: LMCache integration for advanced cachingKV cache offloading only works with standard attention architectures (GQA, MHA). MLA models are not supported.
MLA (Multi-head Latent Attention) uses an indexer-based KV cache structure that the OffloadingConnector cannot handle.
Before enabling KV offloading, consider:
Reduces KV cache memory by 50%:
KV offloading adds latency due to CPU-GPU transfers:
Exact impact varies by model and workload. The trade-off is worthwhile when you need context lengths or concurrency that wouldn't otherwise fit.
This occurs with large models when AITER GEMM kernels encounter incompatible configurations. Adding KV offloading flags resolves it, even if you don't need the extra memory:
Affected models: Llama-3.1-405B, Qwen3-VL-235B, and other large MoE models.
Increase the offload buffer:
Or reduce context length:
0 Comments
Be the first to comment and share your perspective with the community.