Fine-tuning starts with a pretrained model and updates its learned parameters, or trains additional adaptation parameters, using a more targeted dataset. For foundation models, this often means teaching a model to follow particular instructions, classify specialized inputs, or generate responses in an established format. Unlike adding examples to a prompt, fine-tuning produces a reusable model adaptation that persists across inference requests.
The starting model can come from a commercial model provider, an open-source or open-weight model repository, or an organization's own pretraining effort. Open-weight availability does not automatically mean unrestricted use: engineers must check licensing, commercial-use permissions, supported architectures, and whether modification and redistribution are allowed. A model available through an inference API is not necessarily available for fine-tuning. Model selection should consider baseline quality, supported languages, context length, customization support, and serving requirements.
Pretraining builds broad capabilities from large datasets and generally requires substantially more data and compute than adapting a suitable existing model. Continued pretraining extends that process, commonly using unlabeled domain text and a language-modeling objective. Task-oriented fine-tuning commonly uses curated instruction-response or input-output examples. Terminology can overlap, so distinguish the training objective and data format rather than assuming every customization job performs the same operation. Distillation is another approach: a smaller student model learns from a teacher model's outputs or other training signals, potentially reducing inference cost after additional training and evaluation.
A practical lifecycle begins with a measurable requirement and a baseline. For example, a support team might need consistent issue classification and structured summaries. Engineers first test an existing model with clear prompts, then collect representative examples if those prompts are insufficient. Data preparation includes removing duplicates, correcting labels, checking usage rights, protecting sensitive information, and separating training, validation, and held-out test data. Splits should avoid leakage between related records, such as multiple messages from the same support case.
In the cloud, managed customization jobs or managed training infrastructure load a base model and dataset, run training, and store the resulting artifacts. Full fine-tuning updates all model weights and can require significant accelerator memory. Parameter-efficient fine-tuning, such as low-rank adaptation, trains a smaller set of parameters and can reduce training memory and artifact storage. It does not automatically guarantee lower inference latency or lower serving charges; those depend on the model, adapter implementation, deployment configuration, and service pricing.
Cost comparisons must include the complete application lifecycle. In-context learning avoids training by placing instructions and examples in requests, but repeated examples consume input tokens and context capacity. Retrieval-augmented generation, or RAG, adds ingestion, indexing, storage, and retrieval costs while supplying relevant external information at request time. Fine-tuning adds dataset preparation, training, evaluation, model storage, and potentially dedicated hosting costs. It may enable shorter prompts or acceptable results from a smaller model, but savings must be measured at the expected request volume. Pretraining from scratch is usually the highest-investment option when an appropriate pretrained model already exists.
Fine-tuning is usually better suited to changing behavior than maintaining a frequently changing factual knowledge base. For example, tune a support assistant to produce consistent summaries, but retrieve current product policies through RAG. These techniques can be combined. Fine-tuning does not guarantee factual accuracy, eliminate hallucinations, enforce authorization, or reliably erase sensitive information from training data. It is also different from hyperparameter tuning, which searches settings such as learning rate rather than serving as a synonym for model adaptation.
Before deployment, compare the adapted model with the baseline on task accuracy, format compliance, safety, bias, latency, and total cost. Watch for overfitting and catastrophic forgetting, where adaptation damages previously useful capabilities. Deploy a versioned model with rollback support, monitor operational and quality metrics, and collect appropriately governed feedback. Production feedback becomes training material only after review and a subsequent training run; ordinary inference does not automatically update model weights.