Zenaique

Which components dominate cold start latency when a serving replica spins up?

Multi-select·Medium·4.0 · 0·~1 min·Asked atDatabricksMicrosoftRobinhood·Relevant atCloudflareGroqModal Labs
Attempt it
TL;DR

Real cold-start cost is pod scheduling plus image pull, weight download to disk, weight load to HBM, and a warm-up forward pass. Recompiling from source or retraining the tokenizer are made-up distractors.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

Imagine opening a new branch of a restaurant first thing in the morning. The building has to be ready, the supplies have to be trucked in, the chef has to unpack everything into the kitchen, and the chef has to cook one practice meal before the doors open. Each of those is a real step that takes real time. What does not happen is the chef inventing the recipes from scratch on opening morning, or training the suppliers to grow the vegetables. The recipes and the suppliers are already settled. For an LLM replica, the building is the pod, the supplies are the model's learned numbers, and the practice meal is one warm-up run before customers arrive. Spotting the distractors is just spotting the steps that belong to building the restaurant chain, not to opening today's branch.

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

Cold start is the wall-clock cost of bringing a serving replica from nothing to ready-to-accept-traffic. For LLM workloads it is a minutes-scale problem, not a seconds-scale problem, and that magnitude shapes the entire autoscaling and capacity architecture above it. A team that does not understand cold start will routinely ship reactive autoscaling and discover, on the first real traffic spike, that the replicas arrive minutes after they were needed.

This question tests whether you can decompose cold start into its real phases and discriminate them from plausible-but-fictional steps. The four real phases (pod scheduling and image pull, weight download to local disk, load from disk into HBM, warm-up forward pass) are not equally costly. Knowing which one dominates is what makes the mitigation playbook concrete.

The deep dive walks each phase, shows why two listed options are distractors, and connects cold-start budget to the autoscaling policy that has to live with it. By the end you should be able to estimate cold-start time for a model and hardware combination and design the warm-pool sizing that protects the SLO during traffic spikes.

Phase one: pod scheduling and container image pull

The orchestrator (Kubernetes, Nomad, ECS) decides which node hosts the new replica, then the kubelet on that node pulls the container image from the registry. The image holds the serving runtime (vLLM, SGLang, TRT-LLM), its dependencies, and usually a base CUDA layer.

Image pull time depends on image size and registry-to-node bandwidth. A typical serving image is several GB; pulling at hundreds of MB/s puts this phase in the tens-of-seconds range. Nodes that already have the image cached skip this phase entirely, which is the case for pre-baked node pools and for replicas restarted on a node that recently ran the same image.

The mitigation is straightforward: pre-bake the node AMI or VM image with the serving runtime preloaded, use registry caching at the regional or node level, and keep image sizes lean so the pull is fast when it does happen. This phase is real but rarely the bottleneck.

Phase two: weight download from object storage
Phase three: load from disk into HBM
Phase four: warm-up and CUDA graph capture
Why the two distractors fail
From cold-start budget to autoscaling policy
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

Real products, models, and research that use this idea.

  • vLLM and SGLang both document cold-start guidance recommending pre-staged weights on local NVMe to cut the dominant download phase.
  • Hugging Face Text Generation Inference exposes a warm-up endpoint that callers hit before admitting traffic to a fresh replica.
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QHow would you reduce weight-download time without changing the model?
A

Pre-stage weights onto local NVMe via a sidecar that runs ahead of the serving container, mount a regional cache layer in front of object storage, or use a peer-to-peer pre-fetch across the fleet. Each trades a bit of infra complexity for minutes of cold-start time.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Treating cold start as one number. It is four phases with very different magnitudes, and the dominant one is almost always weight download to local disk, not CUDA graph capture.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • The four phases of cold start and their relative magnitudes

  • Why weight download from object storage is the dominant phase for large models

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Why feature flag platforms like Statsig and LaunchDarkly carry more weight in LLMOps than in classic web apps
Flashcard·Medium