Skip to main content

You will self-host an open-weight LLM for an internal assistant used by 8,000 employees. How do you work out how many GPUs you need?

Deployment and LLMOps · Pro 2

Short answer

Estimate peak load, not the average: concurrent requests at the busiest hour, with typical input and output tokens. Load test one replica to find the throughput it sustains while meeting the latency target. Divide peak load by that number, then add headroom for spikes and one failed node. Check the result with a full load test and plan autoscaling.

Deeper answer

The number of users says little. What matters is how many requests arrive in the busiest minutes and how long each one is. From pilot logs or a careful guess I would get requests per second at peak, and the token profile: perhaps 1,500 tokens in and 300 out. Output length drives the time each request holds a place in the batch.

Then measure. Serve the model on one GPU with a batching server such as vLLM, and raise concurrency until time to first token or total latency breaks the target. That gives the safe capacity of one replica. It depends on the model size, quantisation and context length, so it cannot be looked up. Replicas needed is peak divided by that capacity, plus headroom of perhaps 30%, plus one spare so a node failure does not cause an outage. Because GPU nodes start slowly, autoscaling must act early or keep a warm minimum. Interviewers listen for peak load, measured throughput under a latency target, and headroom.

What a strong answer covers

Answer it out loud in the mock interview about 2.5 min

Follow-ups to expect

Common mistakes

Learn it

Latency budgets and load testing

Practice Deployment and LLMOps questions

More on this topic

Today's AI turns are used

Lessons, roadmaps, videos, practice cards and the code playground stay free with your account, with no limit.