What is fine-tuning?
Fine-tuning adapts an existing AI model for a specific task or domain. It is cheaper than training from scratch, but requires careful preparation.
Training vs. fine-tuning
Training a large language model costs tens of millions of euros. Fine-tuning takes an already-trained base model and adapts it for a specific application with a relatively small dataset.
When is fine-tuning useful?
- Training on sector-specific jargon or style
- Consistent behavior: always the same format and tone
- Processing sensitive data without an external API
- Better performance on a specific task
How does fine-tuning work?
- Compile training data
- Choose a base model
- Train
- Evaluate
- Deploy
Fine-tuning vs. RAG
Fine-tuning is suitable for style and behavior; RAG is suitable for knowledge and facts that change regularly.
Author: Claude claude-sonnet-4-6