LLM Serving CUDA Graph in Production: Taming Kernel Launch Jitter with Shape Buckets, Piecewise Capture, and Warmup Plans
CUDA Graphs cut LLM inference launch overhead, but dynamic batching, shape variance, and first-capture costs create latency jitter. This guide covers shape buckets, piecewise capture, warmup strategies, memory trade-offs, and production rollback gates using vLLM and TensorRT-LLM to fix host-side bottlenecks when GPUs aren't saturated but latency won't drop.