Inference
In short
Inference is the stage where a finished AI model is actually used: it takes a new input, such as your question, and produces an output, such as an answer. It is separate from training, when the model learns.
- Also called
- AI inference, Model inference, Inference time
- Topic
- The basics
- Level
- Beginner
Every AI model has two lives. In training, it is shown huge amounts of data and its internal numbers, called weights, are adjusted over and over. In inference, those numbers are fixed and the model simply applies what it learned to something new. Nvidia describes inference as the point where "capabilities learned during AI training are put to work"1.
Each time you send a message to a chatbot, the provider runs inference on its servers. For a language model, that means working out the reply one token at a time. Inference skips the hardest part of training: it does not need the backward pass that adjusts the weights2.
Inference still needs serious hardware for large models. Meta reports that its Llama 3 model with 405 billion parameters does not fit in the memory of a single machine with eight Nvidia H100 chips at standard precision, so it splits the work across machines or uses lower-precision numbers2.
Because training happens once but inference happens every time someone uses a model, chip makers build hardware just for it. Google said in 2017 that its Tensor Processing Unit, in its data centres since 2015, was designed to speed up the inference phase of neural networks3.
Inference is also what you pay for when using an AI API. Anthropic, for example, charges per million tokens in and out, with Claude Sonnet 5.5 at $2 per million input tokens and $10 per million output tokens4.
Example
When you ask a voice assistant for tomorrow's weather in Manchester, the model that turns your speech into text and works out your request is running inference. Nothing about the model changes; it just uses what it already knows.
Why it matters
Inference is where AI meets real people, so it drives the running cost, speed and energy use of every AI product. It explains why providers charge per token and race to build cheaper chips.
Questions people ask
What is the difference between training and inference?
Training is when a model learns, with its weights adjusted again and again using data. Inference is when the finished model is used on new inputs and its weights stay fixed12.
Does an AI model learn from me during inference?
Not during the inference itself. The weights do not change while it answers you2. A company may separately choose to use conversations as data for future training, which is a policy question rather than part of inference.
Related terms
Tools that use it
Sources
- Nvidia (2016, updated 2025), What's the Difference Between Deep Learning Training and Inference?
- Grattafiori et al. (2024), The Llama 3 Herd of Models, arXiv:2407.21783, section 6
- Jouppi et al. (2017), In-Datacenter Performance Analysis of a Tensor Processing Unit, arXiv:1704.04760
- Anthropic, Claude models overview (pricing table)