Inference, Serving & Production·Question 41 of 76Advanced

GPU cold starts take minutes. How do you autoscale an inference fleet anyway?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

First decompose the cold start: (1) obtaining a GPU node - minutes if capacity exists, unbounded if it doesn't (GPU scarcity is real); (2) pulling a multi-GB container image; (3) loading weights - 140 GB from object storage at 1-5 GB/s is minutes by itself; (4) warmup - engine init, CUDA graph capture, compilation, prefix-cache priming. Naively that's 5-15 minutes from scale-decision to serving - hopeless against a traffic spike that builds in 30 seconds.

Full worked answer with diagram

First decompose the cold start: (1) obtaining a GPU node - minutes if capacity exists, unbounded if it doesn't (GPU scarcity is real); (2) pulling a multi-GB container image; (3) loading weights - 140 GB from object storage at 1-5 GB/s is minutes by itself; (4) warmup - engine init, CUDA graph capture, compilation, prefix-cache priming. Naively that's 5-15 minutes from scale-decision to serving - hopeless against a traffic spike that builds in 30 seconds.

So the strategy is: scale on leading indicators, shrink the cold path, and keep warm buffers.

  • Right signals: queue depth/wait time, in-flight concurrency, KV-cache utilization, tokens/s vs known per-replica goodput. Not GPU utilization (memory-bound decode reads ~100% while meaning little) and not CPU. Scale-up thresholds aggressive, scale-down slow and hysteretic (drain streams gracefully - sequences in flight must complete or migrate).
  • Shrink the cold path: pre-baked AMIs/images (no pull), weights on local NVMe or warmed page cache, fast loaders (safetensors mmap, streaming loaders like tensorizer), snapshot/restore techniques where available. Getting load time from 10 min to <1 min changes what autoscaling can do.
  • Warm pools: nodes with image+weights resident, GPU attached, process paused or serving at low priority - expensive standby, but the only true answer to sharp spikes. Size the warm buffer from historical spike magnitude.
  • Predictive/scheduled scaling handles the diurnal bulk: scale ahead of the 9 a.m. ramp by schedule or forecast, keeping reactive scaling only for residuals.
  • Absorb what you can't scale for: admission control with prioritised queueing (background traffic yields first), degraded modes (smaller fallback model already warm), and burst-overflow to an API provider as pressure relief - often the cheapest "warm pool" of all.

Mention the economic frame explicitly: autoscaling GPUs is about trading standby cost against SLO risk; the right answer differs for a chat product (warm buffers mandatory) vs batch pipeline (queue it, scale lazily).

Worth sketching. Laying the cold path out stage by stage is how you justify a warm pool to someone who thinks autoscaling is a config value.

flowchart LR
    SIG["Leading signal: queue depth,<br/>KV utilization"] --> DEC["Scale-up decision"]
    DEC --> N["Get a GPU node: minutes,<br/>unbounded if capacity is scarce"]
    N --> IMG["Pull the image"] --> WT["Load weights: 140 GB"] --> WARM["Engine init, CUDA graphs, cache priming"]
    WARM --> SERVE["Serving, 5-15 minutes later"]
    DEC --> POOL["Warm pool absorbs the spike now"]
    POOL --> SERVE

What a good answer covers

  • First decompose the cold start
  • Naively that's 5-15 minutes from scale-decision to serving - hopeless against a traffic spike that…
  • So the strategy is: scale on leading indicators, shrink the cold path, and keep warm buffers
  • Right signals: queue depth/wait time, in-flight concurrency, KV-cache utilization, tokens/s vs known…
  • Shrink the cold path: pre-baked AMIs/images (no pull), weights on local NVMe or warmed page cache, fast…

Key terms: Right signals · Shrink the cold path · Warm pools · Predictive/scheduled scaling

Interviewer follow-ups to expect

  1. Why is GPU utilization a bad scaling signal for decode-heavy workloads?

  2. Design the scale-down path so long-running streams aren't killed.

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep