All glossary terms

Serving

Cold start

The stretch a newly started server spends loading weights and allocating cache before it can answer. Bursts pay it again on every replica that launches.

A model server is not ready the moment its process starts. It has to read the weights from storage, allocate the KV cache, warm the kernels and any compiled graphs, and only then can it admit a request. That boot stretch is the cold start, and it is dead time for everyone whose request arrives during it.

Cold starts mostly hurt at the moments you care about most: a burst that triggers autoscaling, a failed replica being replaced, spot capacity being evicted, or a serverless deployment that pooled the model away. A steady-state fleet on busy hardware never reboots, which is why the cost hides in benchmarks and shows up in launch weeks.

The mitigations are each worth being able to name: keep a warm pool so readiness is rented in advance; snapshot memory so the load step is skipped; quantize the weights so there are fewer bytes to read; and keep the model count small. The interview answer pairs the diagnosis (where the 30 seconds go) with the right mitigation for the workload, and it says out loud that warm readiness has its own rent.

A worked example

A replica must load 70 GB of 8-bit weights from NVMe storage at 6 GB/s and then run a 20 s initialization before its first token.

  1. Weight load: 70 GB / 6 GB per second = about 12 s to read the model.
  2. Initialization adds the stated 20 s, so first token is about 12 + 20 = 32 s after launch.
  3. A burst of 10 arrivals inside that window all wait in queue; none of them receives a token before second 32 of the boot.
  4. A warm pool holding the weights ready removes nearly the whole wait.

About 32 s of dead wait per freshly launched replica - the cost that autoscaling and serverless deployments pay on every burst.

Where this shows up

Test yourself

Related terms