Model and Inference EngineeringRouting, tenancy and rolloutPrincipal
How would you roll out and roll back a larger model with no spare GPU capacity?
By Amit Kumar2 min readWorked answer includedReviewed 26 Sept 2026
The question
Interview question
Eight single-GPU replicas meet the latency target. A larger checkpoint leaves less attention-cache memory, and rolling replacement either cannot place a new replica or overloads the seven remaining old ones. Design readiness, admission reduction and staged exposure, explain rollback capacity and decide what to do if all eight old replicas are required at peak.
Draft your approach first
Take a few minutes before you read the answer. Name the constraint that matters most, the failure you are designing for and how you would know it worked.
Reveal the worked answerWorked answer
The attention cache stores the model’s intermediate state for prior tokens in each active request. A smaller cache can limit concurrency even when the weights fit. The rollout has a temporary capacity requirement that the steady-state plan omitted. A new process has to load weights, allocate runtime and KV memory, warm kernels, and prove readiness while the old model still serves traffic. Even if the new weights fit one GPU, fewer live sequence slots may lower completed requests at the latency target. Kubernetes rolling updates bound extra and unavailable Pods through maxSurge and maxUnavailable. Those counts do not manufacture a GPU or guarantee that a loaded model has enough KV capacity.
I would first measure the new checkpoint on the actual traffic shape. Record model load and warmup time, memory after weights and workspace, usable KV blocks, time to first token, per-token latency and SLO goodput at each concurrency point. Keep old and new versions as separate serving groups. Pin each request to one model version for its full generation. A pod becomes routable only after weights, tokenizer and serving configuration match the expected revision and a small readiness inference succeeds. It is not ready just because the HTTP port opened.
With no spare GPU, there is no free zero-loss rollout. I would create room deliberately. Pause elastic batch traffic, shed or defer low-priority work, and reserve enough headroom for one new group. Then move a bounded slice to the new model, watch quality and per-version latency, and release the old capacity in measured steps. If the interactive SLO still needs all eight old replicas at peak, schedule a lower-demand window or acquire capacity. If neither is possible, do not claim a seamless update. An explicit temporary admission limit is more honest than letting the queue silently grow.
Rollback needs room too. Keep the old checkpoint and runtime configuration available, and retain at least a viable old serving group until the new model's quality and capacity are established. If the new checkpoint changes tokenization or tool format, do not migrate an in-flight stream or its KV by relabeling it. Drain old requests under a bounded deadline and report the ones that cannot finish. Suppose the new version has better offline quality but 25 percent lower SLO goodput. That is a product and capacity decision, not a green deployment status. Either fund the extra fleet, reduce admitted load, or decline the rollout.
Related questions
- How would you route 50,000 requests per second across unequal models while honoring pins and provider quotas?Principal
- How would you serve tenant-specific LoRA adapters and update them safely during active requests?Principal
- How should a serving fleet enforce tenant adapter deletion across resident weights and active requests?Principal
Keep practising model and inference engineering
Follow another question in this area, or search the complete library.
Get my essays on AI engineering and distributed systems by email. Subscribe to ArchCrux