What if the slowest part of your AI app isn’t the model thinking, but the model waking up?
Anyone who has shipped a product on top of a large language model knows the feeling. Most requests come back fast. Then, after a quiet hour, the first user of the morning waits eight, fifteen, sometimes forty seconds for a single word to appear. The model isn’t broken. It was asleep. That gap between “request arrives” and “first token appears” is LLM cold start latency, and it is one of the most misunderstood numbers in production AI.
What Cold Start Latency Actually Means
In plain terms, a cold start is the delay before the first token of a request when the model is not already sitting in GPU memory, ready to work. A warm start is the opposite: the model is loaded, the serving process is running, and the request goes straight into the queue.
Here’s the wrinkle. The phrase cold start gets used for at least three different things in LLM serving, and mixing them up leads to bad engineering decisions:
| Type of “cold” | What is missing | Typical cause |
|---|---|---|
| Replica cold start | A running server process | Scale-to-zero, autoscaling, deployment restart |
| Weight cold start | Model parameters in GPU memory | New node, cache eviction, image pull |
| Cache cold start | Cached key/value state for a prompt prefix | First request with a new prefix |
A user cannot tell these apart. They just see a spinner. But each one has a different fix, and each one costs a different amount of money to eliminate. The term itself is older than LLMs; it has been used for years in recommender systems and serverless computing, and the AI version is a later adaptation of the same idea.
Why the First Token Costs So Much

LLM inference splits into two phases with very different hardware profiles. Prefill processes the prompt and is compute-bound. Decode generates tokens one at a time and is memory-bandwidth-bound. The vLLM paper by Kwon and colleagues, presented at SOSP 2023, lays out this split clearly, and it explains why cold starts hurt so much: before any prefill can happen, the weights have to be in memory, and that loading step is often the single biggest chunk of the delay.
Loading weights is usually the biggest cost
For a large model, moving parameters from storage into GPU memory can dominate everything else. The time scales with model size and storage bandwidth, which is why a 70-billion-parameter model on slow networked storage can take far longer to wake than a small model on a local NVMe drive. The safetensors format, documented by Hugging Face, was introduced partly to make this loading step faster and safer than older pickle-based checkpoints, and it has become the default for most published weights.
Container and image pull time
On Kubernetes-based platforms, a cold replica must be scheduled, have its container image pulled, and start its serving process before a single weight byte moves. Large CUDA images can be several gigabytes. If the image isn’t cached on the node, that pull alone can take longer than the weight load.
Queueing that looks like a cold start
Sometimes the model is perfectly warm and the user still waits. New requests can sit behind a batch of long-running generations. The Orca system, described in the OSDI 2022 paper by Yu and colleagues, introduced iteration-level scheduling, often called continuous batching, which lets new requests join a running batch instead of waiting for it to finish. Without it, queueing delay gets misreported as cold start in monitoring dashboards.
Empty KV cache
Even a fully loaded model pays a price on the first request for a new prompt prefix, because there is no cached key/value state to reuse. Automatic prefix caching, documented in the vLLM prefix caching guide, lets later requests that share a prefix skip most of that prefill work. It doesn’t help the very first user, but it dramatically changes what “cold” means for repeated system prompts and shared context.
The Scale-to-Zero Trade-Off Nobody Escapes
Serverless GPU platforms love to advertise scale-to-zero. It sounds great: pay nothing when nobody is using the model. The catch is physics. A pod that has been scaled to zero has to come all the way back, and Knative’s documentation on scale to zero explains the autoscaling behavior that produces exactly this cold-start penalty. KServe builds serverless inference on similar foundations for Kubernetes users.
The trade-off is brutally simple:
| Strategy | Idle cost | Cold start risk |
|---|---|---|
| Scale to zero | Near zero | High and unpredictable |
| Minimum one warm replica | Fixed hourly cost | Low |
| Always-on fixed pool | Highest | Effectively none |
There is no clever trick that gives you both zero idle cost and zero cold start. You are choosing where on that line your product can afford to sit. A consumer chatbot used at 3 a.m. by one person can tolerate a ten-second wake-up. A checkout assistant cannot.
What Actually Works in Practice
Practical teams rarely solve cold start with one change. They stack several small wins.
- Keep a warm floor. Set a minimum replica count of one or more for anything user-facing. This is the single most effective fix, and it is also the one teams resist because it shows up on the bill every hour.
- Pre-pull images and weights to nodes. A node-local cache turns a multi-gigabyte network transfer into a local read. Init containers and node image preloading both help here.
- Use fast, memory-mappable weight formats. Safetensors plus local NVMe storage is the standard combination. Loading from object storage over the public internet is the classic mistake.
- Warm the model at startup, not on first request. Run a tiny dummy inference during boot so CUDA kernels compile and memory is allocated before real traffic arrives.
- Enable prefix caching. Shared system prompts become cheap after the first request. This won’t fix replica cold starts, but it flattens the cache-cold curve.
- Use continuous batching. It reduces the queueing delay that users misread as a cold start.
- Warm pools with scheduled pre-scaling. If traffic has a predictable morning spike, scale up before it, not after.
Common mistakes that quietly make it worse
The most frequent error is measuring the wrong thing. Teams benchmark warm requests, publish a p95, and then get blindsided by cold starts in production. If your latency budget doesn’t separate cold from warm, you don’t have a latency budget. A structured approach to measuring inference latency end to end helps here, because it forces you to timestamp the request at arrival, not at the moment the model starts generating.
The second mistake is aggressive autoscaling with short cooldown windows. A scale-to-zero policy that triggers after five idle minutes will thrash constantly on bursty traffic, producing cold starts all day long. Longer cooldowns and a warm floor usually beat cleverer autoscaling rules.
The third is forgetting about model updates. Every deployment is a cold start for every replica at once. Rolling updates with surge capacity avoid the thundering-herd version of this problem.
How to Measure Cold Start Honestly
There is no standard benchmark for LLM cold start. Published numbers vary wildly by hardware, model size, storage tier, and whether image pull is included in the measurement. That means cross-vendor comparisons are close to meaningless, and any single figure quoted in a blog post should be treated with suspicion.
What you can do is measure your own system consistently. Separate the timeline into stages: request received, replica scheduled, image available, weights loaded, model warmed, prefill started, first token emitted. Time each one. In most real deployments, one stage dominates by a wide margin, and fixing that stage is worth more than optimizing the other five combined.
Tracking cold starts as a rate in addition to a latency helps. “Two percent of requests hit a cold path” is an operational metric you can act on. “Cold start) takes twelve seconds” is a number without context. Teams that publish regular engineering notes on this kind of measurement tend to catch regressions early; the news section and the blog are reasonable places to see how others frame these benchmarks.
Does Cold Start Matter for Every Application?
No, and knowing when it doesn’t matter saves money. Batch jobs, offline summarization, and overnight document processing can scale to zero happily. Interactive chat, voice agents, code completion, and anything with a human waiting on the other end generally cannot.
A useful rule of thumb: if a user would notice a five-second pause, you need a warm floor. If they’d notice a thirty-second pause, you need a warm floor plus preloaded weights. If nobody is watching, scale to zero and pocket the savings.
Conclusion
LLM cold start latency is not one problem but three wearing the same name: a replica that isn’t running, weights that aren’t in memory, and a cache that’s empty. Each has a different cause and a different price tag. The physics are unforgiving. Big models take real time to load, serverless platforms charge you for that time either in dollars or in seconds, and no amount of clever scheduling makes a 70-billion-parameter model appear instantly.
What separates teams that handle this well from teams that don’t is rarely a secret technique. It’s measurement discipline, a deliberate choice about where to sit on the cost-versus-latency line, and the willingness to pay for a warm replica when the product genuinely needs one. Get those three right, and the first token of the morning stops being a surprise.
Frequently Asked Questions
What is LLM cold start latency in simple terms?
It is the delay before the first token of a response when the model isn’t already loaded and ready in GPU memory. The request has to wait for a server to start, weights to load, and the prompt to be processed. Once the model is warm, later requests skip most of that work.
How long does a typical LLM cold start take?
There is no reliable typical number. Published figures range from a couple of seconds for small models on fast local storage to well over a minute for large models behind a fresh container pull. The variance comes from model size, storage bandwidth, and whether image download is included. Always measure your own stack.
Is cold start the same as slow inference?
No. Slow inference is steady-state per-token speed, which depends on the model and hardware. Cold start is a one-time setup cost at the beginning of a request. A model can have excellent throughput and still suffer terrible cold starts, and vice versa.
Does scale-to-zero always cause cold starts?
Yes, by definition. If no replica is running, something has to start before a request can be served. The only question is how long that takes and how often it happens. Platforms reduce the pain with pre-pulled images and fast weight loading, but they cannot remove the fundamental wait.
Can prefix caching eliminate cold starts?
It eliminates one kind only. Prefix caching lets requests that share a prompt prefix reuse cached key/value state, so the prefill cost drops sharply after the first request. It does nothing for a replica that has to boot from zero or weights that must be loaded into memory.
What is the cheapest way to reduce cold start latency?
Keeping a single warm replica is usually the highest-impact change per dollar, because it removes the entire boot sequence from the critical path. After that, pre-pulling images to nodes and storing weights on local fast disks give the next biggest gains for relatively little ongoing cost.







