When to Fine-Tune, and When Not To
Fine-tuning means training an existing AI model a little more on your own examples, so it picks up a new habit. It is a useful skill. But most people who think they need it do not. A better prompt or a search step (RAG) solves most problems faster and for free.
This lesson helps you decide. By the end you will know when fine-tuning is the right tool, and you will have a clear plan for the rest of the course.
What You'll Learn
- What fine-tuning changes in a model, and what it does not change
- The three main ways to make a model fit your task: prompting, RAG and fine-tuning
- A simple decision table you can use for any project
- What you will build in this course, and what you need before you start
What Fine-Tuning Changes
A large language model (LLM) learns in two big steps. First it reads a huge amount of text and learns to predict the next word. Then it is trained on example conversations so it behaves like a helpful assistant. If you want a refresher on these steps, see our free course How LLMs Work and the lesson on supervised fine-tuning in Reinforcement Learning and RLHF Explained.
When you fine-tune, you add a third, small step. You show the model a few hundred or a few thousand examples of the behavior you want. The model adjusts its numbers (its weights) to copy that behavior.
Fine-tuning is good at teaching:
- A format. For example, always answer in a fixed JSON shape.
- A style or tone. For example, reply like your support team, short and polite.
- A narrow task. For example, sort support tickets into 8 categories.
- Shorter prompts. Rules you used to repeat in every prompt can move into the model itself.
Fine-tuning is bad at teaching:
- New facts that change. Prices, policies, today's news. The model may mix them up, and you have to retrain every time they change.
- Exact recall. It does not store your documents like a database. It may make up details that sound right.
Your Three Options
| Option | What you do | Cost and effort | Best for |
|---|---|---|---|
| Prompting | Write clear instructions and a few examples in the prompt | Minutes, free | Most tasks. Always try this first |
| RAG (retrieval-augmented generation) | Search your documents and paste the relevant parts into the prompt | Hours to days | Answers based on your own, changing facts |
| Fine-tuning | Train the model on your own examples | Days, a GPU, good data | Fixed format, tone or narrow task that prompting cannot fix |
We compare these three in more detail in the blog post RAG vs Fine-Tuning vs Prompt Engineering. If RAG sounds like your answer, our course Local RAG for Beginners is a good next step.
The Decision Table
Ask these questions in order. Stop at the first "yes".
| Question | If yes |
|---|---|
| Haven't tried a clear prompt with 3 to 5 examples yet? | Prompting. Try that first |
| Does the model need facts from your documents, or facts that change often? | RAG |
| Do you have fewer than about 100 good examples? | Collect more data first |
| Does a big model with a good prompt already work, and you only want it cheaper or private? | Fine-tune a small model to copy it |
| Do you need a fixed format, tone or label set that prompts keep getting wrong? | Fine-tuning |
Two things often go together. Many real systems use RAG for facts and a small fine-tuned model for format and tone. You do not have to pick only one.
Why Fine-Tune a Small Open Model?
This course fine-tunes a small open model. "Open" (or "open-weight") means you can download the model's weights and train them yourself. "Small" means about 1 to 4 billion parameters, small enough to train on a free GPU.
A small fine-tuned model has real benefits:
- It runs on your own computer. Your data does not leave your machine.
- It is cheap to run. No per-message bill.
- It can beat a much bigger model on one narrow task, because it only has to do that one thing well.
The trade-off: a small model is weaker at general reasoning. Fine-tune it for a focused job, not to become a smarter all-round assistant.
What You Will Build
Across this course you will follow one example project from start to finish: a small model that turns messy customer messages into a short, structured support ticket. You can swap in your own task at any step.
Here is the plan:
- This lesson: decide if fine-tuning fits.
- Lesson 2: understand how LoRA lets you train a model on a free GPU.
- Lesson 3: build a clean dataset.
- Lesson 4: train the model in Google Colab.
- Lesson 5: test it before and after training.
- Lesson 6: save it, share it and run it on your own computer.
What You Need
- Basic Python. You should be able to read a
forloop, a list and a dictionary. If you are new to Python, take a beginner Python course first. - A Google account for Google Colab, which gives free GPU time in your browser.
- A free Hugging Face account at huggingface.co, to download models and share your own.
Important: our in-browser code playground cannot run this course's code. Fine-tuning needs a GPU and large libraries. Every code block in this course is meant to be copied into a Google Colab notebook. Lesson 4 shows you how to set that up.
If you want to understand the deep learning ideas under the hood, such as tensors, layers and training loops, our Deep Learning with PyTorch course covers them in depth. You do not need it for this course.
Key Takeaways
- Fine-tuning trains an existing model a little more on your examples. It teaches format, style and narrow tasks well, and changing facts badly.
- Always try a good prompt first. Use RAG when answers depend on your documents.
- Fine-tune when prompts keep failing on a fixed format, tone or task, and you have at least about 100 good examples (a few hundred is better).
- Small open models (about 1 to 4 billion parameters) can be fine-tuned for free in Google Colab and run on your own computer.
- The code in this course runs in Google Colab, not in our browser playground.
Cuestionario
A continuación · Lección 2 de 6
How Fine-Tuning and LoRA Work
5 min de lectura
1 de 6 lecciones completadas

Pregúntale a Byte sobre esta lección
Un chat privado sobre esta lección. Byte ha leído toda la lección, responde en segundos y muestra la sección de donde sale cada respuesta. Puedes preguntar en cualquier idioma.
Preguntas y respuestas
Preguntas públicas sobre esta lección. El AI Tutor responde al momento en tu idioma, el equipo de FreeAcademy revisa las respuestas y cualquier estudiante puede leerlas.

