Which components dominate cold-start latency when a serving replica spins up?
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.
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.
Detailed answer & concept explanation~6 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: four phases of cold start + which one dominates for large models + warm-up cost + why the distractors fail + mitigation playbook + autoscaling implications.
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.
- AWS SageMaker and GCP Vertex AI maintain warm pools of pre-loaded inference endpoints precisely because reactive cold-start cannot meet interactive SLOs.
- NVIDIA TensorRT-LLM ships pre-built engine plans so deployment does not pay a kernel-compilation cost at cold start.
- Anthropic, OpenAI, and DeepSeek production fleets run capacity ahead of demand based on prewarm forecasts, which is how interactive products survive traffic spikes.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you reduce weight-download time without changing the model?
QWhy does CUDA graph capture matter even when the GPU has the weights?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
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.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.