Design Scale-to-Zero Model Deployments With Fast Cold Starts
Last updated: November 29, 2026
Quick Overview
Design the serving path for dedicated model deployments that scale to zero when idle and must bring a replica of a 70B-parameter model back to serving quickly when the first request arrives. Cover request buffering, GPU acquisition, image and weight loading, and readiness.
Baseten
November 29, 20260
0
0 solved
Design the serving path for dedicated model deployments that scale to zero when idle and must bring a replica of a 70B-parameter model back to serving quickly when the first request arrives. Cover request buffering, GPU acquisition, image and weight loading, and readiness.
Scale to zero is a core cost lever on Baseten, but it is only usable if cold starts stay short, which is why the company invests in weight caching and autoscaling schedules. Interviewers look for a breakdown of where cold-start time goes and concrete ways to remove each piece.
What the Interviewer Expects
- Breaks cold start into queueing, GPU allocation, container image pull, weight load and engine warm-up, with rough numbers
- Buffers incoming requests at the gateway while a replica starts instead of failing them
- Caches weights close to the GPU (node disk, cluster cache) and streams them in parallel
- Keeps container images slim and pre-pulled, and caches compiled engines
- Defines readiness as a real inference succeeding, not just the process being up
- Discusses minimum replicas and schedules as the cost versus latency dial
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- Weights are 140 GB. What bandwidth do you need to load them in 30 seconds, and where would it come from?
- How do you prevent a thundering herd when 500 buffered requests hit the first ready replica?
- How would you predict scale-up before traffic arrives?
- What do you show the customer when a cold start exceeds their timeout?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: deployments with min replicas 0; the first request after idle must succeed, not 503. Non-functional: p50 cold start under ~30 s for a 70B FP8 model on 8xH100, no lost requests, idle cost o...
High-Level Design
Gateway (auth, routing, per-deployment queue) sends a scale-from-zero signal to the autoscaler, which asks the scheduler for a GPU node. The node pulls a slim image (cached base layers), mounts or str...