Build with AI

Should you pretrain a model, fine-tune one or use RAG, once you count the real costs?

Published · By Robert Scales, with AI tools · 4 min read

Short answer

For almost every practical task, use RAG for facts that change and fine-tuning for consistent behavior; together they cost little. Pretraining from scratch costs far more for far less capability unless your budget reaches hundreds of thousands of dollars, so it is justified mainly for learning, or when control over data, language or licence is the actual goal.

Our guide to prompts, documents and fine-tuning helps you diagnose a disappointing assistant. This article answers the question that comes next for builders: if you could also train a model of your own from nothing, when would that beat the others?

Three quick definitions. RAG (retrieval-augmented generation) searches your documents and hands the relevant passages to an existing model at question time. Fine-tuning continues training an existing model on your examples. Pretraining builds a new model from random numbers using billions of tokens of text.

The three, side by side

Dollar figures are US dollars, based on list prices read on November 2, 2026 (details).

RAGFine-tuningPretraining, GPT-2 gradePretraining, capable small model
ChangesWhat the model seesHow it behavesEverythingEverything
Data you needYour documentsHundreds to thousands of examplesAbout 37 billion charactersAbout 11 trillion tokens
Training computeNoneAbout 2 GPU-hoursAbout 16 GPU-hoursAbout 221,000 GPU-hours
Compute bill$0 to trainAbout $1.60About $64About $880,000
Skill of the resultThe base model'sThe base model's, focusedWrites fluently, gets facts wrongCompetitive at its size
When a fact changesReplace the documentRetrainNot realisticNot realistic
Who sets the licenceThe base model's ownerThe base model's ownerYou, within your data's termsYou, within your data's terms

The middle columns hold the surprise. Spending 40 times more than a fine-tune gets you a far weaker model, because a fine-tune starts from millions of dollars of someone else's training. You are not paying for capability when you pretrain at small scale. You are paying for understanding and control.

A worked example

A Quebec municipality wants a French assistant for citizens' questions about bylaws, permits and collection days.

Facts change every year, and citizens need the current rule with a reference to it. That is a job for RAG, over the municipality's own documents, on a model with good French. A prompt requiring the answer to quote the bylaw handles most of the behavior.

Say the staff also want each answer in a fixed format, and tests show the prompt alone drifts after thousands of questions. That justifies a fine-tune of a small open model, on a few hundred reviewed examples. RAG continues to supply the facts, since the two fixes stack.

Now someone proposes "our own model", for sovereignty. Pretraining at GPT-2 grade for $64 would produce something that invents bylaws with confidence, and a capable one would likely dwarf any municipal project budget. What the request is really after is usually control: where the data goes and who can change the terms. Running an open-weight model on hardware or a cloud that the municipality chooses answers that for far less, and it needs no training at all.

Try it: Take one AI project you are considering and fill in this sentence: "We need our own model because no existing model can ___, even with our documents and a fine-tune." If you cannot fill in the blank with something you have tested, leave pretraining out of the plan.

Budget the middle options too

Between these columns sit paths the table hides:

  • Distillation: have a strong model label your data, then fine-tune a small one on it. See our explainer, including the terms-of-service limits.
  • Hosted fine-tuning: several API providers offer it, with no GPU to manage.
  • A model with a smaller and cleaner base: fully documented open models let you check what you are building on, which removes part of the reason for pretraining.

When is pretraining from scratch actually justified?

To learn. A $64 run, or a free laptop one, teaches what no article can. This is the most common good reason, and the rented-GPU walkthrough is written for it. Do not expect a product at the end.

For research. Studying how data, architecture or scale change results needs models you control completely.

When the data's provenance is the point. Fine-tuning inherits a base model's unknowns. If you must state exactly what a model read, pretraining on something like the Common Pile, as the Comma v0.1 models did, can answer that in a way a base model usually cannot.

For languages that models serve badly. If your language has little presence in today's models and enough text exists, and fine-tuning on an open multilingual base has been tried and measured, then a purpose-built dataset may be the way forward. The training bill is rarely the first obstacle; gathering the text with the community's consent often is.

As public infrastructure. The Swiss Apertus project is the clearest example: EPFL, ETH Zurich and CSCS published weights, data and recipes, trained on 15 trillion tokens in more than 1,000 languages, using more than 10 million GPU-hours on a national supercomputer. At a commercial $3.99 per GPU-hour, that compute would be about $40 million. It is a decision for institutions with a public mission rather than for a single project's budget. Canada is having the same debate about its own sovereign capacity.

If none of these describes you, the cheaper options will serve you better. OpenAI's accuracy guide gives advice that applies well beyond its own products: measure a baseline first, then try the smallest change that could fix it.

Sources

  1. SmolLM3: smol, multilingual, long-context reasoner — Hugging Face, July 8, 2025
  2. Apertus: a fully open, transparent, multilingual language model — EPFL AI Center, September 2, 2025
  3. Optimizing LLM accuracy — OpenAI

Sources for the articles linked in the text

Each linked article has its own page, with its sources and its date.

From the Guide to Artificial Intelligence, by Robert Scales, published by Holistic Hybrid Inc. Share and adapt it under CC BY-NC-SA 4.0: credit the guide, link to https://guidetoartificialintelligence.com/en/learn/pretrain-vs-fine-tune-vs-rag-2026/, no commercial use without permission, and keep the same licence.

Get the free Guide to Artificial Intelligence

Sign up for the newsletter and receive the free guide: what changed in AI, one lesson, one prompt to try. Unsubscribe in one click.

How we handle your address

Back to top

Display

Your choices are saved in this browser only. No data is sent.

Text size
100%
Colours
Reading
More settings
Accessibility statement

Get the app

Add the guide to your home screen. It opens like an app, and the pages you have read stay available offline.

Read without a connection: download the articles

iPhone and iPad (Safari, Chrome, Edge)

  1. Tap the Share button (the square with an arrow). In Chrome and Edge, it is in the address bar or the menu.
  2. Choose “Add to Home Screen”.
  3. Tap “Add”.

Android (Chrome, Edge, Samsung Internet, Firefox)

  1. Open the browser menu (⋮ or ☰).
  2. Choose “Install app” or “Add to Home screen”.
  3. Confirm with “Install”.

Computer (Chrome, Edge)

  1. Click the install icon at the right end of the address bar, or open the browser menu (⋮ or …).
  2. In Chrome, choose “Cast, save and share”, then “Install page as app”. In Edge, choose “Apps”, then “Install this site as an app”.
  3. Click “Install”.

Mac (Safari)

  1. Open the File menu.
  2. Choose “Add to Dock”.
  3. Click “Add”.

Firefox on a computer can’t install a site as an app. Use Chrome, Edge or Safari instead.