Price a latency target
NumericalIntermediate⏱ 30 minAI Systemscostlatencyutilisationtradeoff
Problem
A replica costs $2.80 per hour and can emit 4000 tokens per second at saturation. Its bare mean service time is .
- Derive cost per million tokens as a function of the mean-latency target , in units of .
- Tabulate it for .
- A product team asks to move from to . By what factor does unit cost rise?
- Batch and interactive traffic currently share one pool at . Half the tokens are batch and could tolerate . What is the blended saving from splitting the pools?
Compute the requested quantities and say what they mean. A number without an interpretation is not an answer.
Solution
Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.
Related problems
All problems| Solved | Problem | Field | Type | Difficulty | Time |
|---|---|---|---|---|---|
| Sizing best-of-n | Agents | Numerical | 15 min | ||
| Derive the M/M/1 queue from detailed balance | AI Systems | Proof | 1 hour | ||
| Simulate M/M/1 and verify the utilisation wall run | AI Systems | Coding | 1 hour | ||
| Single-stream decode latency floors | LLM Ops | Numerical | 30 min | ||
| Size a serving cluster and find the binding constraint | AI Systems | Numerical | 1 hour |