indexInference Systems#inference#optimization#serving#latency#cost

Inference & Optimization

You train a model once but serve it forever, so inference is where most of the cost and latency of an AI product live. This branch is the systems side of running models: how to make them fast, cheap, and scalable without retraining.

Mental model

Inference is a scheduled flow of tensor kernels and memory movement under a latency objective. Prompt processing and token-by-token decoding have different bottlenecks; batching, cache policy, precision, model shape, and hardware determine the feasible quality-cost envelope.

Roadmap: measure the workload

Make serving faster

Make serving cheaper

Run it in production

Connects to: From Prompt to Generated Token · MLOps · Latency, Cost, and Quality

Core sources