Radix & VRAM Tuning
Using --kv-cache-dtype fp8_e5m2 for 2x Prefix KV Capacity
Halve per-token KV cache footprint on Ada and Hopper GPUs to double concurrent batch slots and Radix tree retention.
48% - 50% KV VRAM Cut · Ada/Hopper Native · 2x Tree Depth
Why fp8_e5m2 Preserves Dynamic Range
Unlike e4m3, the e5m2 floating-point format preserves the wider exponent range required by attention key-value outliers, keeping perplexity degradation negligible on Qwen and Llama models.
Hardware Support Matrix
Enable --kv-cache-dtype fp8_e5m2 by default on NVIDIA L4, L40S, and H100 GPUs. On older Ampere A100 nodes, benchmark perplexity on needle-in-haystack tasks before shipping.
Measured Thresholds & SGLang Flag Matrix
| Workload (32B FP8) | auto (BF16 KV) | fp8_e5m2 KV |
|---|---|---|
| KV Per 8k Request | 2.04 GB | 1.06 GB |
| 32 Batch (0% Hit) | 65.3 GB | 33.9 GB |
| 32 Batch (75% Radix Hit) | 18.2 GB | 9.5 GB |