Skip to content

QLoRA

LoRA on top of a pre-quantized base model. Allows fine-tuning the model on a regular PC.

What's Different from LoRA

Regular LoRA keeps the base model in full precision (16 bits). QLoRA compresses it to 4 bits (NF4) before freezing. This reduces VRAM usage by 3–4 times.

Why It Works

Base weights do not get trained; they just participate in computations. Therefore, they can be stored in a compressed format: precision is only needed for small trainable matrices.

Result

A model like Llama 3 8B or Mistral 7B can be fine-tuned on a regular gaming PC or free Colab. The adapter file takes up tens of megabytes.

QLoRA vs LoRA

QLoRA LoRA
Base Model 4 bits 16 bits
VRAM Less More
Quality Slightly lower Higher
Where to Run PC, Colab Server

See Also

← All terms