Skip to main content
Deployment & Operations

Model Latency

Model latency is the time between request and response for a model inference call. For LLMs it decomposes into time-to-first-token (TTFT, dominated by the prefill stage) and time-per-output-token (TPOT, dominated by autoregressive decoding).

AIDOLS Research Team · Editorial standards

Full definition

Total latency = TTFT + (output_tokens × TPOT). TTFT scales with input length and KV-cache state; TPOT scales with model size, batch size, and tensor-parallelism config. Targets vary: voice agents need TTFT < 300ms and TPOT < 50ms (>20 tok/s); document summarization tolerates seconds. Optimization techniques: prompt caching (cuts TTFT by up to 85% on long prompts), speculative decoding (cuts TPOT 2–3x), quantization, smaller models for latency-critical paths.

Why it matters

Latency is the single biggest determinant of perceived quality in real-time AI products. Procurement should require TTFT and TPOT P50/P95 numbers under target load — not just "average latency" marketing claims.

Example

A customer-service agent with prompt caching: TTFT P50 = 250ms (cached) vs 1.8s (uncached); TPOT = 12ms. Net effect: cached responses feel instant, uncached feel slow.

Next steps

More deployment & operations terms

Source & further reading

Primary source: Databricks — "LLM Inference Performance Engineering: Best Practices" (2023).

Citation policy: this entry is part of the AIDOLS AI Implementation Glossary and may be quoted for research, journalism, and education with attribution to aidolsgroup.com/en/glossary/model-latency/.