Home / Glossary / AI Inference
AI Inference
AI inference is the use of a trained model to produce results from new input: answering a question, recognizing an image, generating text. It is the stage where a model does useful work.
In more detail
Machine learning has two phases. Training adjusts a model’s parameters using large amounts of data. Inference runs the finished model, with its parameters fixed, on inputs it has not seen.
The two phases stress hardware differently. Training is a long batch job that needs high numerical precision and large clusters. Inference consists of many separate requests, each of which should be answered quickly and cheaply. It can often use reduced precision through quantization.
For large language models, inference has its own internal structure. The model first processes the whole prompt, then generates output one token at a time, reusing stored intermediate results. and KV cache.
Why it matters
A model is trained occasionally and used constantly. Over the life of a widely used model, inference accounts for most of the computing cost and energy.
That makes inference efficiency a central concern for hardware. The measures that count are response time, requests served per second, cost per request and energy per request. Inference also runs in far more places than training does, from data centers to phones, which is why there is such a variety of AI accelerators and NPUs designed for it.