Latency and throughput
TTFT, inter-token latency, tokens/sec, and why a fast average can still feel slow.
LLM Inference
Move from a model endpoint to a production serving system: measure perceived latency, budget the KV cache, batch safely, choose precision, and plan capacity before the queue becomes the incident.
TTFT
<500ms
A useful interactive-chat target—not a universal SLA.
ITL
<30ms
A useful smooth-streaming target; verify by workload.
KV cache
<4% waste
PagedAttention paper result; actual headroom depends on model and scheduler.
Interactive visual playground
These are simulated teaching values—not live engine telemetry. Change the inputs to see why a serving configuration is always a latency, memory, and capacity decision.
Free inference library
These public explainers and worksheets use measured results only where a source provides them. Hardware numbers, queue thresholds, and latency baselines are directional until you benchmark your own model, GPU, prompt mix, and concurrency.
TTFT, inter-token latency, tokens/sec, and why a fast average can still feel slow.
Size cache headroom, understand PagedAttention, prefix reuse, and long-context concurrency.
Continuous batching, chunked prefill, queue guards, preemption, and SLO-aware routing.
FP16, FP8, INT8, and INT4 choices for weights and KV cache—with quality gates.
Choose vLLM, SGLang, TensorRT-LLM, llama.cpp, Triton, and routing/autoscaling layers.
Turn SLOs, token mix, KV headroom, and utilization into replicas and runbook decisions.
KV-cache worksheet
This calculator estimates cache occupancy only. Reserve additional memory for model weights, activations, CUDA/runtime overhead, and fragmentation.
128.0 KB
KV cache per token
512.0 MB
KV cache per sequence
20
Theoretical concurrent sequences
Pro serving path
Pro turns the public concepts into a build sequence: create a latency baseline, size KV headroom, configure continuous batching, set admission limits, compare precision with an eval gate, and write a capacity runbook. Live Cohort adds an architecture review and deployment capstone.
The material draws from the LLM-inference guide and vLLM workshop repository, with upstream vLLM results explicitly marked as measured when used. Workshop configuration values are examples, not production defaults.