Skip to content
MintFlow Articles

What is fine-tuning an AI model? Full training vs LoRA, costs and when to skip it

How fine-tuning changes a model's weights, why LoRA made it cheap, when prompting or RAG works better, and where you can still fine-tune now that OpenAI is closing its service

On this page
  1. What is fine-tuning, in plain terms?
  2. What is fine-tuning actually good for?
  3. Types of fine-tuning: supervised, preference and reinforcement
  4. Full fine-tuning vs LoRA: what's the difference?
  5. Full fine-tuning
  6. LoRA and adapters
  7. QLoRA: fine-tuning on one GPU
  8. Does LoRA give up quality?
  9. Fine-tuning vs RAG vs prompting: which should you use?
  10. Why fine-tuning is bad at teaching facts
  11. Try prompting first
  12. Where can you fine-tune an AI model in 2026?
  13. OpenAI is shutting its fine-tuning service
  14. Anthropic doesn't offer fine-tuning for current Claude models
  15. Google: only through its enterprise platform
  16. Microsoft Foundry
  17. Mistral
  18. Open-weight models: Together AI, Bedrock and your own GPU
  19. How much does fine-tuning cost?
  20. How to fine-tune a model, step by step
  21. What can go wrong with fine-tuning?
  22. Frequently asked questions

Fine-tuning is extra training for an AI model that already exists. You take a pretrained model, such as Google's Gemma 4 or OpenAI's gpt-oss, and keep training it on a few hundred or a few thousand examples of the job you want done, so the new behavior lives in the model's weights instead of in a long prompt. It's good for teaching a model a format, a tone or a narrow task, and a poor way to teach it new facts.

The bigger news in late 2026 is where you can still do it. OpenAI closed its fine-tuning service to new customers in May and stops all new training jobs on 15 December 2026. Anthropic's API doesn't offer fine-tuning for current Claude models, the Gemini API dropped it in 2025, and Mistral has marked its fine-tuning API as deprecated. For most developers, self-serve fine-tuning now means open-weight models. Below: how it works, full fine-tuning vs LoRA, when prompting or retrieval is the better choice, what it costs and what can go wrong.

What is fine-tuning, in plain terms?

Training a large language model happens in two broad stages. Pretraining is the expensive part: the model reads trillions of words and learns to predict the next one. Fine-tuning comes after. Anthropic's glossary defines it as further training a pretrained model on additional data, so the model starts to mimic the patterns in that data. The chat models you use are already fine-tuned: Anthropic notes that Claude was fine-tuned to be a helpful assistant before you ever see it. Our explainer on what a large language model is covers the pretraining side.

A useful way to picture it: pretraining gives a new hire a general education, and fine-tuning is the stack of worked examples that shows them how your team does things. After enough examples, they stop needing the instructions repeated every time.

The training data is usually a file of example conversations. OpenAI's format is JSONL, one example per line, each holding a user message and the ideal assistant reply. Its guide sets a minimum of 10 examples and suggests starting with 50 well-made ones, noting that results often improve going from 50 to 100.

What is fine-tuning actually good for?

The providers' own docs agree on a short list:

  • Consistent formats. Output that always matches a schema, a template or a house style.
  • Narrow tasks. Google's tuning docs list classification, summarization, extractive question answering and chat. OpenAI adds nuanced translation and fixing cases where a model doesn't follow instructions.
  • Shorter prompts. If you're pasting the same 20 examples into every request, training them in can cut tokens and latency, a benefit both Google and Microsoft mention.
  • Better tool use. Microsoft says training examples can improve how a model picks tools and fills in their arguments.
  • Making a small model do a big model's job. Microsoft describes using examples written by a larger "teacher" model to train a smaller, cheaper one, a technique usually called distillation.

What's missing from that list is "learning our documents." That's not an accident, and it's covered below.

Types of fine-tuning: supervised, preference and reinforcement

Microsoft Foundry's docs group the main methods by the kind of signal you give the model:

Method What you provide When it fits
Supervised fine-tuning (SFT) Prompts and the ideal response for each You can show exactly what a good answer looks like
Preference fine-tuning (DPO) A preferred and a rejected response to the same prompt Quality is about taste, such as tone or completeness, not one right answer
Reinforcement fine-tuning (RFT) Prompts plus a grader that scores the model's answers Many answers could be right, and you can score them reliably

A fourth approach, continued pretraining, feeds the model large amounts of unlabeled text from your domain, such as internal reports or legal filings. It's closer to the original pretraining; Mistral's Forge, for example, offers it to companies with large internal datasets. Start with supervised fine-tuning unless you have a clear reason not to.

Full fine-tuning vs LoRA: what's the difference?

Every method above can be run in two ways: update all of the model's weights, or freeze them and train a small add-on.

Full fine-tuning

Full fine-tuning adjusts every parameter in the model. The result is a complete new copy of the model, as large as the original, and training it needs enough GPU memory to hold the weights plus everything the optimizer tracks for each of them. For a model with tens of billions of parameters, that means data-center hardware.

LoRA and adapters

LoRA, short for low-rank adaptation, is the trick that made fine-tuning cheap. A paper led by Edward Hu, first posted in June 2021, proposed freezing the original weights and training a pair of small matrices alongside selected layers instead. Compared with fully fine-tuning GPT-3 175B, the authors reported about 10,000 times fewer trainable parameters, about a third of the GPU memory and quality on par with full fine-tuning on the models they tested. Because the small matrices can be merged back into the weights after training, a LoRA model runs as fast as the original.

In practice, LoRA trains roughly 0.1% to 1% of the parameters full fine-tuning would, according to Together AI's docs, which make it the default on that platform. The result is a small adapter file rather than a whole model, and you can keep several adapters for one base model and swap between them. Hugging Face's open-source PEFT library is one widely used way to do it.

QLoRA: fine-tuning on one GPU

QLoRA, published in May 2023 by Tim Dettmers and colleagues, goes further by compressing the frozen base model to 4-bit precision while the LoRA adapters train on top. The paper fine-tuned a 65 billion parameter model on a single 48 GB GPU, and its Guanaco model reached 99.3% of ChatGPT's score on the Vicuna benchmark after 24 hours of training on one GPU.

That's what put fine-tuning within reach of a gaming PC. Unsloth, an open-source fine-tuning tool, lists these absolute minimum memory needs:

Model size QLoRA (4-bit) LoRA (16-bit)
8B 6 GB 22 GB
14B 8.5 GB 33 GB
27B 22 GB 64 GB
70B 41 GB 164 GB

Does LoRA give up quality?

Sometimes. A 2024 study led by Dan Biderman, titled "LoRA Learns Less and Forgets Less", found LoRA did noticeably worse than full fine-tuning on programming and math. It also found LoRA kept more of the base model's other skills intact, which is the "forgets less" half of the title.

A September 2025 write-up from Thinking Machines Lab, led by John Schulman, narrowed down when the gap appears. It found LoRA matched full fine-tuning on small and medium instruction and reasoning datasets, and in reinforcement learning even with the smallest possible adapter. LoRA fell behind on datasets too big for the adapter to absorb and at very large batch sizes. Its advice: apply LoRA to all layers, not just the attention layers, and use a learning rate about 10 times higher than for full fine-tuning.

Our view: start with LoRA. It's cheaper, faster and safer for the model's general skills, and the research says it's enough for most post-training jobs. Move to full fine-tuning only if a LoRA run plateaus, which is also Together AI's advice.

Fine-tuning vs RAG vs prompting: which should you use?

These three solve different problems, so it pays to pick the right one before you spend money on training.

Your problem Try first Why
The model doesn't know your documents or recent facts RAG It looks facts up at question time and can cite them
The model ignores instructions or gets the format wrong Better prompts, then fine-tuning Prompts are free to change; training fixes stubborn habits
Answers need a consistent tone or schema at scale Fine-tuning The behavior moves out of the prompt and into the weights
A big model is accurate but too slow or costly Fine-tuning a smaller model Distillation can match the task at lower cost
You need to cut latency or cost A different model Anthropic's docs say switching models can be the easier fix

Why fine-tuning is bad at teaching facts

Two research papers explain the problem. A December 2023 study led by Oded Ovadia compared the two approaches and found retrieval beat fine-tuning on knowledge-heavy tasks, both for facts the model had seen before and for entirely new ones. The models struggled to pick up new facts through fine-tuning at all.

A study led by Zorik Gekhman, presented at EMNLP 2024, found something worse. Models learned fine-tuning examples containing new facts much more slowly than examples about things they already knew, and once they did learn them, their tendency to make things up rose. The authors concluded that models get most of their knowledge in pretraining, and fine-tuning mostly teaches them to use it.

The vendors' advice matches. AWS's guidance points out that fine-tuning takes hours to days, can't cite sources and is a poor fit when your documents change often; for questions over your own documents it recommends starting with retrieval. Microsoft's docs say training doesn't replace retrieval for current information. Our explainer on what RAG is covers how retrieval works.

Try prompting first

OpenAI's guide says to set up evaluations before training, so you can prove a tuned model beats the base one, and its overview notes that prompt engineering alone may be all you need. It also warns that if 50 good examples change nothing, you should rethink the task or the prompt before adding more data. Our prompt engineering guide shows what a better prompt looks like, with before-and-after examples.

Prompts have also become much more capable. With current models reading a million tokens at once, you can paste dozens of worked examples into a prompt and cache them.

The approaches also combine. AWS describes a setup where the model inside a RAG system is also fine-tuned on your documents, and Microsoft lists teaching a model to make better use of retrieved context among the reasons to train.

Where can you fine-tune an AI model in 2026?

Provider Self-serve fine-tuning on 29 November 2026 Models you can train
OpenAI Existing eligible customers only, until 15 December 2026 GPT-4.1, GPT-4.1 mini, GPT-4o, GPT-4o mini
Anthropic No; the Claude API doesn't offer it None of the current Claude models
Google Not in the Gemini API; yes in Gemini Enterprise Agent Platform Gemini 3.5 Flash, 3.5 Flash-Lite, 3.1 Flash-Lite and 2.5 models
Microsoft Foundry Yes Older OpenAI models plus open models such as gpt-oss, Qwen3.8 and Muse Glimmer
Mistral API marked deprecated; Forge for enterprises Not listed
Together AI Yes Open models including Llama, Qwen, Gemma 4, gpt-oss and DeepSeek

OpenAI is shutting its fine-tuning service

In May 2026, OpenAI added a notice to its fine-tuning pages saying it was winding the platform down. According to its deprecations page:

  • 7 May 2026: organizations that had never run a fine-tuning job lost the ability to start one.
  • 2 July 2026: organizations that hadn't used a fine-tuned model in the previous 60 days were cut off too.
  • 15 December 2026: no organization can create new fine-tuning jobs.

OpenAI first set the final cutoff at 6 January 2027, the date in its emails to customers and in press coverage at the time; the deprecations page now says it was moved up to 15 December. OpenAI's notice doesn't explain why it's closing the service.

Existing fine-tuned models keep working until their base model retires, and for most of them that's soon. GPT-4o, GPT-4o mini, GPT-4.1 and GPT-4.1 mini, along with their fine-tuned versions, shut down on 14 January 2027, and OpenAI names GPT-6 Luna as the replacement. GPT-4.1 nano and its fine-tunes already shut down on 23 October 2026. OpenAI's fine-tuning docs and price list don't include any GPT-6 model.

Anthropic doesn't offer fine-tuning for current Claude models

Anthropic's glossary says the Claude API doesn't currently offer fine-tuning and tells interested customers to ask their Anthropic contact. The one public route was Claude 3 Haiku on Amazon Bedrock, generally available since 1 November 2024 in AWS's Oregon region. AWS's model card says Claude 3 Haiku reached end of life on 10 September 2026 in most regions, with the last regions following on 13 and 27 November 2026, even though Bedrock's fine-tuning table still lists it. No current Claude model, from Haiku 5.5 to Opus 5.5 and Fable 5.2, can be fine-tuned self-serve.

Google: only through its enterprise platform

Google's Gemini API docs say no model there has supported fine-tuning since Gemini 1.5 Flash-001 was deprecated in May 2025, and that Google has no immediate plans to add it back. Tuning lives in Gemini Enterprise Agent Platform, the new name Google gave Vertex AI at its Cloud Next conference in April 2026.

There, supervised tuning covers Gemini 3.5 Flash, 3.5 Flash-Lite, 3.1 Flash-Lite, 2.5 Pro, 2.5 Flash and 2.5 Flash-Lite. No Gemini 4 model is on the list. Google calls the tuned results adapters and lets you choose an adapter size from 1 to 16 on most models (up to 8 on 2.5 Pro). It also offers reinforcement fine-tuning, still in preview, for Gemini 3.5 Flash and 3.1 Flash-Lite, aimed at multi-step reasoning such as math problems.

Microsoft Foundry

Microsoft's Foundry still runs supervised, preference and reinforcement fine-tuning, with docs updated in November 2026. Its list mixes older OpenAI models (GPT-4.1, GPT-4o, o4-mini, and GPT-5 for reinforcement fine-tuning by invitation) with open models such as gpt-oss-20b, gpt-oss-120b, Qwen3.8-27B, Meta's Muse Glimmer 30B and Llama 3.3 70B. Several of the open models are in preview.

Mistral

Mistral's docs now label its self-serve fine-tuning service as deprecated and no longer actively supported. The same page lists a $4 minimum fee per job and $2 a month to store each tuned model. On 17 March 2026, Mistral launched Forge, a platform for companies to pretrain, fine-tune and run reinforcement learning on their own data. VentureBeat reports it's priced as a platform license, with optional fees for data pipeline work and for Mistral's forward-deployed scientists, who work inside the customer's team.

Open-weight models: Together AI, Bedrock and your own GPU

With the big closed-model labs pulling back, this is where self-serve fine-tuning is easiest to find. Together AI trains about 30 open models, including Llama, Qwen3.8, Gemma 4, gpt-oss and DeepSeek V4-Flash. Amazon Bedrock fine-tunes Amazon's Nova models and Meta's Llama 3.1 to 3.3, and offers reinforcement fine-tuning for Nova 2 Lite, gpt-oss-20B and Qwen3 32B. And with QLoRA, small open models can be tuned on your own computer; our guide to running an LLM locally covers the hardware side.

How much does fine-tuning cost?

Training is billed per token in most cases: the tokens in your training file, multiplied by the number of passes (epochs) over it. Here are the published rates.

Service and model Training, per million tokens Using the tuned model, per million tokens
OpenAI GPT-4.1 $25 $3 in, $12 out (base model: $2 and $8)
OpenAI GPT-4.1 mini $5 $0.80 in, $3.20 out (base: $0.40 and $1.60)
OpenAI GPT-4o mini $3 $0.30 in, $1.20 out (base: $0.15 and $0.60)
Together AI, Llama 3.1 8B $0.34 LoRA, $0.38 full Dedicated endpoint, billed per minute
Together AI, gpt-oss-20B $0.40 LoRA Dedicated endpoint
Together AI, Gemma 4 31B $1.05 LoRA, $1.16 full Dedicated endpoint
Together AI, Qwen3.8-27B $1.05 LoRA Dedicated endpoint
Together AI, Llama 3.3 70B $2.03 LoRA, $2.24 full Dedicated endpoint
Together AI, gpt-oss-120B $2.50 LoRA Dedicated endpoint

Together's pricing page shows two tables without labels; third-party price trackers read the cheaper one as LoRA and the other as full fine-tuning, which matches its docs saying full fine-tuning costs more. Each Together job has a minimum charge, $4 for most of these models, and preference training (DPO) costs about 2.5 times the supervised rate.

A worked example: 1,000 training examples of about 1,000 tokens each is 1 million tokens, and three epochs makes 3 million training tokens. That's $75 on GPT-4.1, $15 on GPT-4.1 mini, $7.50 for a LoRA run on gpt-oss-120B, and $1.02 on Llama 3.1 8B, which falls under Together's $4 minimum, so you'd pay $4.

Training is often the smaller bill. The ongoing cost is serving:

  • OpenAI charges more per token for a fine-tuned model: 50% more than the base GPT-4.1 and double for GPT-4.1 mini and GPT-4o mini. For comparison, GPT-6 Luna, the base model OpenAI suggests moving to, lists at $0.10 per million input tokens and $0.50 per million output tokens.
  • Google bills training as your dataset's tokens times the number of epochs, then charges for every request to the tuned model. Its tuning docs don't say whether that request rate matches the base model's, and a 4 November 2026 release note says Provisioned Throughput for tuned models can carry a premium. Check the per-token training rates on the Agent Platform pricing page; we couldn't confirm them.
  • Microsoft adds an hourly hosting fee to the token charges for fine-tuned models on its Standard and Global Standard deployments, billed for every hour the model stays deployed, and charges reinforcement fine-tuning by the hour of training. Developer deployments skip the hosting fee but are removed after 24 hours.
  • Together AI discontinued serverless inference for LoRA models, so a tuned model runs on a dedicated endpoint billed by the minute until you shut it down.

How to fine-tune a model, step by step

  1. Write down what good looks like and build a test. OpenAI and Anthropic both say to have measurable success criteria and evaluations before you change anything.
  2. Push prompting and retrieval as far as they go. If a better prompt or RAG fixes it, you're done.
  3. Collect examples. Start with 50 to 100 high-quality ones. Microsoft says to check them for accuracy, consistency, duplicates, bias and sensitive information before uploading.
  4. Split your data. Keep separate training, validation and test sets, and judge the model on examples it never saw.
  5. Pick a base model and method. For most teams, that's supervised fine-tuning with LoRA on an open-weight model.
  6. Run small first. Compare the tuned model against the untouched base model on your test set, and stop if it isn't better.
  7. Plan for the base model's retirement. Microsoft warns that an adapter isn't interchangeable across similarly named base models, and that you may need to retrain when a base model approaches retirement.

What can go wrong with fine-tuning?

  • It can strip out safety training. A 2023 paper led by Xiangyu Qi found that fine-tuning GPT-3.5 Turbo on just 10 carefully chosen examples, at a cost under $0.20, broke its safety guardrails. Even harmless, commonly used training datasets weakened them somewhat.
  • Narrow training can have broad side effects. In a study published in Nature in January 2026, researchers fine-tuned GPT-4o on 6,000 coding tasks with deliberate security holes. The tuned model gave misaligned answers to unrelated questions about 20% of the time, against none for the original, including suggesting that AI should enslave humans. The authors call this emergent misalignment.
  • It can add hallucinations. Training on facts the model didn't know raises its tendency to invent things, per the EMNLP 2024 study.
  • It can erase other skills. Full fine-tuning in particular can make a model worse at tasks outside your training set, which is why LoRA's lower forgetting matters.
  • It can game the grader. In reinforcement fine-tuning, Microsoft warns that a rising reward score doesn't prove a better model if the model has found a way to exploit the grader.
  • It ties you to one model. OpenAI's fine-tuned GPT-4.1 models stop working on 14 January 2027, whatever they cost to train.

Frequently asked questions

What is fine-tuning in simple terms?

Fine-tuning is extra training that takes an existing AI model and teaches it a specific task, format or style from your own examples. The change is saved in the model's weights, so you don't have to repeat instructions in every prompt.

Is fine-tuning better than RAG?

They do different jobs. RAG is better for giving a model facts, especially private or changing ones, and research finds fine-tuning is poor at teaching new facts. Fine-tuning is better for changing how a model behaves, such as its tone or output format.

How much data do you need to fine-tune a model?

OpenAI requires at least 10 examples and suggests starting with 50 well-made ones, then checking whether results improve before adding more. Microsoft's docs stress accurate, consistent and representative examples.

How much does it cost to fine-tune an LLM?

Training a small open model with LoRA on Together AI starts at the $4 job minimum, and a million-token dataset trained three times costs $75 on OpenAI's GPT-4.1. Serving the result can cost more over time than training it.

Can you fine-tune ChatGPT or Claude?

Not the current models. OpenAI stops all new fine-tuning jobs on 15 December 2026 and its fine-tuning list doesn't include GPT-6, while Anthropic's API doesn't offer fine-tuning for any current Claude model.

What is LoRA?

LoRA, or low-rank adaptation, is a way to fine-tune a model by freezing its original weights and training small add-on matrices instead. It needs far less memory than full fine-tuning and produces a small adapter file you can swap in and out.

Sources

Was this helpful?

Keep reading

Colorful JavaScript code on a dark screen, for choosing the best code editor
AI Coding Tools
AI & Dev Tools

The best code editor in 2026: VS Code, Cursor, Zed, JetBrains and more compared

The best code editors of late 2026 compared: VS Code, Cursor, Zed, JetBrains IDEs, Neovim, Sublime Text, Devin Desktop and Antigravity on price, AI, platforms and fit.

15 min read

A video editing timeline on a dark screen, for picking the best AI video generator
Best AI Tools
AI & Dev Tools

Best AI video generator in 2026: Gemini Omni, Kling, Seedance, Runway and more

The best AI video generators in November 2026, from Google's Gemini Omni to Kling 4.0, Seedance 2.5 and Runway, compared on clip length, audio, price and commercial rights.

16 min read

A hand holding a phone showing the Google search page, for the best AI search engine comparison
Best AI Tools
AI & Dev Tools

The best AI search engine in 2026: Perplexity, Google AI Mode, ChatGPT and five more compared

The best AI search engines of late 2026 compared: Perplexity, Google AI Mode, ChatGPT search, Gemini, Claude, Copilot, Brave and Kagi on price, citation accuracy, ads and privacy.

16 min read