Skip to main content
GPU RADIXCACHE COMPUTE // RADIXATTENTION VRAM TERMINAL KV DTYPE: FP8_E5M2 | VULTR $300 GPU CREDIT | XIAOMI MIMO API | BASELINE 2026-10-17
SGLangVRAM
SGLangVRAM Affiliate Notice: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero added cost (Affiliate Policy).
Radix & VRAM Tuning

Controlling CUDA Graph Memory Overhead in SGLang

Understand how pre-captured CUDA graphs consume 0.6 to 2.4 GB outside the static KV pool and how to trim them on 24 GB GPUs.

0.6 - 2.4 GB Outside Static Pool · Faster Small-Batch Decode

Controlling CUDA Graph Memory Overhead in SGLang
Telemetry baseline verified 2026-10-17 by RadixCache Compute.

Why Small-Batch Decode Needs CUDA Graphs

CUDA graphs eliminate Python/CPU kernel launch overhead during autoregressive decoding. Disabling them saves ~1.5 GB but severely degrades tokens/sec.

Trimming Rather Than Disabling

On tight 24 GB L4 deployments, cap --cuda-graph-max-bs 32 instead of disabling graphs completely so you keep fast decode while reclaiming 1.3 GB.

Measured Thresholds & SGLang Flag Matrix

Max CUDA Graph BatchCapture Memory (32B)Recommendation
Default (160)~2.1 GBFine on 48-80 GB GPUs
--cuda-graph-max-bs 32~0.8 GBSaves 1.3 GB on 24 GB L4
--disable-cuda-graph0 GBDebug only (slows decode 25-40%)
0.6 - 2.4 GB Outside Static Pool · Faster Small-Batch Decode Claim $300 GPU CreditXiaomi MiMo API