LoRA versus QLoRA is a memory comparison, not a quality crown. Hu et al. freeze the pretrained weights and train low-rank update matrices. Dettmers et al. keep that adapter and store the frozen base in 4-bit, using 4-bit NormalFloat, double quantisation and paged optimisers. Pick LoRA when the base already fits in the precision you want. Pick QLoRA when it does not. The papers report their own speed and task results. This page does not copy those results onto your documents, and neither method changes the licence.
By Shen Pandi, Towards AGI. Updated 28 November 2026.
What stays the same?
Both methods train a small adapter and leave the pretrained network frozen. Hu et al., in LoRA (arXiv 2106.09685), inject low-rank matrices into the Transformer and train those matrices instead of every weight. The QLoRA paper describes the same factorisation: a frozen projection plus a low-rank update. If you remember one line, remember that QLoRA is not a different adapter. It is LoRA with a quantised base. The LoRA definition, the QLoRA definition, the LoRA technique page and the QLoRA technique page own the operational detail. This page owns the fork.
What you hand over is the same kind of artefact: adapter files, the exact base checkpoint they were trained against, the rank and the target modules you actually used, and the licence of that base. A QLoRA run does not produce a magically smaller adapter. The adapter width is the LoRA choice in both cases. Rank is a capacity knob you set and then test. This site does not publish a winning rank, and it does not publish a rank-versus-score table.
The base licence is the same either way. A QLoRA adapter on a Gemma 4 hash is still that hash. A LoRA on an older Gemma Terms checkpoint is still that Terms checkpoint. Quantising the frozen base during training does not mint a grant. The licence comparison is the index of those grants.
LoRA and QLoRA. The adapter is the same idea. The base storage is not.
LoRA
QLoRA
Base weights
Frozen, at the precision you choose
Frozen, stored in 4-bit (NF4 in the paper)
What you train
Low-rank adapters
The same kind of low-rank adapters
Paper
Hu et al., arXiv 2106.09685
Dettmers et al., arXiv 2305.14314
Why you would
The base already fits
The base does not fit otherwise
What stays true
The base licence still applies
The base licence still applies
What does QLoRA change?
Dettmers et al. (arXiv 2305.14314) present QLoRA as a way to fine-tune a quantised model by backpropagating through a frozen 4-bit base into LoRA adapters. The abstract states three memory devices. The first is 4-bit NormalFloat (NF4), which the paper calls a data type that is information-theoretically optimal for normally distributed weights, and which the paper says gave better empirical results than 4-bit integers and 4-bit floats in their experiments. The second is double quantisation: quantising the quantisation constants themselves. The paper says this reduces the average memory footprint by about 0.37 bits per parameter, approximately 3 GB for a 65B model in their account. The third is paged optimisers, which use NVIDIA unified memory so optimiser-state spikes can be paged rather than killing the run when gradient checkpointing spikes on a long sequence.
The forward pass dequantises. The paper’s background walks through a quantisation constant and its inverse: stored low-bit weights are scaled back up to compute. QLoRA then adds the LoRA update on that path. Storing the base at 4 bits is what shrinks the weight term. Dequantising those weights is work a run that kept the base in 16-bit does not do. This page does not turn that sentence into a tokens-per-second delta on your GPU.
The paper’s headline memory claim is also theirs, and it is a full-finetune comparison, not our base-weight table below. They write that QLoRA reduces memory enough to fine-tune a 65B model on a single 48GB GPU, and that regular 16-bit fine-tuning of a LLaMA 65B model requires more than 780 GB. Hugging Face PEFT repeats the 65B-on-48GB example as the original method’s write-up. Those numbers are not an llm.build measurement. They include more than the frozen weight file. Our arithmetic in the next section is only the base weights, and it is labelled as an estimate.
One further detail from the paper matters so the base-weight sum is not mistaken for the whole bill. On a 7B LLaMA trained on FLAN v2 with batch size 1, the authors report that LoRA input gradients were 567 MB, the LoRA parameters 26 MB, gradient checkpointing brought the input-gradient average to 18 MB, and the 4-bit base consumed 5,048 MB. Their point is that adapter bytes are the small term and activation gradients are not. Our planner excludes activations on purpose. The 5,048 MB figure is also why a 0.5-byte estimate sits below a real 4-bit file: scales and block metadata are extra.
How large are the base weights? An estimate
The VRAM planner uses a storage width you can check by hand. Weight bytes equal parameter count times bytes per value. The widths on that page are fp32 = 4, fp16 or bf16 = 2, int8 = 1, and 4-bit storage = 0.5. Four-bit is a storage width, not a claim about numerical error. The planner’s own note is that 0.5 bytes is the width before scales and block metadata, so real 4-bit files are larger. Treat the 4-bit column as a lower bound on the weight term.
The sum below uses that formula and nothing else. GiB means bytes divided by 1024³. The parameter counts are round labels — 7 billion, 8 billion, 70 billion — not the exact count printed on a model card. A card’s parameter count is what you should type into the planner. Double quantisation’s further saving, the paper’s about 0.37 bits per parameter, is not subtracted here. Activations, gradients, optimiser state and fragmentation are not included. Paged optimisers do not change the base-weight term. They move spikes. This is an estimate so you can see the factor of four between 2 bytes and 0.5 bytes. It is not a promise that a card with that label loads in that many GiB.
Worked line, 7 billion parameters, 16-bit base. 7,000,000,000 × 2 = 14,000,000,000 bytes. 14,000,000,000 / 1024³ = 13.04 GiB. The same count at 4-bit storage: 7,000,000,000 × 0.5 = 3,500,000,000 bytes = 3.26 GiB. The paper’s 7B example stored a 4-bit base at 5,048 MB, which is larger than 3.5 billion bytes, as you would expect once the quantisation constants are in the file.
LoRA’s training memory is this base term at the precision you keep, plus the adapter, plus optimiser state on the adapter only. The planner uses fp16 for the adapter weights (2 bytes) and, as a planning assumption, fp32 Adam moments on the adapter (8 bytes). Kingma and Ba define Adam’s two moments. The choice to store them in fp32 is the planner’s assumption, not a figure from their paper. QLoRA uses the same adapter terms and sets the base width to 0.5 bytes. Full fine-tuning, which this fork is not, adds optimiser state on every base parameter. That is why the QLoRA paper’s 780 GB sentence and our 130.39 GiB sentence can both be honest: they add different terms. If you need every weight to move, read full fine-tune versus PEFT. Do not use the 4-bit column as that bill.
Estimate of base-weight memory only. GiB = parameters × bytes per parameter / 1024³. Round parameter labels, not a card. 4-bit uses 0.5 bytes before scales. Not a measurement of your GPU.
Round parameter label
16-bit base (2 bytes)
4-bit storage (0.5 bytes)
7 billion
13.04 GiB
3.26 GiB
8 billion
14.90 GiB
3.73 GiB
70 billion
130.39 GiB
32.60 GiB
When should you pick LoRA?
Pick LoRA when the frozen base fits on the machine you will train on, in the precision you are willing to defend, with enough headroom left that you are not already relying on a miracle. Fitting means the 16-bit or bf16 weight term plus adapter state plus the activations you know you will need. The table above does not include activations. If the weight term alone consumes the card, you do not “fit”. If the weight term leaves a wide margin, quantising the base to save a margin you already have is an extra dequantisation path to justify.
LoRA is the simpler file to explain. The base stays in the precision the checkpoint was shipped for training, the adapter is small, and you are not also choosing an NF4 block size. Use it when a 7B or 8B-class base is the one the task needs and the machine is a single contemporary training GPU with room to spare. Use it when you may later compare against a full update on that same base. Starting in 4-bit and then wondering whether a miss was the rank or the quantiser is an experiment you did not have to run.
Do not pick LoRA because the acronym is older, or because a template used it. If the named base is a 70B-class checkpoint and the only GPU you can book cannot hold about 130 GiB of 16-bit weights before activations, the estimate says LoRA in 16-bit is not the method. A smaller family member, or QLoRA, or a decision not to train that base, are the honest forks. The estimate is not the measurement. Run the planner with the card’s parameter count and look at the machine you have.
When should you pick QLoRA?
Pick QLoRA when the base you have already chosen does not fit in 16-bit on the machine you will train on, and a smaller checkpoint is not acceptable for a reason you can write down. The reason is usually the task, not the logo: you tried the smaller sibling, or you already know the smaller sibling is out of scope, and the larger file is the one you must adapt. QLoRA is how Dettmers et al. make that attempt fit. It is not how you skip having a task.
The QLoRA technique page is blunt about the wrong first step. If the documents are not cleared, if two reviewers disagree on the label, or if you have not tried a prompt with the passage pasted in, 4-bit training does not make those problems smaller. It makes the run possible on a smaller GPU. Possible is not justified. Read when QLoRA is the wrong first step before you book the method because a PEFT page mentioned 65B on 48GB.
Paged optimisers are part of the paper’s method for memory spikes. They are not a reason to ignore the base-weight sum. If the 4-bit lower bound already exceeds the GPU, paging optimiser state will not shrink the weights. If the 4-bit lower bound fits and a long sequence still dies, the paper’s paged optimiser is the mechanism they published for that spike. Whether your stack implements it is a question for the trainer you run, not a property of the acronym in the brief.
Decision prompts, not scores.
When
Then
The base fits in 16-bit on the training machine, with headroom you can name
Start with LoRA unless you have a written reason to quantise.
The 16-bit base does not fit and a smaller family member is unacceptable
Price QLoRA. Read the QLoRA page and run the planner with the card’s parameter count.
The 4-bit lower bound does not fit either
Change the base or the machine. Do not expect paged optimisers to shrink the weights.
You need every weight to move
This comparison is the wrong fork. Read full fine-tune versus PEFT.
What can we say about speed and quality?
Only what the sources say, and only about their setups. Dettmers et al. write that QLoRA preserves full 16-bit fine-tuning task performance on the evaluations in that paper, and that it does so without degrading runtime relative to a 16-bit fully fine-tuned baseline in that comparison. They also write that they recover 16-bit performance, and that the method backpropagates through the quantised weights into the adapters. Those sentences are about their models, their datasets and their hardware. They are not a result on insurance correspondence or retail attributes.
The same paper says current chatbot benchmarks are not trustworthy for judging chatbot performance levels, and it includes a qualitative look at where its own Guanaco models fail. That is a reason to refuse the usual slide. We do not paste Vicuna scores, Elo ratings or a “percentage of ChatGPT” into a procurement deck. If a published number matters to you, cite the paper with the date and then run unused examples of your task. The technique page’s rule stands beside this one: do not invent a quality gap between QLoRA and LoRA, and do not treat 4-bit as regularisation for bad labels.
Speed against plain LoRA is not a number we will invent. The paper’s “without degrading the runtime” line is against a 16-bit full fine-tune in their comparison, not a published tokens-per-second table of LoRA versus QLoRA on a named GPU we re-ran. Dequantisation is extra compute relative to leaving the base in 16-bit. How many tokens that costs you depends on the kernel, the sequence length and the card. Measure the stack you will run, or say you did not measure it. A 4-bit base can be the only way to attempt the run. It can also be an unnecessary quantiser when the machine was large enough. The way to know the quality consequence on your task is a test on examples the run did not train on. If you cannot afford both runs, say which method the memory plan forced and what you did not compare.
What does neither method decide?
Neither method decides the licence, the host, or whether training was the right gap. A behaviour you can show with examples is a fine-tuning problem. A document that changes and must be quoted is a retrieval problem. Settling LoRA versus QLoRA before that fork is how a team buys 4-bit training for a circular that should have been fetched. The comparison is fine-tuning versus RAG.
Serving is a later choice. You might merge the adapter into a 16-bit image, load the adapter beside the base, or quantise again for inference. Inference quantisation is not QLoRA. QLoRA is a training-time storage of the frozen base. Write the serving plan in the same pack as the adapter. Operators who receive a mystery blob cannot reproduce the run or the licence line.
Evaluation is still owed. Unused examples, a written pass mark, and a comparison with the current process are the result. A run that fits in 3.26 GiB of estimated base weights and fails the mark is a cheap failure. A run that needed the 4-bit path and passes is a method the memory plan forced and the test accepted. Say which. The planner will not say it for you.
Hugging Face PEFT, Quantization (Accessed September 2026). PEFT documents QLoRA as 4-bit quantisation of the frozen base plus LoRA adapters, and notes the pattern can fine-tune a 65B model on a single 48GB GPU in the original method write-up.
Kingma and Ba, Adam: A Method for Stochastic Optimization (Accessed November 2026). Adam keeps first and second moment estimates of the gradients. The VRAM planner on this site treats those two moments as fp32 state. That byte width is our planning assumption, not a measurement from the paper.
Questions we hear first
Is QLoRA a different adapter from LoRA?
No. Both train low-rank matrices on a frozen base. QLoRA’s change is to store that base in 4-bit, with NF4, double quantisation and paged optimisers in the Dettmers et al. method. The adapter file is not automatically smaller.
Does QLoRA use less disk for the adapter?
The adapter is the LoRA part in both cases. The memory saving during training is in the frozen base and in how optimiser spikes are handled, not in a smaller adapter as a rule. Rank still sets adapter size.
Is 0.5 bytes exact for NF4?
It is the 4-bit storage width before scales and block metadata. The QLoRA paper’s own 7B example puts the 4-bit base at 5,048 MB, above a 0.5-byte sum. Double quantisation saves further metadata in their account, about 0.37 bits per parameter. Our table does not subtract that. Treat 0.5 bytes as a lower bound.
Why is your 70B estimate so much smaller than the paper’s 780 GB?
The 130.39 GiB figure is 70 billion parameters times 2 bytes, and nothing else. The paper’s “more than 780 GB” is their statement for regular 16-bit fine-tuning of a LLaMA 65B model, which includes the optimiser and gradient terms a full update carries. QLoRA’s “under 48 GB” is their claim for the whole QLoRA run of a 65B model, not our base-weight column.
Does QLoRA match 16-bit quality?
Dettmers et al. report that it preserved full 16-bit fine-tuning task performance on the evaluations in their paper. That is not a result on your task. If you can run both, test both on unused examples. If memory forced QLoRA, say that you did not compare a 16-bit run.
Will QLoRA be slower than LoRA?
We do not publish a tokens-per-second gap. Dequantising a 4-bit base is work a 16-bit LoRA run does not do. The paper’s runtime sentence is against a 16-bit full fine-tune in their setup, not a LoRA-versus-QLoRA table we re-ran. Measure your stack or say you did not.
Which rank should we pick?
We do not publish a winning rank. Rank is a capacity knob. Set it for the task and test it. The technique pages refuse a rank-versus-score table for the same reason.
Do paged optimisers reduce the base-weight estimate?
No. In the paper they use NVIDIA unified memory to absorb optimiser-state spikes, especially with gradient checkpointing and long sequences. The base weights are still stored. If the 4-bit lower bound does not fit, paging will not make the weights smaller.
Does 4-bit training change the licence?
No. The base grant still applies to a LoRA adapter and to a QLoRA adapter. Quantisation is not a new licence and not a private deployment.
Start with one task and a written scope.
Bring the workflow, the constraints and where inference should run. We use that brief to decide whether sovereign LLM & SLM fine-tuning, retrieval or a readiness review is the right first step.