In plain words
Fine-tuning is a process in which a base model continues training on a small set of specially selected examples: a question and the desired answer, a source text and the required markup. As a result, the model's internal parameters change, not just the prompt.
The method works well when you need to lock in a manner of communication, a format or a skill: classify inquiries into your categories, write in the brand's tone, extract data from standard documents. But it is a poorer fit for company knowledge: prices change, and retraining the model every time is expensive.
How it works
First you assemble a set of examples, from a few hundred to thousands, and manually check their quality, because the model will copy errors in the data. Then you launch training at a provider or on your own hardware and compare the result with the original model on a separate test set.
After launch, the process is repeated as things change. You need to make sure the model does not "forget" general skills and does not start producing extra output. If the quality is sufficient, you can use a small fine-tuned model instead of a large one and cut costs.
Why a business owner needs it
For most small companies the right order is this: first a good instruction, then a knowledge base with search over it, and only then, if you need a specific style or bulk processing of uniform data, fine-tuning. Each next step is more expensive and needs more data.
Fine-tuning can pay off at high volumes, when a compact specialized model can run in place of an expensive general-purpose one. For one-off tasks and small flows, it is more often excessive.
Example from practice
A call center of a delivery service in Almaty received thousands of inquiries a day and sorted them into five categories by hand. A small model was fine-tuned on labeled examples, and it began classifying emails with accuracy close to an operator's, at a many times lower cost per request.
Common mistakes
- Fine-tuning on low-quality data
- Using fine-tuning instead of a knowledge base for changing information
- Not checking the result on an independent sample
- Loading personal data into training without consent
- Starting with fine-tuning without trying instructions first