Blog
Fine-tuning on one GPU in 2026: LoRA vs QLoRA without the guesswork
- Fine-tuning
- LoRA
- Engineering
Here is my most repeated piece of advice this year: you probably do not need a GPU cluster. What you need is one good adapter. LoRA freezes the base model and trains two small matrices per layer, usually under one percent of the parameters, and the idea goes back to the original LoRA paper. QLoRA does the same thing on a base model squeezed into 4-bit, from the QLoRA paper, which is why a 7B model fits on one consumer card.
I have watched teams rent eight GPUs for a job one GPU could do, and I have watched teams fine-tune a model to memorize facts that changed the next week. This post is my attempt to prevent both. The math, the settings, and the exits.
Key takeaways
- Start with LoRA. Drop to QLoRA when memory runs out. Touch full fine-tuning only when adapters hit a wall you actually measured.
- On a 32 GB card the rough lines are: QLoRA up to about 32B, 16-bit LoRA up to about 9B, full fine-tuning around 1 to 2B. Shorten your sequences before you shrink your model.
- My default: 4-bit NF4 base, rank 16 to 32, alpha at twice the rank, all attention plus MLP targets, lr 2e-4, three epochs, then look.
- Do not train what prompting, retrieval, or a distilled student already solves. Train the behavior that will not hold still any other way.
- Same task, same checks, base vs adapter. Version the base weights and the dataset hash or you will fear that adapter forever.
The three options, with no mystique
LoRA is the default and it is beautifully boring. Freeze the base, train a small adapter on top, get a file of tens of megabytes you can swap in and out. One base, many adapters, nothing dramatic.
QLoRA is LoRA for people whose GPU is too small, which in 2026 is most of us. The frozen base sits in 4-bit NF4 with double quantization, the adapters train in BF16, and a paged optimizer soaks up the memory spikes. The Appscale comparison calls QLoRA the most deployed approach this year simply because most teams will not provision multi GPU clusters, and honestly that matches everything I see.
Full fine-tuning trains every weight. It can learn more and forget more, costs far more memory, and leaves you serving a whole separate model copy. The hardware budget guide gives the rule I repeat to founders: start with LoRA, drop to QLoRA when memory is the wall, and reach for full training only when adapters hit a measured ceiling and someone can show the business case. Measured is doing a lot of work in that sentence. Vibes do not count.
The VRAM math, so you rent the right thing
I am borrowing these numbers from the RTX 5090 guide because they were measured in November 2026 on a 32 GB card instead of guessed. Unsloth lists a 26 GB minimum for 32B in QLoRA and 41 GB for 70B, so plan accordingly.
- QLoRA in 4-bit: up to about 32B on 32 GB, 40B only with short sequences. A 20B model needs roughly 14 GB.
- LoRA in 16-bit: up to about 9B in 24 GB, 11B gets tight at 29 GB, 14B needs 33 GB and simply does not fit.
- Full fine-tuning with AdamW: about 1 to 2B on the same card. Yes, really.
- Context length matters as much as parameters. Halve your sequence length before you halve your model, every time.
Settings I start from, and why data matters more
Base in 4-bit NF4 for QLoRA, adapters in BF16, all attention and MLP projections as targets instead of just query and value. Rank 16 for simple formats, 32 for harder behavior, alpha at twice the rank, dropout 0.05 unless the data is tiny. Learning rate 2e-4 with a short warmup, batch size 4 to 8 with accumulation, three epochs, then stop and look. Overfitting after epoch three is the normal failure and I treat it as the default hypothesis. The QLoRA guide at Ainomam walks the same three tricks and I have nothing to add except that they work.
Here is the part people skip: a thousand diverse, filtered, real traffic examples will beat ten thousand synthetic near duplicates. I hold out a set I never train on, and if the held out set comes from the same week as training, I collect another week before declaring victory. Time split beats random split because your data drifts and your eval should know that.
And I track the adapter like code. Base model id, quantization config, rank and targets, dataset hash, seed, eval numbers. An adapter without that header is a file you will be afraid to delete and afraid to ship, and I have a small graveyard of those from earlier years.
When I talk people out of fine-tuning
This happens more often than the training itself. Someone wants to fine-tune facts that move, and that is retrieval work, not training work. Someone else wants to train because one good prompt failed once, and that is a prompt and eval problem. The Ivy Pro guide draws the line the way I do: retrieval when the knowledge changes, training when the behavior must hold.
My personal checklist is short. Train it if prompting cannot hold the format reliably: strict JSON, house style, narrow classification at volume. Do not train it if the knowledge updates weekly, if a distilled student on your traffic would be cheaper (see my distillation writeup), or if you have not tried a better prompt with a real eval first. Training is the most expensive way to fix a prompt.
You can also do both, and the combo is underrated. Retrieve the facts, fine-tune the format. Small adapters compose beautifully with RAG because the adapter never has to memorize what the retriever can supply.
How I decide it worked
Same task, same checks, base versus adapter, on held out real inputs. I look at success rate and cost per successful task together, because a two point gain that doubles serving cost is not a win for a small team. It is a hobby.
I also watch forgetting on a small general set alongside the task set. If the adapter got better at invoices and worse at everything else, I overtrained or overwrote too much. Lower the rank, shorten training, narrow the targets, in that order.
And I ship one adapter per task type. A single adapter trained on five jobs averages them into none. Versioned, small, boring adapters are the entire point of LoRA, and boring is a compliment.
Use cases: when a LoRA adapter pays off
My checklist above says train when prompting cannot hold the format. In practice that points to a handful of jobs where a small adapter earns its keep, often together with retrieval.
- Strict structured output. An extractor that must return valid JSON with your exact fields every time, at volume. Prompting gets close, and an adapter closes the gap.
- A house style. Product descriptions, support replies or report summaries that must sound like your company without a page of style rules in every prompt.
- Narrow classification at volume. Sorting tickets, documents or leads into a fixed set of labels, where a small model with an adapter is cheaper per success than a big model with a long prompt.
- Retrieve the facts, fine-tune the format. A support assistant that pulls current policy text from retrieval and uses an adapter only for tone and structure. The adapter never has to memorise anything that changes.
- One adapter per task type. If you have three of these jobs, train three small adapters, not one that averages them.
Try it this week: decide whether to train at all
Most of the value in this post is in the decision, not the training. Before you rent a GPU, run your task through the prompt below. If it says retrieval or a better prompt, try that first with a real eval.
Goal: decide whether my task needs fine-tuning, retrieval, a better prompt, or a combination.
Inputs: the task, an example input and the ideal output, how often the underlying facts change, runs per month, and what I have already tried.
Constraints: recommend training only if prompting cannot hold the format reliably. If the facts change weekly, recommend retrieval. If I have not tested a better prompt with a real eval, say so first. Do not quote prices.
Definition of done: one recommendation with the reason, the eval I should run to confirm it, and, if training is recommended, whether LoRA or QLoRA fits a single GPU for my model size.Frequently asked questions
LoRA or QLoRA, in one line?
LoRA when the 16-bit base fits in your card, QLoRA when memory is the wall. Same adapters, same serving story, smaller training footprint. Task quality differences are usually small.
What rank should I start with?
16 for simple formats, 32 for harder behavior, alpha at twice the rank, attention plus MLP targets. Raise the rank only after the data and evals are solid, not before.
Can I fine-tune 70B on one GPU?
Not practically on 32 GB. QLoRA wants around 41 GB for 70B even with short sequences. Use a 32B or smaller base, shorten context, or rent one bigger card for the training run.
Full fine-tuning or adapters for production?
Adapters unless you measured a ceiling. They are cheaper to train, trivial to version, and one base serves many tasks. Full fine-tuning is a separate model to store and serve, so it needs a real justification.
What is LoRA fine-tuning good for?
Holding a format or style that prompting cannot hold reliably: strict structured output, a house style, and narrow classification at volume. Pair it with retrieval for facts that change, and train one small adapter per task type.
Sources
- Hu et al: LoRA, Low-Rank Adaptation of Large Language Models arxiv.org
- Dettmers et al: QLoRA, Efficient Finetuning of Quantized LLMs arxiv.org
- GPUwerk: Fine-tune an LLM on an RTX 5090 (Nov 2026) gpuwerk.com
- Appscale: LoRA vs QLoRA vs DoRA vs Full FT (2026) appscale.blog
- TheDataScientist: Choosing a Fine-Tuning Method on a Hardware Budget thedatascientist.com
Talk to me
Building an AI product and need someone senior to own the technical side? Book a free 30-minute call.