Training changes a model’s learned parameters through an optimization process. Inference uses a trained model to produce an output for an input. This distinction explains why giving an assistant a new document can change its answer immediately without retraining the model.

Think of a fictional assistant answering questions about room bookings. Training helps establish its general language abilities. During inference, you can supply a booking policy that it has never seen before and ask it to apply that policy to a request.

What changes during training

A training process runs examples through a model, measures an objective such as prediction error, and updates parameters to improve that objective. Pretraining builds broad capabilities from a dataset. Further training can adapt a pretrained model to a task, domain, or desired behavior. Different stages can use different objectives and feedback.

Fine-tuning is additional training. It may update all model weights or only a smaller set of trainable components. For example, LoRA learns low-rank updates while keeping the base weights frozen. The resulting behavior still depends on learned numerical changes, unlike simply adding text to a prompt. LoRA research paper

Training data needs appropriate permissions, preparation, and evaluation. Repeating an error in many examples can teach the wrong pattern very effectively.

What changes during inference

The input, conversation history, retrieved passages, and generation settings can all change. Ordinary inference does not update the model’s learned weights. Temporary internal state, such as a cache used while producing tokens, is different from a trained parameter. Hugging Face text generation

An application may also save preferences or conversation summaries in a separate store. It can insert that information into later requests. This is application memory, not necessarily model training.

Some services separately use eligible interactions for later model improvement. That is a product policy and data-handling question; the fact that a request is inference does not answer whether the provider retains it or later trains on it.

Compare common actions

Action Usually changes weights? What it accomplishes
Add an example to a prompt No Guides the current response
Retrieve a relevant policy No Supplies information for the current request
Save a preferred writing style in app memory No Helps the app construct later context
Fine-tune on approved examples Yes, at least some trainable parameters Adapts model behavior through optimization
Train a student using teacher outputs Yes Transfers selected behavior through distillation

Which approach fits the problem?

For a document that changes weekly, start by supplying or retrieving the current document. For a consistent output format, first try clear instructions, examples, and format validation. Consider fine-tuning when a measured behavior gap remains and you have suitable training and evaluation data.

These approaches can be combined. A fine-tuned model may still need retrieval to answer questions about current information. A large context window does not automatically solve document permissions, relevance, or contradictory versions.

Before choosing, create a few representative questions with expected answers. Include one question whose answer is absent. If an assistant cannot acknowledge missing evidence, uploading more material may conceal the problem rather than solve it.

Check your understanding

You upload a new holiday policy and the assistant immediately uses its rules. Has the model necessarily been retrained?

See the explanation

No. The application may have placed the document or retrieved passages into the model's context. A correct answer demonstrates useful use of context, not evidence that the model's weights changed.

For the mechanics of producing that answer, read What is AI inference?.