Software comparisons

LoRA vs full fine-tuning: memory and quality

LoRA vs full fine-tuning trades a little capacity for a large memory saving. Full fine-tuning with Adam needs about 16 bytes per parameter for model states, so an 8B model needs multiple GPUs. LoRA freezes the base model and trains small adapters, so the same model fits on one GPU. Published work finds LoRA matches full fine-tuning on typical instruction datasets, but can fall behind on large code or math training runs.

LoRA vs full fine-tuning at a glance

Full fine-tuning updates every weight in the model. LoRA, from Hu et al. (2021), freezes the pretrained weights and learns a low-rank update: two small matrices, A and B, whose product is added to selected weight matrices. Only A and B train, so gradients and optimizer state exist only for them.

The table summarizes the practical differences. Hugging Face PEFT is the most common LoRA library; its latest release on GitHub was v0.22.0 (19 November 2026). For the cost side of a LoRA experiment, see LoRA fine-tuning cost.

LoRA vs full fine-tuning at a glance
ItemLoRAFull fine-tuning
What trainsSmall adapter matrices on chosen layersEvery parameter
Model-state memoryFrozen base at 2 bytes per parameter (BF16) plus small adapterAbout 16 bytes per parameter with mixed-precision Adam
Typical GPUs for an 8B modelOne 24 to 80 GB GPUSeveral GPUs with sharding
OutputAdapter of megabytes to a few GBFull copy of the model
Inference costNone extra after mergingNone extra
Many task variantsOne base, many adaptersOne full model per task
Capacity to learn new knowledgeLimited by rank and target layersHighest
Forgetting of base skillsLess, per published workMore

References: Hu et al., LoRA: Low-Rank Adaptation of Large Language Models · Hugging Face PEFT: LoRA · Hugging Face PEFT GitHub repository and releases · Hugging Face PEFT LoRA developer guide

The memory math

Start with the figure from the ZeRO paper: mixed-precision Adam needs 16 bytes per trainable parameter for model states, made of 2 bytes of 16-bit weights, 2 bytes of gradients and 12 bytes for the FP32 weight copy, momentum and variance. Activations come on top and grow with batch size and sequence length.

LoRA changes the count of trainable parameters, not the size of the base. The frozen base still sits in GPU memory at 2 bytes per parameter in BF16, or about half a byte at 4-bit as in QLoRA. The adapter adds r times (d + k) parameters for each d by k matrix it wraps. For a 4,096 by 4,096 projection at rank 16, that is 131,072 trainable parameters against 16.8 million in the full matrix, under 1%.

The table shows model states only, as an illustrative calculation. Real runs need more for activations, the CUDA context and fragmentation, so leave headroom. Our VRAM calculator and LLM VRAM budget guide add those terms.

The memory math
Model size (illustrative)Full fine-tuning, 16 B/paramLoRA, BF16 baseQLoRA, 4-bit base
8B128 GBAbout 16 GB plus adapterAbout 4 to 5 GB plus adapter
14B224 GBAbout 28 GB plus adapterAbout 7 to 8 GB plus adapter
70B1,120 GBAbout 140 GB plus adapterAbout 35 to 40 GB plus adapter

References: Rajbhandari et al., ZeRO: Memory optimizations toward training trillion parameter models · Hu et al., LoRA: Low-Rank Adaptation of Large Language Models · Dettmers et al., QLoRA: Efficient finetuning of quantized LLMs

What published papers found on quality

The evidence points two ways, and the difference is mostly dataset size and domain. The original LoRA paper reported quality on par with or better than full fine-tuning on RoBERTa, DeBERTa, GPT-2 and GPT-3, with 10,000 times fewer trainable parameters and 3 times less GPU memory than fine-tuning GPT-3 175B with Adam. QLoRA reported fine-tuning a 65B model on a single 48 GB GPU while preserving full 16-bit fine-tuning task performance.

Biderman et al. (TMLR, 2024), in LoRA Learns Less and Forgets Less, found that in standard low-rank settings LoRA substantially underperforms full fine-tuning for code and math, in both continued pretraining and instruction tuning. LoRA did better at keeping the base model’s skills outside the target domain. They found full fine-tuning learns weight changes with 10 to 100 times higher rank than typical LoRA settings.

Thinking Machines’ LoRA Without Regret (September 2025) reported that LoRA matched full fine-tuning on small-to-medium instruction and reasoning datasets and in reinforcement learning, even at rank 1 for RL, when applied to all layers including the MLP layers. It fell behind when the dataset exceeded the adapter’s capacity and at large batch sizes, and the best LoRA learning rate was about 10 times the full fine-tuning rate. These are the authors’ results on their setups; yours depend on model, data and settings.

What published papers found on quality
Source and dateFinding as publishedSetting
Hu et al., LoRA, 2021On par or better than full fine-tuningRoBERTa, DeBERTa, GPT-2, GPT-3
Dettmers et al., QLoRA, 202365B on one 48 GB GPU, 16-bit task performance kept4-bit NF4 base, LoRA adapters
Biderman et al., TMLR 2024LoRA substantially underperforms; forgets lessCode and math, low rank
Thinking Machines, Sep 2025Matches full fine-tuning on small-to-medium data and RLAll layers incl. MLP, tuned learning rate

References: Hu et al., LoRA: Low-Rank Adaptation of Large Language Models · Dettmers et al., QLoRA: Efficient finetuning of quantized LLMs · Biderman et al., LoRA Learns Less and Forgets Less (TMLR 2024) · Thinking Machines: LoRA Without Regret (Sep 2025)

Settings that close the gap

Target all linear layers, not just attention. PEFT’s default adds LoRA to the query and value layers only. Its docs recommend target_modules="all-linear", as QLoRA did, and the Thinking Machines results found attention-only LoRA underperformed even with matched parameter counts.

Raise the learning rate relative to full fine-tuning, and raise the rank when the dataset is large or far from the base model’s training data. Keep batch sizes moderate. If quality still falls short at a high rank on a large dataset, that is the signal full fine-tuning may be worth its cost. PEFT also offers variants such as DoRA, which its docs say can help especially at low ranks, at extra overhead.

References: Hugging Face PEFT LoRA developer guide · Thinking Machines: LoRA Without Regret (Sep 2025) · Biderman et al., LoRA Learns Less and Forgets Less (TMLR 2024)

How each behaves on a rented GPU

LoRA on a 7B to 14B model fits one GPU. A 24 GB card such as an RTX 4090 handles QLoRA on that range; a 48 GB L40S or an 80 GB H100 handles BF16 LoRA with room for longer sequences. Checkpoints are small, so saving often costs little, and you can serve many adapters on one base: vLLM lists multi-LoRA serving. After training, PEFT’s merge_and_unload folds the adapter into the base weights, removing any extra inference latency.

Full fine-tuning an 8B model needs 128 GB for model states before activations, so plan on a multi-GPU node with sharding. FSDP or DeepSpeed ZeRO-3 divides that across GPUs; FSDP vs DeepSpeed compares the two. Checkpoints are full model copies plus optimizer state, so they are large and slow to write; budget storage and save time. A full fine-tune of a 70B model is a multi-node job.

References: Hugging Face PEFT LoRA developer guide · Rajbhandari et al., ZeRO: Memory optimizations toward training trillion parameter models · vLLM GitHub repository · Dettmers et al., QLoRA: Efficient finetuning of quantized LLMs

When to pick LoRA or full fine-tuning

Settle LoRA vs full fine-tuning with evidence, not habit. Start with LoRA. Move to full fine-tuning when a well-tuned LoRA run, at high rank on all layers, still misses your quality bar.

When to pick LoRA or full fine-tuning
Your situationPickReason
Instruction or style tuning, small-to-medium datasetLoRAPublished results show parity at this scale
Many customers or tasks on one base modelLoRASwap small adapters; serve many at once
One GPU budgetLoRA or QLoRABase frozen, low optimizer memory
Reinforcement learning on a pretrained modelLoRAMatched full fine-tuning even at low rank in one study
Continued pretraining on a large new domainFull fine-tuningHigher capacity; LoRA lagged on code and math
Base skills must stay intactLoRAForgets less outside the target domain

References: Biderman et al., LoRA Learns Less and Forgets Less (TMLR 2024) · Thinking Machines: LoRA Without Regret (Sep 2025) · Hu et al., LoRA: Low-Rank Adaptation of Large Language Models

A test you can run yourself

Hold out an evaluation set that reflects your task, plus a general benchmark to catch forgetting. Train LoRA on all linear layers at two ranks, such as 16 and 128, with a learning-rate sweep. If budget allows, run full fine-tuning on the same data for the same number of tokens. Compare task score, general score, wall-clock hours and GPU-hours. Our guides to fine-tune an LLM with LoRA and QLoRA fine-tuning cover the setup.

References: Hugging Face PEFT LoRA developer guide

Checklist and next step

Estimate model states: 16 bytes per parameter for full fine-tuning, about 2 for a BF16 LoRA base, about half for QLoRA. Target all linear layers. Tune the learning rate for LoRA separately. Measure forgetting, not only task score. Merge adapters before serving if you need one model. Move to full fine-tuning only when evidence says LoRA has hit its ceiling.

NeuraMesh rents single GPUs for LoRA runs and multi-GPU nodes for full fine-tuning, by the hour. Choose GPU, plan, count, hours and region on rent GPUs, and you receive a confirmed quotation, typically within one business day, with nothing charged until you approve.

NeuraMesh prices for these GPUs

NeuraMesh prices per GPU-hour in USD, excluding taxes, as of 2026-11-27. Live prices are on the rental pages.
GPUMemoryData centerValue
RTX 409024 GB$0.46$0.40
L40S48 GB$1.26$0.54
A10080 GB$1.56$0.98
H10080 GB$2.88$2.00

Every order is confirmed in a quotation before you pay. See all GPU prices.

Questions readers ask

Is LoRA as good as full fine-tuning?

Often, for instruction and style tuning on small-to-medium datasets, when LoRA covers all linear layers and the learning rate is tuned. Biderman et al. (2024) found it substantially behind on large code and math training in standard low-rank settings. Evaluate on your own task.

How much less memory does LoRA use?

Full fine-tuning with mixed-precision Adam needs about 16 bytes per parameter for model states. LoRA keeps the frozen base at about 2 bytes per parameter in BF16, plus a small adapter. The original paper reported 3 times less GPU memory for GPT-3 175B.

When should I choose full fine-tuning over LoRA?

When you are teaching a lot of new knowledge, such as continued pretraining on a large domain corpus, and a high-rank LoRA on all layers still misses your target. Budget for multi-GPU sharding and large checkpoints.

Does LoRA slow down inference?

Not after merging. The LoRA paper reports no additional inference latency, because the low-rank update can be merged into the base weights. PEFT provides merge_and_unload for this. Unmerged adapters served alongside a base model add some overhead.

What LoRA rank should I use?

Start with a moderate rank such as 16 on all linear layers, then test a higher rank. Raise it for larger datasets or harder domains. Published work suggests rank matters less than covering all layers and tuning the learning rate.

Sources and editorial notes

Primary documentation reviewed November 24, 2026. Provider descriptions reflect published documentation. Recommendations are our analysis; worked figures are illustrative unless explicitly stated otherwise. No independent provider benchmark or uptime ranking is claimed.

Read the editorial policy.

Need this GPU? Rent it from NeuraMesh: choose a GPU and plan, get a confirmed quotation, and pay only when you approve. See pricing.