μ · effective service rate
ΔStep time
=
apfnpfprefill compute
+akvnkvKV-cache I/O
+bfixed
1/μper request
=
apfsprefill compute
+(akv + b/M) m̃memory held
- s, o
- Prompt and output tokens
- m̃ = so + o(o−1)/2
- KV-cache tokens held, summed over every step the request runs (without chunked prefill)
- apf, akv, b, M
- Prefill computational time per prompt token, KV-cache I/O time per token, fixed time per step, and memory size
Fitted on an H800: apf = 2.26×10−5 s/token, akv = 4.11×10−8 s/token, b = 7.79 ms.