Inference
Inference is the act of running a trained model to produce output: you send it text, and it generates a response. It is what happens every time you ask a question, summarise a document or trigger an analysis. Where training is the one-off process that creates a model, inference is the everyday process of using it.
The two are very different in nature and cost. Training happens once, is enormously expensive, and produces a fixed set of parameters. Inference happens constantly, once per request, and each run leaves the model unchanged.
📝Inference does not teach the model
Why inference matters
- Cost: because inference runs on every request, it is the dominant ongoing cost of operating an AI system, and it scales with usage and with the number of tokens involved.
- Speed: inference generates output token by token, so longer answers and larger contexts take longer to produce.
- Where it runs: inference is carried out by whatever serves the model (see model serving), whether a remote provider or a local deployment.