The cold-start tax

Compilation, graph capture and weight loading on the startup path

vLLM and SGLang cold starts are CPU-bound JIT work, not GPU compute. A phase-by-phase breakdown, measured boots and loaded footprints on GH200 and RTX PRO 6000, and how plow’s static compile path takes that tax off the critical path.

8.55 s
plowrt ready-to-serve on RTX PRO 6000 (RunPod) · Gemma 12B · context 128k — 10.93 s on Gemma 31B
0 s compile
Dynamo · compiled graphs · KV profiling · CUDA graph capture are 0.00 on plowrt — every config
122 → 11 s
Gemma 12B on GH200: vLLM time-to-API-ready vs plowrt

A GPU that burns money and serves nothing

A new replica must load its model and initialize the serving engine before answering requests. That can include compilation on a cache miss, loading cached artifacts, profiling and graph capture. The cost depends on the model, engine configuration and cache state.

This post breaks down where vLLM (and SGLang) startup time goes — from published instrumentation and our own runs — then shows how plow moves that compile work off the boot path.

  • Boot is CPU-bound — imports, graph tracing, kernel codegen — not GPU compute.
  • Compilation and graph capture are different costs. vLLM’s compilation cache is enabled by default and can bypass compilation when artifacts match. CUDA graph capture may still run in a fresh process. See the vLLM compilation-cache documentation.
  • SGLang also has initialization and warmup costs, which depend on the backend and cache state.
  • plow compiles ahead of deploy via plowc, so replicas boot without that stack.

Why cold start matters

Serverless and autoscaled LLM stacks see peak-to-mean ratios of 2–20× in production traces — autoscalers are constantly booting replicas, not once at deploy (Kabakibo et al., 2026). Every boot lands on time-to-first-token for whoever triggered the scale-up.

Cold-start lifecycle on a scale-up

autoscaler spike → image pull → JIT boot → idle GPU → first token

Cold-start lifecycle from autoscaler to first token An autoscaler sees a traffic spike, pulls an image and starts a container, then the serving engine spends one to eight minutes in a JIT cold boot with the GPU idle before the engine is ready and the first token is served. REPLICA SCALE-UP — CRITICAL PATH traffic spike autoscaler fires image + start pull · container JIT cold boot 1–8 min · GPU idle engine ready compile done first token request served idle GPU cost burning money · serving nothing

The expensive middle is the serving engine compiling itself before it can answer.

A ~5-minute cold start costs about $0.30/pod in idle GPU time; 50 pods recycling daily is ~$15/day before any tokens (Microsoft Community Hub). Engine startup — not image pull — was ~56% of cold start for Llama 3.1 8B in that writeup. A 27B serverless run hit 460 s; stripping torch.compile and CUDA graphs only got to 219 s, and gave up the optimizations those features exist for (logeshumapathi.com). Disabling optimizations can reduce startup time at a throughput cost; reusing compatible compilation caches can reduce startup work without disabling those optimizations.


Anatomy of a vLLM cold start

“Breaking the Ice” instrumented vLLM v0.10.1.1 across 22 models and found startup is predominantly CPU-bound: sequential, largely single-threaded Python. Swapping GPUs moved most phases <5%; swapping the CPU moved several phases a lot (arXiv:2606.07362). Not a “buy a faster GPU” problem.

Six phases — where the work runs

Breaking the Ice decomposition · CPU vs GPU bound · kernel JIT under the compile path

Six phases of a vLLM cold start vLLM startup decomposes into six phases: framework bootstrap, weight loading, Dynamo tracing, Inductor codegen or cache load, KV cache profiling, and CUDA graph capture. The first four run on CPU; only the last two are GPU-bound. Kernel JIT sits under the compile path and is not drawn as a separate phase box. CPU-BOUND — sequential Python GPU-BOUND bootstrap imports · config weights host → device Dynamo graph trace Inductor codegen / cache KV profile dummy forward CUDA graphs per-shape capture CPU phases one core pegged · GPU swap moves <5% GPU phases KV profiling + CUDA graph capture only

Framework bootstrap and weight loading

Backend detect, imports of PyTorch/Transformers/plugins, and config/tokenizer fetch cost several seconds before any math. Weight load scales linearly with size × precision (0.5–4.7 s for ~1.8B–16B in the paper, warm page cache) but is only 7–10% of total startup — cold SSD vs cache is ~1.04× overall. Once the JIT stack is gone, weight upload is most of what’s left; see roofline.

torch.compile: Dynamo and Inductor

vLLM’s compile path uses TorchDynamo + TorchInductor (docs). One PR on Llama-3-8B: Dynamo 4.6 s + Inductor 14.77 s ≈ 19.4 s before graph capture (PR #11005). Custom bytecode decompilation alone can cost ~7 s on 70B-class models (#20451). Paper ranges: Dynamo 3.1–6.3 s; warm artifact load 2.2–5.7 s; fully cold store 11–21 s. That cache dies on GPU/driver/precision changes — exactly when autoscalers spin new nodes.

JIT stack on the critical path

framework → Dynamo → Inductor → kernel JIT → CUDA graphs · every fresh process

Serving initialization and compilation caches Serving initialization can involve the following layers, with cached artifacts avoiding recompilation: Python framework bootstrap, Dynamo tracing, Inductor codegen or cache load, kernel JIT for FlashInfer Triton and DeepGEMM, and per-shape CUDA graph capture. EVERY FRESH PROCESS — BOTTOM TO TOP STILL ON THE CRITICAL PATH Python framework bootstrap import torch · transformers · plugins seconds Dynamo tracing bytecode → IR · scales with graph size 3–7 s Inductor codegen / cache load kernel lowering · 3–4× worse cold 2–21 s Kernel JIT FlashInfer · Triton autotune · DeepGEMM s–min CUDA graph capture recorded per batch shape on every boot 0.9–1.8 s+

Kernel JIT

FlashInfer / Triton / DeepGEMM JIT kernels for head dim, dtype, and arch on first use. Fragile as well as slow: FlashInfer GDN prefill can deadlock across TP workers (#41865); aarch64 paths that work on x86 can fail outright. vLLM’s own VLLM_USE_AOT_COMPILE exists “to reduce runtime JIT latency” (DeepWiki).

KV profiling and CUDA graph capture

Only the last phases are GPU-bound. Profiling is cheap in isolation (0.7–1.0 s dense in the paper) but triggers compile on first call — and can balloon (≈210 s on an NVFP4 MoE even with a warm torch.compile cache, #44881). CUDA graphs are per batch shape; limiting shapes cut one Llama 3.1 8B deploy 294 s → 82 s (Tensorfuse).

Literature ranges vs one measured boot

Warm-cache ranges from the sources above (varies by model, GPU, vLLM version)
PhaseTypical range
Framework bootstrapLow single-digit seconds
Weight loading0.5–4.7 s (1.8B–16B)
Dynamo tracing3.1–6.3 s
Inductor / load cache2.2–5.7 s cached; 11–21 s cold
Kernel JITSeconds to tens of minutes
KV profiling0.7–1.0 s typical; up to ~210 s
CUDA graph capture0.9–1.8 s+

Same tax buckets, concrete wall — vLLM · Gemma 12B · GH200 · context 128k. Model load is 6.69 s of a 122 s boot.

Measured vLLM cold start · GH200 · Gemma 12B · time to API ready
PhaseTime
Bootstrap (API + Engine init + NCCL)48 s
Model Loading6.69 s
Dynamo + Inductor4.41 s
Kernel JIT Warmup7 s
CUDA Graph Capture12 s
Engine Profiling / KV Cache / Warmup33 s
API Warmup11 s
Total Startup122 s (2 min 2 s)

SGLang pays the same tax

Same architecture, same bottlenecks. DeepGEMM v2 warmup: ~23 min prefill / ~11 min decode, still slow on “warm” relaunches (#9867). Another writeup: 88 s restart with warm page cache and persisted kernel caches — only 31 s loading weights; 57 s imports/config/autotune/warmup (Fergus Finn). Their fix was CRIU + cuda-checkpoint (~12 min → ~10 s) — engineering around the compile pipeline, not removing it. Caching and checkpoint help; they don’t change the root cause.


Compile before deploy

TensorRT-LLM proves AOT removes runtime JIT — and pays that cost at build (≈7+ min for 40B+/70B, often 25–45 min full cycles), tied to SKU and shape envelope. Megakernel AOT work measured Qwen3-32B warmup at 123 s vLLM / 583 s SGLang vs 35 s AOT, with a one-time offline 107 s build replacing 67 per-shape CUDA graphs (arXiv:2604.13327). vLLM itself is adding -O, VLLM_USE_AOT_COMPILE, and sleep mode for the same reason (vLLM Blog) — retrofitting AOT onto a JIT-first design.


What plow changes

plow + plowc start from that AOT foundation. plowc takes graph, precision, and target hardware (e.g. fp8 Gemma-4 12B for RTX PRO 6000 or GH200) and emits a static artifact. At boot there is no Python import chain, Dynamo, Inductor, FlashInfer/Triton JIT, or per-shape CUDA graph capture loop. What’s left: load the runtime image, stream weights, serve.

Serving initialization and offline compilation

left: vLLM / SGLang · right: plowc offline, then plow per replica

Serving initialization and offline compilation Left column: a serving engine initializes the framework, loads or compiles artifacts, and captures CUDA graphs before serving. Compatible cached artifacts avoid recompilation. Right column: plowc compiles once offline into a static artifact; each replica only loads the runtime, streams weights, and serves. JIT-FIRST — EVERY REPLICA PER REPLICA (vLLM / SGLang) boot process Python + imports trace + codegen Dynamo · Inductor kernel JIT FlashInfer · Triton CUDA graphs per shape · every boot serve finally ready STATIC — BUILD ONCE, BOOT CHEAP OFFLINE (plowc) plowc build graph · precision · arch static artifact kernels fused · shapes baked PER REPLICA (plow) load runtime no Python JIT path stream weights fp8 volume · HBM serve theoretical floor

Tradeoff is real: you commit to GPU arch and shape envelope at build time. Difference vs TensorRT-LLM is when — plowc sits outside the deploy path, not on every scale-up.


Methodology

GH200 vLLM numbers below were collected on one box so others can re-run the same serve line. plowrt wall clocks and footprints on the same GPU use the same model family and context; the runtime path is proprietary and is not reproduced here.

  • Machine — Supermicro ARS-111GL-NHR · Ubuntu 22.04.5 LTS · kernel 6.8.0-1059-nvidia-64k · aarch64 · 72× Neoverse-V2 · local NVMe root
  • GPU — NVIDIA GH200 480GB · compute capa 9.0 · 97 871 MiB reported · driver 580.173.02 · CUDA 13.0 (toolkit 13.0.3)
  • Software — Python 3.10.12 · PyTorch 2.11.0+cu130 · vLLM 0.26.0
  • Models — google/gemma-4-12b-it and google/gemma-4-31b-it · --dtype bfloat16 · TP=1 · --max-model-len 131072
  • Metric — wall clock from process start to first successful GET /v1/models (time to API ready)
  • Memory — vLLM’s own startup line: “Actual usage is … for weight, … for peak activation, … for non-torch memory, and … for CUDAGraph memory” (excludes KV cache)

Replicate the 31B boot (swap the model id for 12B). Cold-start timing runs omit --enforce-eager:

vllm serve google/gemma-4-31b-it \
  --attention-backend TRITON_ATTN \
  --dtype bfloat16 \
  --tensor-parallel-size 1 \
  --max-model-len 131072 \
  --scheduling-policy fcfs \
  --port 8000

Add --enforce-eager only when comparing the eager memory column. On this stack (vLLM 0.26 · TRITON_ATTN · 128k), the 31B default boot already reported 0.0 GiB CUDAGraph memory — same as eager — so graph capture is not a reliable free lunch to toggle off here.

RTX PRO 6000 (RunPod) rows use the same model ids, context, and plowrt vs vLLM pairing; that SKU’s driver/CUDA inventory is not re-listed in this post.


Measured cold starts

Gemma 12B / 31B, context 128k, one GPU — plowrt vs vLLM on GH200 and RTX PRO 6000 (RunPod). Values are time to API ready / ready to serve. On every plowrt run, Dynamo, compiled-graph load, KV profiling, and CUDA graph capture are 0.00. See methodology for the GH200 vLLM serve line.

Time to API ready — plowrt vs vLLM

seconds · lower is better · Gemma 12B / 31B · context 128k

plowrtvLLM
0 40 80 120 160 12B GH200 31B GH200 12B RTX 6000 31B RTX 6000 config 11 122 17 146 8.55 98 10.93 ≈140

plowrt: 11 / 17 / 8.55 / 10.93 s · vLLM: 122 / 146 / 98 / ≈140 s

Logs — GH200 · Gemma 12B

left: vLLM · right: plowrt

Terminal log of vLLM cold start on GH200 for Gemma 12B
Terminal log of plowrt serve on GH200 for Gemma 12B

The memory footprint

Beyond boot time, a loaded vLLM process carries weight storage plus runtime residue — peak activation workspace and non-Torch allocations, and sometimes a CUDA graph pool. plow’s loaded footprint is the static artifact itself. On GH200 with vLLM 0.26 · TRITON_ATTN · 128k, the 31B default boot already reported 0.0 GiB CUDAGraph (same as --enforce-eager); the remaining gap vs plow is weight layout plus activation / non-Torch overhead, not a graph toggle.

vLLM loaded-model GPU memory · GH200 · excluding KV cache · from vLLM “Actual usage is …” · 31B re-measured on vLLM 0.26.0
ComponentGemma 12BGemma 31B
Model weights22.83 GiB58.99 GiB
Peak activations1.10 GiB1.34 GiB
Non-Torch memory0.22 GiB0.22 GiB
CUDA graph memory0.68 GiB (0.00 eager)0.00 GiB
Total24.83 GiB (24.15 eager)60.55 GiB

Head to head against plow’s loaded footprint on the same machine:

Loaded GPU footprint · GH200 · excluding KV cache · lower is better
ModelvLLMplowΔ
Gemma 12B24.83 GiB (24.15 eager)22.18 GiB−2.65 GiB (~11%)
Gemma 31B60.55 GiB57.18 GiB−3.37 GiB (~6%)

Readout

  • plow’s footprint is smaller on both sizes — 22.18 vs 24.83 GiB on 12B and 57.18 vs 60.55 GiB on 31B — without asking the reader to toggle eager mode.
  • plow is smaller than vLLM’s weights alone (22.18 vs 22.83 GiB on 12B; 57.18 vs 58.99 GiB on 31B): the plowc artifact packs tighter than the runtime-deserialized layout.
  • On 31B with this attention backend and context, CUDA graph memory is already 0 in the default boot; the leftover vLLM tax is peak activations + non-Torch (~1.56 GiB) plus the weight-layout gap.

Roofline: is weight loading bandwidth-bound?

With compile off the path, residual cold start is mostly weight upload. If wall throughput approaches hardware ceilings, the phase is bandwidth-bound; if not, storage and software dominate.

Same machine and models; not identical timers. vLLM: Nsight transfer counters + vLLM load timing. plowrt: its own load breakdown (upload_all, Disk→RAM, RAM→Pinned, DMA overlay, GpuEngine::load()). Wall clocks are comparable; microphases are not the same counters.

Throughput (GiB/s) = Model Size (GiB) / Loading Time (s)

Effective weight-loading throughput

GiB/s · higher is better · size ÷ wall load time

plowrtvLLM
0 3 6 9 12 12B GH200 31B GH200 12B RTX 6000 31B RTX 6000 config 3.40 3.41 3.43 2.53 6.90 5.11 10.24 6.70

plowrt: 3.40 / 3.43 / 6.90 / 10.24 GiB/s · vLLM: 3.41 / 2.53 / 5.11 / 6.70 GiB/s · near NVMe, far below PCIe Gen5 / C2C

Path: Disk → Host memcpy → H2D/DMA → HBM. Peak ceilings: NVMe Gen4 5–7 GiB/s · Gen5 ~14 · PCIe Gen5 ×16 ~64 · NVLink-C2C 450 · HBM 1.8–4 TiB/s. H2D moved 22.31 / 58.46 GiB (12B / 31B); D2D rearrange was 48.37 / 68.38 GiB; plow DMA payload was 22.55 GiB on 12B.

GH200 · Gemma 12B · overlays do not sum to wall
StageTimeBandwidth
vLLM total model load6.69 s3.41 GiB/s
vLLM H2D (Nsight)0.153 s146.1 GiB/s
vLLM D2D (Nsight)0.030 s1626 GiB/s
plowrt GpuEngine::load()6.64 s3.40 GiB/s
plowrt Disk→RAM (overlay)—4.87 GiB/s
plowrt RAM→Pinned26.5 ms851 GiB/s
plowrt Pinned→GPU DMA (overlay)2.47 s9.13 GiB/s
plowrt blob parse~2.06 s—
GH200 · Gemma 31B · overlays do not sum to wall
StageTimeBandwidth
vLLM total model load23.32 s2.53 GiB/s
vLLM H2D (Nsight)0.311 s187.9 GiB/s
vLLM D2D (Nsight)0.042 s1647 GiB/s
plowrt GpuEngine::load()16.75 s3.43 GiB/s
plowrt Disk→RAM (overlay)—3.90 GiB/s
plowrt RAM→Pinned7.40 s7.78 GiB/s
plowrt Pinned→GPU DMA (overlay)199 ms289 GiB/s
plowrt cuMemAlloc5.20 s—
plowrt blob parse~2.06 s—

Readout

  • Wall load sits at ~2.5–10 GiB/s — near NVMe, 45–180× below GH200’s 450 GiB/s C2C. Interconnect is not the roof.
  • vLLM H2D is still fast (146–188 GiB/s) and only 0.15 / 0.31 s of a 6.69 / 23.32 s load. plow DMA is 9.13 GiB/s on 12B (~2.47 s overlay) vs 289 GiB/s on 31B; wall for 12B is Disk→RAM (~4.55 s @ 4.87 GiB/s), DMA overlay, and blob parse (~2.06 s). RAM→Pinned is trivial (26.5 ms).
  • On GH200 weight load alone, plow is not uniformly faster (6.64 vs 6.69 s on 12B — nearly tied; 16.75 vs 23.32 s on 31B). The cold-start win is removing JIT/compile, not winning the transfer roof.

Verdict: weight loading is storage- and software-bound, not interconnect-bound. Don’t equate Nsight H2D / plow DMA peaks with effective wall GiB/s.


Limitations

  • Asymmetric tooling — Nsight + vLLM logs vs plowrt logger; walls comparable, subphases not.
  • Scope — single GPU, Gemma-4 12B/31B; page-cache vs cold SSD not separately controlled on GH200.
  • Overlays — plow Disk→RAM / DMA bands don’t sum to wall.
  • vLLM “total model loading” includes deserialize + D2D rearrange beyond H2D.
  • RTX PRO 6000 rows lack the Nsight / plow-logger microphase dig and the full methodology inventory listed for GH200.
  • Memory footprint — plow figures come from plowrt load-stage logs (bytes resident after load); vLLM figures from the “Actual usage is …” profiler line. 31B was re-checked on vLLM 0.26.0 (CUDAGraph already 0 without --enforce-eager); 12B CUDA-graph delta still reflects an earlier profiler dump on the same SKU.

Bottom line

Startup includes model loading, initialization, compilation or cache loading, and graph capture. plow moves model compilation offline. vLLM can reuse compatible compilation artifacts, so a fresh process does not necessarily recompile the model. The timings above describe the recorded runs; they do not establish warm-cache startup performance for other deployments.

plow also serves the same model on less GPU memory than vLLM. Loaded and ready to serve, excluding KV cache: 22.18 vs 24.83 GiB on Gemma 12B (−2.65 GiB, ~11%) and 57.18 vs 60.55 GiB on 31B (−3.37 GiB, ~6%). On both sizes the plow artifact is smaller than vLLM’s weights alone, and that difference is headroom the KV cache gets back on the same card — see the footprint breakdown.


Further reading