Serve language models on GPUs fast, cheap and reliably: KV cache, batching, quantization and serving.
Tokens, prefill and decode, the KV cache, memory limits, time to first token and throughput
Counting memory for weights and KV cache, memory bandwidth, tensor and pipeline parallelism, NVLink
FP16, FP8, INT8 and INT4, weight-only or weights and activations, KV cache quantization, measuring quality loss
Continuous batching, PagedAttention, prefix caching, chunked prefill, speculative decoding
vLLM, SGLang and TensorRT-LLM, realistic load tests, speed targets (SLOs), autoscaling, cold starts, cost per million tokens
Prometheus, Grafana and good alerts
Pods, deployments, HPA and graceful shutdown
Golden example sets, code checks, model as a judge, calibrating with human labels, regression tests
Prompts and structured output, token cost, latency and streaming, errors and fallbacks, personal data, prompt injection
Acceptance rule, speed-up math, number of guessed tokens, draft models, n-gram, EAGLE and Medusa, measuring on real traffic
Tensor and pipeline parallelism in depth, all-reduce, many machines, expert parallelism, separate prefill and decode