During training, a model’s parameters—its internal weights and biases—are adjusted again and again, using examples and measured errors, until the model performs its task well. When you use the model, a stage called inference, those learned parameters are normally fixed: the model applies them to your prompt, image or other input to produce an output, and nothing inside it is rewritten [1].
That is the whole distinction in one sentence: training determines the weights; inference uses them [1]. It explains why a chatbot can adapt to your instructions without retraining itself, why a model’s built-in knowledge can stop at a cutoff date, and why the cost of creating a model is different from the cost of running it millions of times.
The previous guide, How Does AI Learn From Mistakes? Loss, Backpropagation, and Gradient Descent Explained, described the learning loop that happens during training. This guide draws the line where that loop stops. The guides that come next trace a prompt through a finished model, step by step—work that happens at inference.
TL;DR
- Training creates the model. It repeatedly adjusts internal parameters using examples and measured errors [1].
- Inference uses the model. The learned parameters normally remain fixed while the model processes new input and produces an output [1, 2].
- A chatbot does not usually learn from you in real time. Your messages can shape the current response through context, but they do not automatically update the model’s weights [3].
- A simple test tells the stages apart. If the parameters change, it is training; if they only get used, it is inference [1].
The Two Stages at a Glance
| Training | Inference | |
|---|---|---|
| Purpose | Learn the model’s parameters | Use the learned parameters |
| Input | Large collections of training examples | A user’s prompt, image, record or other new input |
| What happens to the weights | Adjusted repeatedly | Normally left unchanged |
| Main computation | Run examples through the model, measure the error, then work backward to adjust the weights | Run the input through the model only |
| When it happens | Before release and during later model updates | Every time the model is used |
| Typical scale | Large, concentrated training runs | Smaller work per request, repeated continuously |
| Result | A trained or fine-tuned model | A prediction, recommendation or generated response |
An imperfect analogy is education versus work. Training is the period in which an expert develops knowledge and skills. Inference is the moment that expert applies them to a new question. Unlike a person, however, a deployed model does not naturally keep learning from each experience. The sections below take each stage in turn.
What Happens During Training?
Training is the process of finding useful values for a model’s parameters. A neural network begins with parameters that do not yet represent the task. The training system then repeats a two-part cycle: a forward pass runs examples through the model and measures the loss, or error, and a backward pass (backpropagation) adjusts the weights to reduce it [1]. Each example may be used anywhere from a few times to billions of times [1].
This can happen across enormous datasets and many computing chips. The process may take days or months, depending on the model. Meta reported that its Llama 3 405B model used 405 billion trainable parameters, 15.6 trillion pretraining tokens and as many as 16,384 H100 GPUs during its largest training configuration [4].
Training is not always one continuous run. A model may go through broad pretraining and then more targeted stages using instructions, human feedback or specialized data. Those stages are explained in How Does a Raw AI Model Become a Useful Assistant? Pretraining, Post-Training, and Fine-Tuning.
The defining feature of this stage is that the weights change. Every pass through the cycle leaves the model slightly different from before.
What Happens When You Use the Model?
Inference is what happens when a trained model is used on new input. Unlike training, it involves only the forward computation; there is no backward pass [4].
Every time a chatbot answers a question, a phone recognizes a face or a recommendation system ranks a product, a model is performing inference. It loads the learned parameters, processes the input and produces an output. The parameters normally stay unchanged [1, 2].
For a large language model, inference works one token at a time. The model processes your prompt, predicts a likely next token, adds that token to the sequence and repeats until the answer is complete [2]. This is why longer responses usually require more time and computing work. The next several guides in this chapter slow that process down, starting with how a prompt is split into tokens in the first place.
Inference can happen in several places:
- In a cloud data center, where large models run across multiple processors.
- On a phone or computer, where a smaller, optimized model runs locally.
- In batches, where predictions are generated ahead of time.
- On demand, where the system responds to each request as it arrives [1].
The hardware needed depends on the model. Meta reported that its 405-billion-parameter Llama 3 model required 16 H100 GPUs across two machines at 16-bit precision, while Apple has described a roughly 3-billion-parameter model designed to run on its devices [4, 5].
Is It Training or Inference? A Simple Test
Many AI features blur the line in everyday language. One question sorts them: did the model’s parameters change?
- Pretraining on a large dataset: training. The weights are set for the first time [1].
- Fine-tuning a model for a task: training. It is a second, task-specific pass that refines existing parameters [1].
- Giving a prompt a few worked examples: inference. The model adapts its output without any weight updates [3].
- Searching the web or retrieving documents for an answer: inference. The retrieved text is added to the input; the parameters stay the same [6].
- A chat app saving a memory about you: inference plus application storage. The saved note is supplied as input later; the model itself is unchanged.
- A provider using permitted conversations for a later model: future training. It can shape the next version of a model, not the one answering you now [7].
The labels matter because they predict behavior. Anything that happens at inference lasts only as long as the information is supplied again. Anything that happens in training is built into the model until the next training run.
Why Doesn’t a Chatbot Learn From Every Conversation?
A chatbot can follow a correction within a conversation. If you say, “Use shorter sentences,” the next answer may change immediately. That feels like learning, but the model’s parameters have not been updated.
Instead, your instruction remains in the model’s context—the information supplied for the current response. Researchers call the ability to adapt from prompt instructions and examples in-context learning. The GPT-3 paper demonstrated this behavior without any gradient updates or fine-tuning [3].
That means:
- the model can use your correction while it remains in the conversation;
- starting a new chat may remove that information;
- a memory feature may save and reinsert it later (see What Does AI Remember Between Messages—and What Does It Forget? AI Memory, Context, and Retrieval);
- none of those actions necessarily retrains the underlying model.
How Much Can AI Read or Remember at Once? Context Windows Explained covers the temporary information available during a response.
Your conversation may still be stored or used in a future training run if the provider’s policy and your settings allow it [7]. That would help shape a later version of the model; it would not change the model currently answering you. Review each product’s data controls before sharing sensitive information.
How Do Knowledge Cutoffs Fit In?
A model’s built-in knowledge comes from training, so it has an endpoint. If its training data stopped before an event occurred, the model cannot know that event from its parameters.
AI applications work around this at inference time by using tools. A search system can find a current page, or a retrieval system can select relevant passages from a private collection and place them in the model’s context. Retrieval-augmented generation, or RAG, was designed partly to make external knowledge easier to update without retraining the model [6].
The distinction is simple:
- Training places broad patterns and knowledge into the model’s parameters.
- Retrieval during inference gives the model selected information for this request.
If a chatbot cites a news report published today, it is usually reading that source through a tool, not updating its model.
For what training data becomes inside a model, see How Does AI Learn From Examples? Training Data Explained.
Which Stage Costs More?
There is no single answer because the costs have different shapes.
Training a frontier model is a huge, concentrated project. It requires large data collections, specialized chips, engineering time and repeated experimentation. That cost is paid before the model is widely used.
Inference is much smaller for one request, but it happens every time anyone uses the system. At large scale, serving millions or billions of requests can consume more total resources over the model’s lifetime than the original training run.
Developers reduce inference costs with techniques such as:
- quantization, which represents parameters with fewer bits;
- smaller specialized models;
- caching repeated information;
- batching requests;
- more efficient serving software and hardware.
When you see an AI energy or cost claim, check what it includes. A figure for training one model cannot be compared directly with a per-prompt inference estimate. The chips, data centers and energy behind both stages are covered in BuildAIQ’s AI Industry + Infrastructure chapter.
What Is Inference-Time Compute?
Some models spend extra computation while answering. They may produce several candidate solutions, check intermediate steps or generate a longer internal reasoning process before returning a response.
This is often called test-time or inference-time compute. It can improve performance on some problems without changing the model’s parameters. A 2024 study found that extra test-time compute helped a smaller model outperform a much larger one on some math problems, but it helped far less on the hardest questions [8].
The practical trade-off is straightforward: more inference work can improve some answers, but it usually increases delay and cost. It does not replace the knowledge and capabilities acquired during training. How Do Reasoning Models Work? What Changes When AI Gets More Time to Think returns to this later in the chapter.
Why the Difference Matters
Understanding the two stages helps you interpret common AI claims.
“The AI learned from my correction.”
Usually, it used your correction from the current context. The underlying weights did not change.
“This model knows today’s news.”
Only if it was trained recently enough or the application retrieved current information during inference.
“Running AI uses enormous energy.”
Ask whether the claim measures training, inference or both, and whether it describes one request or total usage.
“This model thinks longer.”
That generally means the system spends more computation during inference, not that it retrained itself.
“My data improves the model.”
That can mean the provider may include permitted data in a later training process. It does not mean your conversation updates the live model immediately.
Practical Takeaways
- Separate learning from use. Training changes the model; inference applies it.
- Do not confuse context with permanent learning. Restate important instructions or use an app’s memory controls when appropriate.
- Check current claims. A model needs search or retrieval to use information beyond its cutoff.
- Read privacy settings carefully. A provider may store conversations for future training even though the live model does not learn from them.
- Question cost comparisons. Confirm which stage, hardware and time period a number covers.
- Expect trade-offs from “thinking” modes. More inference compute can improve some responses while increasing time and cost.
The Bottom Line
During training, an AI model acquires its internal patterns by adjusting its parameters. When you use the model, inference applies those fixed parameters to new input.
The model answering your prompt is normally not rewriting itself as you talk. It is using fixed weights plus the information available in the current request. Keeping that boundary clear makes AI behavior, product claims and privacy choices much easier to understand.
With the boundary drawn, the chapter now follows a single prompt through a trained model, beginning with the first step: breaking your text into tokens.
Sources
- Machine Learning Glossary. Google for Developers, 2026-04-10, accessed 2026-10-24.
- Efficient Memory Management for Large Language Model Serving with PagedAttention. ACM SIGOPS 29th Symposium on Operating Systems Principles (SOSP '23); arXiv, 2023-09-12, accessed 2026-10-24.
- Language Models are Few-Shot Learners. arXiv (OpenAI), 2020-05-28, accessed 2026-10-24.
- The Llama 3 Herd of Models. arXiv (Meta), 2024-07-31, accessed 2026-10-24.
- Apple Intelligence Foundation Language Models Tech Report 2025. arXiv (Apple), 2025-07-17, accessed 2026-10-24.
- Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. arXiv (Facebook AI Research; University College London; New York University), 2020-05-22, accessed 2026-10-24.
- Is my data used for model training?. Anthropic Privacy Center, 2026-03-16, accessed 2026-10-24.
- Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters. arXiv (UC Berkeley; Google DeepMind), 2024-08-06, accessed 2026-10-24.
