Tensorum

LLM Serving, Cost & Performance

Running models fast and affordably at production scale.

AI EngineeringAdvanced6 hrs4 key ideas · 6 topics
0%
your progress

Overview

Running models fast and affordably at production scale.

Key ideas

  • Latency = time-to-first-token + tokens × per-token time; stream to hide it.
  • Continuous batching and paged KV caches raise GPU utilisation dramatically.
  • Quantization (8-bit, 4-bit) cuts memory and cost with small quality loss.
  • Route easy requests to small models and cache repeated prompts and semantic near-duplicates.

Trade-offs

  • Bigger batches raise throughput but hurt tail latency.
  • Self-hosting saves at scale but brings GPU operations in-house.

Topics

TTFT & throughputContinuous batchingKV cacheQuantizationModel routingSemantic cache