Adaptation
QLoRA
LoRA on top of a 4-bit quantised base model — fine-tuning big models on one GPU.
What it is and why it exists
The frozen base weights are stored in 4-bit (NF4) and dequantised on the fly; only the LoRA adapters train in higher precision. Memory for a 7–8B model drops to roughly what fits on a single consumer or mid-range GPU, at some speed cost.
Quick prototype
QLoRA notebook on one GPU.
In production, at scale
Use when GPU memory is the constraint; compare against LoRA on the full-precision base on your evals; merge carefully (dequantise first).
Vendors and tools
| bitsandbytes + PEFT | 4-bit training |
|---|---|
| Unsloth / Axolotl | QLoRA recipes |
How it fails
- Quality gaps from quantisation on precision-sensitive tasks
What the interviewer asks next
Why does QLoRA fit on one GPU?
The base model’s weights take ~0.5 byte per parameter instead of 2, and optimiser state exists only for the tiny adapters.