HowDoesAIDoThat?

Glossary / plain-language definition

What is AI inference?

AI inference is what happens when you use a trained model: it processes your input and produces an answer, image or another result.

By HowDoesAIDoThatSources checked 11 October 2026
Example

You submit “Explain this invoice in three bullet points”. A language model processes the request and generates its reply.

Inference means putting a trained model to work

Ask a chatbot a question, generate a picture or transcribe a voice note: each uses inference. Training is how a model learns its patterns. Inference is how it uses those patterns on a new input. IBM explains the distinction.

  1. 01 / inputSupply a prompt

    Text is represented as tokens, ready for the language model.

  2. 02 / processingUse trained weights

    The model processes the context and predicts subsequent tokens.

  3. 03 / outputGenerate an answer

    Chosen tokens form the response.

For a language model, here is what happens between your question and its reply.

1. The app prepares your request

Your message may travel with earlier conversation, instructions and attached documents. If you ask “Explain this invoice in three bullet points”, the invoice needs to be part of that input. Some apps also retrieve information or call tools, such as a calculator. Those steps give the model extra material to work with.

Chat templates organise the messages into the format a particular model expects. A configured chat app usually handles this for you.

2. Text becomes tokens

A tokenizer breaks the text into units called tokens and gives each one a numerical ID. A token might be a word fragment, punctuation or a special marker. Different models split text differently, so tokens and words are not interchangeable.

Your question may be short, but a long invoice and previous messages can still make a large input. See how tokenization works.

3. The model reads the context

This first processing stage is called prefill. A typical Transformer builds a cache of information it can reuse while writing its reply. That cache is one reason longer conversations use more memory.

A pause before the first word can also include model loading or a server queue. NVIDIA explains prefill and decode.

4. The answer grows token by token

During decode, the model scores possible next tokens. Its generation settings determine which one is chosen, then the process repeats until the reply reaches a stopping point. The app turns those tokens back into readable text and may display them as they arrive. Generation strategies explain the available approaches.

For the invoice example, check the finished summary against the original dates and amounts. A fluent reply can still contain a mistake.

Does a conversation train the model?

Ordinary inference uses the model's existing weights; it does not update them with every message. Adding an invoice changes what the model can use in that conversation. Fine-tuning is a separate process that changes the weights.

An app may save your history or use interactions for later training. Its privacy settings and policies tell you how it handles those records.

Where does inference happen?

Local inference runs on your hardware. Cloud inference runs on a provider's servers. Either can have a browser interface, so check the selected model and connection when location matters.

Local tools give you control over your setup and files. Cloud tools let a basic computer use models hosted elsewhere. Memory, model size and the amount of input all affect the resources needed; IBM Research explains these deployment choices.

Sources

Primary references checked 11 October 2026.