All jobs / AI engineer / Open-Source & Local Models
AI engineer interview question · 3–5 years
You serve a model through an inference server such as vLLM. What does continuous batching give you, and what is the trade-off?
The strongest answer
It runs many requests together and admits new ones as others finish, so the GPU stays busy and throughput rises. Each request slows under load, so I set concurrency limits against a latency target
Why it works
Right — throughput and cost per token improve, and per-request latency is what you pay. Measure time to first token and tokens per second separately, under realistic load.
What a good answer covers
- Batching trades latency for throughput.
- Requests share the GPU continuously.
- Cap concurrency to a latency target.
- Measure first-token time and tokens per second.
Answers that fall short
- Close, but not the strongest: It groups requests so the GPU does more work at once, which makes things faster for everyone
Throughput goes up, but “faster for everyone” hides the trade: an individual request can get slower as the batch fills. - Weak: Batching is for offline jobs; in a chat product every request needs a GPU to itself
One request per GPU wastes most of the hardware. Interactive serving relies on batching; that is why these engines exist. - Red flag: Set the concurrency limit as high as it goes and skip the load test — the server sorts it out
No limit and no load test means you find your ceiling in production, as timeouts, with users watching.
Who gets asked this
More Open-Source & Local Models questions
- Leadership asks whether to self-host an open-weight model or keep paying for a hosted API. How do you frame…
- A customer insists that the model must run locally “for privacy”. What do you do with that requirement?
- What is the difference between an “open-weight” model and an open-source one, and why does it matter to you…
- What does a bigger model buy you, what does it cost, and how do you choose a size?
- What is quantization, and what do you give up for it?
- The team wants to serve real users from the laptop prototype’s local runner. What do you tell them?
- A self-hosted model runs out of GPU memory only on long prompts or with several users. Why, and how do you…