# Fine-tuning

> Canonical: https://skillalmanac.com/glossary/fine-tuning | Last verified: 2026-11-25 | Index status: index-eligible

Fine-tuning is further training of a pre-trained model on a smaller, task-specific dataset so that it adapts to a domain, task or style. It changes the model's weights, unlike prompting or retrieval.

Also called: fine tuning, finetuning, fine-tune, model fine-tuning.

## In plain language

Fine-tuning continues training an already trained model to adapt it to a task or domain. For example, a text model can receive task-specific examples, while an image model can be adapted to classify a new image collection. Which weights are trained depends on the technique. Prompting changes the supplied input rather than running an additional training procedure.

## Technical definition

Fine-tuning continues training a pre-trained model's parameters on a smaller dataset of inputs and desired outputs, which IBM describes as a form of transfer learning. Anthropic's glossary says it causes the model to mimic the patterns of the fine-tuning data and notes the Claude API does not currently offer it. OpenAI's guide presents it as a complement to prompt engineering and says it is winding down its fine-tuning platform to new users.

## How it shows up when you use agents

Most people who run Claude Code, Codex or Cursor never fine-tune anything. The model in your agent is already fine-tuned by its maker to follow instructions and act as an assistant. What you change is the input: instruction files, skills, tool access and the files you put in front of it. Those change behaviour at [inference](/glossary/inference) time and leave the weights alone.

The question that comes up is when to move from instructions to fine-tuning. OpenAI's guide recommends starting with prompting and treating fine-tuning as a complement. It lists uses such as classification, a specific output format and correcting instruction-following failures. It also says fine-tuning can let you use shorter prompts, which lowers token costs at scale. Availability matters too: Anthropic says its API does not currently offer fine-tuning, and OpenAI says it is winding down its platform for new users. Check the vendor's current page before planning around it.

If you want a model to use your own documents, [retrieval-augmented generation](/glossary/retrieval-augmented-generation) is the usual first choice, because updating the knowledge means re-indexing, not retraining. Whatever route you take, build a test set first so you can tell whether the change helped. See [Prompt engineering](/glossary/prompt-engineering).

## Common confusions

- **Fine-tuning versus prompting.** Prompting changes the input to an unchanged model. Fine-tuning changes the model's parameters. Prompting is faster to try and easy to undo.
- **Fine-tuning versus RAG.** Retrieval supplies external information for generation. Updating the retrieved documents need not change model weights, whereas fine-tuning changes trained parameters. RAG and fine-tuning can also be combined, as in the original RAG paper. See the [what is RAG guide](/learn/what-is-rag).
- **Fine-tuning versus training from scratch.** Fine-tuning starts from a pre-trained model, which IBM describes as transfer learning. Training from scratch starts with random weights.
- **Myth: you can fine-tune any model you use.** Whether a vendor offers it varies and changes, so confirm in its own documentation.

## Worked examples in this catalogue

### [llm-eval-test-sets](https://skillalmanac.com/skills/skill-almanac/llm-eval-test-sets)

```
Give the skill examples of the task your LLM feature should do.
```

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A validated eval dataset, with a checker that reports duplicates, missing graders and imbalance.

Why it exercises the concept: Fine-tuning needs examples of the behaviour you want, and you need a test set to know whether it helped. Building that dataset is the first step either way.

### [huggingface-datasets](https://skillalmanac.com/skills/huggingface/huggingface-datasets)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Metadata, rows, search results and filters from a Hugging Face dataset, read through the Dataset Viewer API.

Why it exercises the concept: Fine-tuning starts from a dataset. This skill lets an agent inspect an existing one before you decide whether to use it.

### [What Is RAG? Retrieval-Augmented Generation Explained](https://skillalmanac.com/learn/what-is-rag)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The guide explains retrieval-augmented generation, where documents are fetched at question time and the model's weights are left unchanged.

Why it exercises the concept: RAG is the usual alternative to fine-tuning when the goal is to give a model your own knowledge.

### [skill-creator](https://skillalmanac.com/skills/anthropic/skill-creator)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A new skill, or an improved existing one, with a measurement of how well it performs.

Why it exercises the concept: A skill changes behaviour by giving the model written instructions at run time. It is the no-training alternative when the model's weights should stay as they are.

## Related terms

- [Machine learning (ML)](https://skillalmanac.com/glossary/machine-learning.md)
- [AI model](https://skillalmanac.com/glossary/ai-model.md)
- [Large language model (LLM)](https://skillalmanac.com/glossary/large-language-model.md)
- [Retrieval-augmented generation (RAG)](https://skillalmanac.com/glossary/retrieval-augmented-generation.md)
- [Prompt engineering](https://skillalmanac.com/glossary/prompt-engineering.md)
- [Inference](https://skillalmanac.com/glossary/inference.md)
- [Instruction tuning](https://skillalmanac.com/glossary/instruction-tuning.md)

## Sources

- [Glossary](https://platform.claude.com/docs/en/about-claude/glossary), Anthropic (Claude Docs) (accessed 2026-11-23)
- [Model optimization](https://developers.openai.com/api/docs/guides/model-optimization), OpenAI API documentation (accessed 2026-11-23)
- [What is fine-tuning?](https://www.ibm.com/think/topics/fine-tuning), IBM (accessed 2026-11-23)
- [Transfer learning and fine-tuning: MobileNet image classification](https://www.tensorflow.org/tutorials/images/transfer_learning), TensorFlow (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-25. [Glossary index](https://skillalmanac.com/glossary.md).
