Cold-starting a 475 GiB model in minutes
Removing work from the start path took a 475 GiB model's cold start from 33 minutes to 388 s at p90 on fresh machines. It still missed its 300 s gate.
Removing work from the start path took a 475 GiB model's cold start from 33 minutes to 388 s at p90 on fresh machines. It still missed its 300 s gate.
Prefix caching, data and expert parallelism with pinned sessions, and contract-gated quantisation cut a 64K agent turn from 104 s to 2.5 s on eight PCIe GPUs.
Residency is not the whole case: control of the weights fixes the serving setup, cache, training and capacity, behind one gateway with no silent fallback.
A recurring report. A slow review. A prototype that needs to work in the real world.
We got cold start for a 475 GiB open-weight model from no machine at all down to about six and a half minutes at p90, roughly 3.7× faster than the 23.6 minutes an untuned start took on the same hardware. The trick wasn't doing the start-up work faster; it was taking work off the start path altogether. A baked boot image with the engine already pulled, weights on a regional filesystem, an autotune replay store, persisted compiler caches and no profiling-time graph capture. Even then, we missed our 300-second target and accepted the result with a recorded waiver, because most of what's left is the cloud provider creating and booting the machine.
The model is DeepSeek V4.1 Flash, an open-weight mixture-of-experts model served with vLLM as part of Project Venus, our research into running private models for the Company Twin. Today that private model serves from dedicated UK or EU infrastructure, as our research page sets out. The studies below ran across two kinds of eight-GPU node in two regions, and we note which as we go.
Key takeaways
Because an eight-GPU node sitting idle costs the same as one answering questions. Agent work arrives in bursts: a team runs an analysis, an evaluation sweep runs overnight, and then nothing happens for hours. Keeping a node warm is a fair choice, but it's an always-on cost commitment, and we wanted to see how close an on-demand node could get before making that call.
From the user's side it's straightforward. Someone confirms they want the private model, a node starts and the app shows progress stage by stage. After 30 idle minutes, the node is deleted.
Our first end-to-end cold start ran on an eight-GPU NVIDIA B300 spot node from Nebius in a US region. From request to first token took 1,978 seconds. Placing, booting and serving TLS took 4.9 minutes; pulling the 22.8 GB engine image took 6.8; reading the checkpoint from a network filesystem took 7.2 (at about 1.1 GB/s); and compiling, autotuning kernels and capturing CUDA graphs ate another 13.1 minutes before the model could answer a single request.
Where a cold start's time goes
Every one of those stages was redoing identical work from the run before. The image doesn't change between starts, the weights don't change, and the best kernel choices for a fixed model, engine build and GPU don't change either. That gave us the whole plan: first stop repeating work, then speed up whatever's left.
Baking the pinned engine image into the boot image wiped out the pull (6.8 minutes on the first run, 524 seconds on another), leaving a ~1-second check on the GPU node. Keeping the weights on a filesystem in the same region as the GPUs cut out a 20-to-25-minute download from the model hub, and a prefetching loader reads them in parallel. On the best B300 run, weights loaded in 93 seconds (130 on the slowest of the four engine ranks).
The single biggest sink was kernel autotuning. FlashInfer profiles candidate kernels for the shapes the MoE layers will see and picks the fastest: sensible for throughput, wasteful when the answer is identical on every fresh machine. It even ships with a file cache for those choices. Yet when we loaded 152 saved configurations, tuning ran all over again. Reading the source showed why: the MoE kernel requests a cold-L2 profiling policy, the cache didn't apply to that policy, and every new node spent roughly eight minutes re-profiling from scratch.
We wrote a small replay store keyed by profiling policy and wired it into every engine worker. In the lab it replayed 136 serving cases with zero profiling calls; without it, a capture-enabled start had made 29,918 MoE profiling calls per rank. The largest relative error between a replayed choice and the fallback was 0.002, against a gate of 0.02. Moving compiler caches for vLLM and FlashInfer into one shared directory on the same filesystem meant later nodes reused earlier compilations too.
On a fresh machine, the recipe reached native serving 430.6 seconds after its container started (723.3 seconds after admission), with zero profiling calls across all four ranks. It passed native correctness and a retrieval check at 127,998 tokens of context, while keeping throughput within 4% of an unmodified engine. Our controller reproduced it on the real product path: 417 seconds from engine start to serving, 797 seconds from request, with a 543-millisecond first token on the verification call.
Our pre-registered gate was 375 seconds from container to native. We missed it by 55.6 seconds, so the confirmation runs it would have enabled weren't admitted. The recipe still went into the product because it was 2.5× faster than what we had; it just didn't get to call itself qualified.
Three ideas that looked obvious on paper either made things slower or proved nothing.
Spot capacity stopped holding. From 28 October, US B300 spot nodes were reclaimed two to four minutes after creation, even when we bid the provider's maximum: capacity reclaims, not outbids, so no bid could save them. On-demand B300s were rarely available. Eight-GPU RTX PRO 6000 Blackwell nodes in a UK region had solid on-demand and spot availability, and their 768 GB holds the checkpoint across eight GPUs, so on 31 October we qualified the model there and moved the study.
Moving reset the clock. Untuned, a fresh RTX PRO 6000 node took ~23.6 minutes from create to ready. Graph capture ran twice, once during memory profiling (258 seconds) and again for serving (319 seconds), and 267 seconds weren't attributed to any stage at all.
Two short campaigns on the new hardware gave us a frozen recipe. Every change either cuts work out or overlaps it with something that has to happen anyway.
| What it removes | |
|---|---|
| Explicit key-value cache size | The profiling pass and its graph capture: the engine is told upfront how much memory to use |
| CUDA graphs captured up to batch 64 | Capture for batch sizes the interactive lane doesn't use |
| Local FlashInfer calibration store for this GPU | Re-profiling kernels on every start |
| JIT warm-up off; persistent TileLang kernel cache | Recompiling kernels that compiled last time |
| Baked image with precompiled bytecode | The image pull and Python's first-import compilation |
| Weight reads overlapped with imports and device set-up | Waiting for one before starting the other |
| The engine's API server launched directly | A wrapper process sitting in the start path |
Five fresh on-demand starts, each after at least 30 minutes with no machine running: p50 381 s, p90 388 s, spread 19 s. Gold correctness passed 5 of 5 and the throughput guard 15 of 15.
The breakdown shows where the floor actually sits. Creating the machine and reaching its kernel took ~150 seconds (including ~55 seconds to create its boot disk), booting to our program took ~63, and the engine pipeline took ~166 at p90. Even with a zero-second engine, p90 would still be ~223 seconds, so a three-minute start isn't reachable on freshly created machines. We revised our gate to 300 seconds in the open, and missed that too, by ~88 seconds.
Restoring a checkpoint of the running engine doesn't rescue it either. A full native checkpoint is ~790 GB; at the 6.3 GiB/s we measured from storage, reading it takes at least 117 seconds, not enough ahead of a 166-second pipeline to matter. One correctness check failed once during the campaign, and we didn't relax it.
So we accepted the result with an explicit latency waiver. It's predictable (a 19-second spread across five starts), every second is accounted for, and it's ~3.7× faster than the untuned baseline on the same hardware. One caveat stays attached: we measured this on the tensor-parallel interactive layout, so the data-parallel bulk layout we describe in our serving measurements needs its own cold-start check before anyone relies on it.
A fast start only helps if the machinery around it is safe to leave unattended. Each node is governed by a lease held in the Twin, and one narrow controller role is the only component with cloud credentials.
The edge cases caught real bugs. On our very first run through the app, the controller probed the new node too early, mistook a slow boot for a spot eviction and deleted it mid-creation. We fixed that before the next run. The lesson carries cleanly anywhere: never let a health probe judge a machine that's still being created.
Three choices, each a trade-off, not an optimisation. A warm node eliminates cold start altogether, at the cost of idle time. Starting the node on intent (when someone opens a new session) hides much of the wait while they're typing. And smaller models change the physics completely: a ~200 GB model fits on the four GPUs behind one CPU socket, reading half the weights with no cross-socket traffic. That's one reason we keep our 27B model as the one we adapt and serve by default, as we covered in what our LoRA adapters learned.
Measure the cold start you actually have before deciding between warm capacity and scale-to-zero. Time it from the user's request on a fresh machine, attribute every stage, and hunt down repeated work: image pulls, weight downloads, kernel autotuning and graph capture are usually most of the bill, and all four can be cached or cut. Then decide on real numbers whether a few minutes of start time works for your users, or whether warm capacity, pre-warming on intent or a smaller model is the better trade.
Whichever way you go, wrap the lifecycle in a lease with hard deadlines, exact clean-up and visible stages, and make the gateway fail visibly rather than rerouting silently when the model isn't there. Why we serve our own open-weight models sets out when running your own stack is worth the effort.
The Twin can answer through a hosted provider or our private model, with the same sources and access rules, and shows you which one did. See the Company Twin →