Single logo
  • Courses
  • Blog
  • About
Join for freeJoin free
Learning pathDeep Learning for Production: Transformers, Fine-Tuning and Serving
  1. 1
    Dropout, Early Stopping and Batch Norm: Judge Each One by the Validation Curve
  2. 2
    Transfer Learning on Images: A Frozen ResNet-18, a Small Head and an Honest Baseline
  3. 3
    Attention Explained Without the Maths: Query, Key, Value and the Word "it"
  4. 4
    Transformer Building Blocks in PyTorch: Follow the Shapes Through Attention and a Block
  5. 5
    Pretrained Models from Hugging Face: A Sentiment Pipeline and Sentence Embeddings on a CPU
  6. 6
    Loading a Language Model and Running Inference: Download, Load, Tokenize, Generate
  7. 7
    Model Size and Memory: Parameters x Bytes, Quantization, and Where to Run a Model
  8. 8
    Training on a GPU: Mixed Precision, Gradient Accumulation and Checkpoints That Really Resume
  9. 9
    When NOT to Fine-Tune: A Decision Tree of Prompt, RAG, Tools, Then Fine-Tuning
  10. 10
    Full Fine-Tuning vs LoRA vs QLoRA: What Each One Changes and What It Costs
  11. 11
    LoRA Fine-Tune of a Tiny Model: Teach SmolLM2-135M Your House Style on a CPU
  12. 12
    Knowledge Distillation: Teach a Model 100 Times Smaller From a Teacher's Soft Labels
  13. 13
    Serving Open Models: Continuous Batching, vLLM and Cold Starts
  1. Blog
  2. /
  3. Machine Learning
  4. /
  5. Deep Learning

Learning path: Deep Learning for Production: Transformers, Fine-Tuning and Serving · Step 9 of 13

When NOT to Fine-Tune: A Decision Tree of Prompt, RAG, Tools, Then Fine-Tuning

Most teams who ask for fine-tuning need something simpler first. A four-step decision tree (prompt, RAG, tools, then fine-tuning), what fine-tuning really changes, and what it costs, shown on a product assistant that doesn't know its own plans.

Chaand Sheikh

·27 November 2026Deep Learning

What you will learn

  • Name which of four problems a model has: missing knowledge, wrong format, wrong tone, or too slow and costly
  • Walk a four-step decision tree and stop at the first yes
  • Explain why fine-tuning changes behaviour but is weak at fresh facts
  • List the four costs of fine-tuning beyond the training run

Before you start

  • A rough idea of what a large language model does
  • The RAG Pipeline Explained (helpful, not required)

Sooner or later almost every team asks the same question: should we fine-tune the model? The honest answer, most of the time, is not yet. Most teams who ask for fine-tuning need something simpler first. This article gives you a small decision tree to tell the difference.

A bot that doesn't know our product

A software company has built a product assistant, a chatbot that answers customer questions. A customer asks: "Which plan includes single sign-on?" The model has never seen the company's plan list, so it can't answer properly.

The team gets together and somebody says: "The bot doesn't know our product, so let's fine-tune it." It sounds logical. But pause for a second.

Think about a new employee on day one. You give them clear instructions and you hand over the handbook. You don't send them back to university for two years first. Fine-tuning is the university. Usually the new hire just needs instructions and a handbook.

Name the problem first

"The model isn't good enough" can mean four very different things:

ProblemWhat it looks likeWhat's off
Missing knowledgeThe bot doesn't know our plans, prices or policiesThe facts aren't inside the model
Wrong formatWe need clean JSON, the bot writes a paragraphThe shape of the answer
Wrong toneOur brand is friendly, the bot sounds stiffThe voice of the answer
Too slow or too costlyThe answer is fine, but each call takes long and the bill adds upThe size of the model

Each problem has a different first fix. Name the problem before you pick the tool.

The decision tree

Start with an answer that isn't good enough and go down the list. Stop at the first yes.

When to fine-tune: stop at the first yes Start: the answer is not good enough 1. Would clearer instructions and a few examples fix it? yes Improve the prompt no 2. Is the model missing facts it should read? yes Add RAG no 3. Does it need current data, or to take an action? yes Add tools no 4. Style, format or behaviour at scale, or speed and cost? And do you have evaluation data to prove it works? yes Fine-tune
Go down the tree and stop at the first yes. Fine-tuning sits at the bottom, not at the top.
  1. Would clearer instructions and a few examples fix it? Improve the prompt. It's the cheapest and the fastest thing to try.
  2. Is the model missing facts it should read? Add RAG: fetch the right document and put it in front of the model. The RAG pipeline article walks through how that works.
  3. Does it need current data, or does it have to take an action? Add tools. The model calls a function or an API and gets the answer from the system.
  4. Do you need a style, a format or a behaviour at scale, or speed and cost? And do you have evaluation data to prove it works? Only then, fine-tune.

What fine-tuning changes, and what it doesn't

Fine-tuning sits at the bottom because it adjusts habits. It isn't a filing cabinet for facts.

Good at: behaviourWeak at: fresh facts
A steady writing stylePrices that changed this week
A fixed output formatA policy updated yesterday
A consistent toneFacts you must quote exactly
A small model doing one narrow job wellAnything you must trace back to a source

Fine-tuning is like a course that teaches you how to write reports. You wouldn't expect that course to know this week's handbook. Facts change often, so retrieve the facts and train the habits.

What fine-tuning costs

The training run is only one part of the bill:

  • Data. You need many good example pairs, and people have to collect, clean and check them.
  • Training. It takes compute and time. Prices change, so check your provider's pricing page for current rates.
  • Evaluation. You need a test set that proves the tuned model really beats the simple fix. Without it you're guessing.
  • Re-training. When the product changes, the data changes, and the whole run comes round again.

Compare that with RAG. With RAG, a change means editing a document. With fine-tuning, it means another training cycle.

Problem, then first fix

ProblemFirst fixWhy
The bot doesn't know our plansRAGThe facts sit in documents you can update
The bot needs the order status right nowToolsAsk the system, don't guess
The answer must be JSONPromptShow the shape and add examples
The tone is too stiffPromptDescribe the voice and add a sample
Same job, huge volume, must be fast and cheapFine-tuning is a good candidateWith evaluation data to prove it works

So for the single sign-on question, the first fix is RAG: put the plan list in front of the model. Try the cheapest fix first, measure, and only then go further down the tree.

Common mistakes

  • Fine-tuning to add knowledge. Facts trained in go stale with the next price change. Retrieve them instead.
  • Skipping the prompt. Format and tone problems are often fixed by a clear instruction and one example.
  • Fine-tuning without evaluation data. If you can't show the tuned model beats the simple fix, you can't tell whether it helped.
  • Counting only the training run. Data, evaluation and re-training on every product change are part of the cost.

Quick recap

  • Name the problem first: knowledge, format, tone, or speed and cost.
  • Go down the tree: prompt, then RAG, then tools. Stop at the first yes.
  • Fine-tune only for behaviour at scale, or speed and cost, and only with evaluation data in hand.

When fine-tuning does make the cut, the next question is how much of the model to change. That's Full Fine-Tuning vs LoRA vs QLoRA.

Try it yourself

Pick a bot or assistant you'd like to improve. Name which of the four problems it has, walk the tree, stop at the first yes, and write down the fix.

Built this? Share your solution in the StudyEasy AI Community.

Join free on Skool →
← Previous
Training on a GPU: Mixed Precision, Gradient Accumulation and Checkpoints That Really Resume
Next →
Full Fine-Tuning vs LoRA vs QLoRA: What Each One Changes and What It Costs
Single logo

StudyEasy AI Community

Hosted onSkool

Learn AI engineering, share what you build, and connect with other learners.

  • Free resources: lesson files, notebooks and code

  • Ask questions and join engineering discussions

  • Meet real people learning and building with AI

Join free on Skool
Go deeper with a course

Machine Learning Engineer: From First Model to ML Engineer

Learn machine learning in Python, then ship it: data analysis, regression, classification, tuning, deployment and MLOps.View on Udemy ↗: Machine Learning Engineer: From First Model to ML Engineer (opens in a new tab)

Related articles
Why Neural Networks: Pixels, One Neuron and Layers

Why pictures need neural networks: a handwritten digit is 784 numbers, one neuron is a weighted sum plus a bias and one small rule, and neurons stack into layers. Worked out on MNIST with NumPy.

The Forward Pass and Activation Functions: ReLU, Sigmoid, Tanh and Softmax

Follow numbers through a tiny 3-2-3 network in NumPy: one matrix product per layer, ReLU inside, softmax at the end, and a count of every weight and bias.

Loss and Backpropagation: How Wrong, and Who Is to Blame

The loss says how wrong the network was; backpropagation says how much each weight is to blame. MSE and cross-entropy, the chain rule by hand on a two-weight chain, then the same gradients from PyTorch autograd.

The Training Loop: Epochs, Mini-Batches, Learning Rate and Optimisers

How training is organised: shuffle, cut into mini-batches, take one step per batch, repeat per epoch. Real MNIST runs compare three learning rates, SGD against Adam, and show the overfitting signal in the validation loss.

On this page
  • A bot that doesn't know our product
  • Name the problem first
  • The decision tree
  • What fine-tuning changes, and what it doesn't
  • What fine-tuning costs
  • Problem, then first fix
  • Common mistakes
  • Quick recap
  • Try it yourself
Single logo

StudyEasy AI Community

Hosted onSkool

Learn AI engineering, share what you build, and connect with other learners.

  • Free resources: lesson files, notebooks and code

  • Ask questions and join engineering discussions

  • Meet real people learning and building with AI

Join free on Skool
Go deeper with a course

Machine Learning Engineer: From First Model to ML Engineer

Learn machine learning in Python, then ship it: data analysis, regression, classification, tuning, deployment and MLOps.View on Udemy ↗: Machine Learning Engineer: From First Model to ML Engineer (opens in a new tab)

Single logo

Empowering Education, One Course at a Time

About
About usContact usFAQs
Legal
Terms of ServicePrivacy Policy

© 2026 StudyEasy Organization. All rights reserved.