AI Engineering

Serving simulator

Continuous batching on a simulated GPU: arrival rate, batch size, context length and quantisation vs throughput, TTFT, inter-token latency and the KV-cache ceiling.

Real vs simulated: A queueing model with published-shape memory maths, not a benchmark of any engine.

Scheduler
TTFT p50 / p95
91 ms / 239 ms
Inter-token p50 / p95
16 / 73 ms
Output tokens/s
1,654
Mean batch
35.6
Max queue
0
KV cache peak
32%
  • sequences running
  • requests waiting
03059arrivals stop (60s)

Capacity planning

One replica sustains about 6.0 req/s at saturation. Planning at 70% utilisation, 30 req/s needs 8 replicas (8 GPUs) — about $0.88 per million output tokens at your GPU price, before idle time.

A step-level queueing model: each decode step takes the larger of the memory time (weights + KV caches over bandwidth) and compute time (prefill + decode FLOPs), at 50% of spec-sheet peak. Real engines (vLLM, SGLang, TensorRT-LLM) add paged attention, prefix caching and speculative decoding on top. Enter a current GPU price; this lab doesn’t ship one.