Radix & VRAM Tuning
Sizing --chunked-prefill-size for Activation Cap & Smooth TPOT
Control how SGLang slices long input prompts so active decode streams do not stutter and temporary attention buffers never OOM.
2048 - 4096 Slice · -65% Activation Spike · Sub-35ms TPOT
How Chunked Prefill Piggybacks Decodes
Instead of blocking all running decode users while computing a 12,000-token prompt, SGLang processes 4,096 prefill tokens per scheduler step alongside active decode tokens.
Pairing With --mem-fraction-static
Smaller chunk sizes directly shrink peak temporary tensor allocations, letting you safely raise --mem-fraction-static from 0.85 to 0.88 or 0.90.
Measured Thresholds & SGLang Flag Matrix
| --chunked-prefill-size | Transient Activation Peak | Impact on Active Decodes |
|---|---|---|
| 2048 | +1.1 - 1.5 GB | Lowest latency jitter on 24 GB L4 |
| 4096 (Balanced) | +1.8 - 2.6 GB | Ideal default for L40S / A100 |
| 16384 | +5.4 - 8.8 GB | Batch offline prefill only |