← all news

Modal cuts serverless GPU cold starts by 40x

Engineering · · · source (modal.com)

Serverless GPU inference has a basic problem. When traffic spikes and you need a new replica, spinning one up can take many minutes, so most teams keep expensive GPUs idle as a buffer. Modal says its own measurements put real GPU allocation utilization at only 10 to 20 percent because of this. In a detailed engineering write-up, the team explains how it brought a typical cold start from about 2,000 seconds down to 50 seconds, a 40x cut, and reports restoring roughly 50 million replicas for customers over three months.

The speedup comes from attacking four separate delays. A linear-programming solver keeps a buffer of idle GPUs sized against cloud price and availability, so allocating an instance is off the critical path. A content-addressed FUSE filesystem loads container image metadata in around 100 milliseconds and fetches the rest on demand instead of pulling whole layers up front. Process state is checkpointed with gVisor after imports and initialization finish, so each replica skips seconds of module loading. The last piece uses Nvidia's driver-level GPU memory checkpointing to snapshot CUDA contexts, which alone gives a 4 to 10x speedup on inference-engine startup. In one case vLLM boot dropped from 95.7 to 13.8 seconds, and Reducto went from about 70 seconds to 12.

Why it matters

If you run autoscaled GPU inference, cold start is what forces you to over-provision and pay for idle accelerators. The techniques here, especially GPU-memory checkpointing, are concrete enough to copy or to demand from a platform vendor before you accept scale-to-zero as impractical.

InferenceCompute