The Spectrum: From Very Light to Full
PEFT (Parameter-Efficient Fine-Tuning) is not one technique but a family. Each member strikes a different balance between three things: the number of parameters trained, the quality obtained, and the memory consumed.
Think of it as a slider. On the left you barely touch the model, prompt tuning and its eighty thousand parameters. On the right you touch everything: full fine-tuning and its billions. In between, a range of balance points.
This page is the module's recap. It re-explains no method: every name links to its own page.

You have a graphics card, a model, and data. How many parameters should you train? There is no universally optimal answer, but for a given case, the right choice can almost always be read off three questions: how much memory is available, how many training examples you hold, and how far the task sits from what the model already does.
The Comparison Table
Every value below is for a 7-billion-parameter model, width , 32 layers, and is derived from the formulas given on each page. Nothing is quoted from memory.
| Method | Formula | Learned parameters | Share | Training memory | Inference latency |
|---|---|---|---|---|---|
| Full fine-tuning + AdamW | 12 bytes per parameter | 6.74 billion | 100% | about 100 GB | none |
| LoRA , attention | per matrix | 16.8 million | 0.25% | about 16 GB | none, once merged |
| QLoRA | same, frozen model in 4 bits | 16.8 million | 0.25% | about 6 GB | none, if merged back |
| DoRA | LoRA + one vector per matrix | 17.3 million | 0.26% | about 17 GB | none, once merged |
| Adapters | per module | tens of millions | about 0.3% | about 16 GB | increased |
| Prefix tuning | 5.2 million | 0.08% | about 16 GB | reduced context | |
| Prompt tuning | 81,920 | 0.0012% | about 16 GB | reduced context | |
| IA³ | 614,400 | 0.009% | about 16 GB | none, absorbed |
Two remarks about this table, and both matter.
On memory. Five methods say "about 16 GB", and that is no accident: as soon as the frozen model is held in 16 bits, its weights weigh GB and dominate everything else. Whether the adapter is 80,000 or 17 million parameters changes nothing in the total. That is exactly what QLoRA understood, and why it alone drops to 6 GB. The item-by-item breakdown is in Full fine-tuning vs parameter-efficient.
On quality. This table has no "quality" column, deliberately. The "95 to 99% of full fine-tuning performance" figures that circulate widely on this topic trace back to no identifiable published measurement. What is published, and checkable, is more modest and more useful:
- LoRA: quality "on par or better than" full fine-tuning on the models its paper tested;
- adapters: within 0.4 points of full fine-tuning on GLUE, with 3.6% of the parameters;
- prompt tuning: on large models only, where it "closes the gap" from a few billion parameters upwards;
- prefix tuning: comparable when data is plentiful, better when it is scarce;
- QLoRA: "matches" the quality of 16-bit fine-tuning;
- DoRA: "consistently outperforms" LoRA, with no number given.
That is the actual state of published knowledge. Everything else is interpolation. One last reading caution, because two figures in circulation look contradictory. The LoRA paper claims memory divided by 3, whereas our table goes from 100 GB to 16, a factor of 6. Both are right: the paper measures on GPT-3 at 175 billion parameters, with its own configuration and its activations, where we count only weights, gradients and optimizer on a 7-billion-parameter model. The exact factor depends on model size and sequence length, it is the order of magnitude that matters.

Case 1: A 24 GB Consumer Graphics Card
Answer: QLoRA.
The reasoning takes one line. The frozen model in 16 bits weighs 14 GB, leaving 10 GB for everything else: too tight. In 4 bits it weighs GB, leaving 20 GB of headroom. The choice is arithmetic, not taste.
The recipe:
- load the model in 4 bits, NF4 format;
- apply LoRA of rank 16 to 32 on the attention matrices;
- enable activation recomputation (gradient checkpointing), instead of holding every intermediate activation in memory for backpropagation, keep one in every few dozen and recompute the rest when needed. You trade compute time for memory.
Result: a 7- to 13-billion-parameter model fine-tunes on a single desktop card. That was out of reach in 2021.
What Quantization Actually Costs
QLoRA is LoRA on a model compressed to 4 bits. Compression loses information irreversibly: the original weights will never be recovered. The paper argues that the adapter compensates for that loss and that final quality matches 16-bit fine-tuning, that is its central claim, and we will not put a finer number on it than it does.
What is certain is the memory gain: 16 GB against 6, a factor of 2.7.

Case 2: A 40 to 80 GB Datacentre Card
Answer: LoRA, or DoRA if you want the last point of quality.
With that much memory the model fits in 16 bits, so with no information lost on the weights. LoRA of rank 16 to 64 is the default: it is the best understood and best supported method. DoRA adds 3% more parameters and a little compute time for a steady but modest quality gain.
This class of card opens up models of 30 to 70 billion parameters, out of reach for a consumer card, where they would only just fit in 4 bits with no room left to work.
Case 3: Thousands of Micro-Tasks
Answer: IA³, or prompt tuning if the model is very large.
Here the limiting factor is not training memory but storage: five thousand tasks, each with little data, each with its own adapter. The arithmetic decides:
| Method | Weight per task, in 16 bits | For 5,000 tasks |
|---|---|---|
| Prompt tuning, | 164 KB | 0.8 GB |
| IA³ | 1.2 MB | 6 GB |
| LoRA | 34 MB | 170 GB |
Prompt tuning is the lightest, but it only works well above a few billion parameters. IA³ has no such constraint and behaves particularly well when each task has only a handful of examples, which is precisely its paper's setting.
Case 4: Deep Adaptation
Answer: high-rank LoRA, or full fine-tuning.
A new language, a highly specialized domain: the model has to acquire knowledge it lacks, not reorganize knowledge it has. The very light methods cannot do this by construction, IA³ can only rescale existing dimensions, a short prefix can only suggest.
- LoRA of rank 64 to 128, applied to every linear layer rather than the attention matrices alone;
- full fine-tuning if the hardware allows;
- and above all, consider continued pre-training before supervised fine-tuning: the topic is covered in Continual pre-training.
If the task resembles what the model already does (converse, summarize, classify) a rank of 8 to 16 suffices. If you ask for something genuinely new, go to 32, 64 or beyond.
Why? Because the rank bounds the number of independent directions the correction can take. Reorienting existing knowledge needs few directions; installing new knowledge needs many.
Combinations That Work
QLoRA and DoRA Together
The two act in different places: QLoRA compresses what is frozen, DoRA reorganizes what is learned. Nothing stops you stacking them, and use_dora=True in the config is all it takes.
LoRA and Activation Recomputation
Activation recomputation frees memory during the backward pass, where gradients climb back up the network, by redoing computations instead of keeping their results. Combined with LoRA it lets you fine-tune noticeably larger models on the same hardware, at the cost of roughly 30% more compute time, an order of magnitude to check on your own setup.
Several LoRA Adapters
Training several adapters for the same task, with different random draws or settings, then combining their predictions, gives a steadier result. Combining several adapters is covered in Model merging: TIES.
How to Decide
By Number of Examples
The principle: the more examples you have, the more free parameters you can afford before the model starts memorizing them.
- under 100 examples: IA³ or prompt tuning. The tiny parameter count mechanically prevents memorization.
- 100 to 10,000: LoRA of rank 8 to 16.
- 10,000 to 100,000: LoRA of rank 16 to 64, or DoRA.
- beyond 100,000: high-rank LoRA, or full fine-tuning.
By Nature of the Adaptation
- classifying, extracting entities: rank 4 to 8. These are surface tasks.
- learning to follow instructions: rank 16 to 32.
- alignment on preferences, via RLHF or DPO: rank 16 to 64.
- domain shift: rank 64 and up, or full fine-tuning.
Always picking the lightest method is a frequent mistake, and the table above explains why. Since the frozen model's 14 GB dominate the total, going from 80,000 to 17 million trainable parameters barely changes the memory consumed.
In other words, saving parameters buys almost nothing as long as you stay within the same orders of magnitude. It only becomes decisive for storing thousands of adapters. LoRA of rank 16 is rarely a bad default.
Best Practices
- Start with LoRA of rank 16 on the four attention matrices and the linear layers of the multi-layer perceptron. It is the reasonable choice in the great majority of cases.
- Always compare against the un-fine-tuned base model. That is the baseline most often forgotten, and fine-tuning does sometimes make things worse.
- Watch for overfitting. Few parameters is not immunity: on a very small dataset, even an adapter can memorize.
- Test the merge. After a LoRA run, merge the weights and check the result matches the unmerged adapter, rounding errors and quantization corner cases can introduce a gap.
- Keep the base model. Modularity is the asset of these methods: you can roll back, combine, swap.
Where Practice Stands
The field moves, and new methods appear regularly. The current balance point in practice is simple:
QLoRA with a reasonable rank, between 16 and 32, covers the great majority of needs. It is accessible, well supported and well documented.
In short. Consumer card? QLoRA. Datacentre card? LoRA in 16 bits. Thousands of micro-tasks? IA³. The last point of quality? DoRA. A new language or domain? High rank, or full fine-tuning. When in doubt, LoRA of rank 16.
1. In the comparison table, five methods show the same training memory, about 16 GB. Why?
2. Why does this comparison have no quality column?
3. With a 24 GB card, why does the page settle on QLoRA by arithmetic?
4. Why does deep adaptation (a new language, an unknown domain) call for a high rank?
5. The LoRA paper reports memory divided by 3; the page's table goes from 100 GB to 16, a factor of 6. Who is wrong?