﻿# QLoRA keeps a quantized base frozen while training adapters

QLoRA trains low-rank adapters through a frozen quantized base. Understand gradient flow, quantized storage and why low-bit weights do not mean low-bit optimizer state everywhere.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/qlora-frozen-base-trainable-adapters/
Language: en

QLoRA combines low-rank adaptation with a quantized frozen base model. Its important distinction is between what is stored compactly, what is trainable and what participates in differentiation. These are different properties. A base weight can remain frozen while the computations using it still matter to the gradients of trainable adapters.

## The base representation is compact and frozen

The base weights use a declared quantized representation and are not the intended trainable parameter set. QLoRA’s paper describes specific numerical and memory-management choices, which should not be replaced by a generic claim that every quantity becomes low bit. The base still supplies the learned transformation used by the model. Quantization changes its numerical representation; freezing specifies that the training update does not optimize those stored base parameters. These two choices can be discussed separately even when a recipe combines them.

## Adapters provide the trainable update path

Low-rank factors attached to selected modules supply trainable updates. Forward computation combines the base transformation and adapter contribution according to the implementation. Backpropagation obtains derivatives for the adapter parameters through the complete relevant graph. An upstream adapter can need gradients propagated through a later frozen operation even though that operation’s own weights receive no optimizer update. This distinction explains why freezing the base does not mean wrapping every base computation in a gradient-disabled region without checking the effect on the intended adapter gradients.

## Storage format is not every operation’s arithmetic

A quantized weight may be reconstructed or consumed by kernels using other computation formats. Activations, gradients, adapter parameters and optimizer state can use different representations. Record each according to the actual recipe rather than multiplying the entire training footprint by the nominal bits of the stored base. The QLoRA paper’s mechanisms address particular storage and execution costs. Their existence does not establish a universal peak memory figure for every sequence length, batch, architecture or software implementation that adopts the QLoRA label.

## Validate adaptation and numeric compatibility separately

A small fixture can verify that base parameters remain unchanged, adapters receive nonzero intended gradients, and the quantized path produces acceptable numerical behavior under the declared setup. Then evaluate held-out task quality and actual peak memory. Preserve the base revision, quantization settings and adapter configuration together. An adapter trained against one represented base is not automatically equivalent after swapping in another numeric variant. This makes the method understandable as a coordinated training recipe rather than a promise that compact storage alone yields inexpensive, accurate adaptation under all conditions.

## Primary research and implementation references

- [LoRA: Low-Rank Adaptation of Large Language Models](https://arxiv.org/abs/2106.09685).

- [QLoRA: Efficient Finetuning of Quantized LLMs](https://arxiv.org/abs/2305.14314).

- [Hugging Face PEFT: Quantization and QLoRA-Style Training](https://huggingface.co/docs/peft/developer_guides/quantization).

## Related engineering context

[Reproducible inference stacks: preserving a GPU pilot’s result](/journal/software-stack-reproducibility/); [A GPU inference benchmark you can trust](/journal/inference-benchmark-method/).
