Radix & VRAM Tuning
Tuning --mem-fraction-static Without Triggering Startup CUDA OOM
Balance static Radix KV pool reservation against PyTorch CUDA graphs, NCCL buffers, and chunked prefill activation scratchpads.
0.85 - 0.90 Sweet Spot · Reserves 10-15% Runtime Buffer
What --mem-fraction-static Actually Controls
SGLang pre-allocates GPU VRAM equal to total_vram * mem_fraction_static for model weights plus the RadixAttention KV token pool. Everything outside that fraction must cover CUDA graphs and forward-pass activations.
Fixing Runtime Out-Of-Memory Crashes
If your server boots cleanly but crashes with CUDA out of memory during a concurrent burst, lower --mem-fraction-static by 0.03 or drop --chunked-prefill-size to 2048.
Measured Thresholds & SGLang Flag Matrix
| --mem-fraction-static | Reserved Static Pool (80 GB) | Best Operational Use Case |
|---|---|---|
| 0.82 | 65.6 GB | Heavy 16k+ chunked prefill or TP>=4 NCCL |
| 0.88 (Default) | 70.4 GB | Balanced Radix KV + 4096 prefill chunks |
| 0.92 | 73.6 GB | Tight 72B FP8 fit with chunk size <= 2048 |