Advanced level · Module 4: Parameter-Efficient Fine-Tuning · Lesson 3 of 3
QLoRA, Memory and Evaluating Adapters
Learners study QLoRA (fine-tuning on a quantised base model), estimate memory needs, and evaluate adapters against the base and fully fine-tuned models.
In this lesson you will
- Explain QLoRA and its memory savings
- Evaluate and manage adapters
Key concepts
QLoRA4-bit base modelGPU requirementsadapter evaluationadapter versioning
The lesson
QLoRA fine-tunes LoRA adapters on top of a base model loaded in 4-bit precision, greatly reducing memory so larger models can be adapted on a single modest GPU. It generally needs a GPU, so in this programme it is demonstrated on a free notebook GPU or studied conceptually.
Evaluate adapters on the validation set, on held-out general tasks and on safety prompts. A narrow adapter can make the model worse elsewhere.
Version adapters with the base model name, dataset version and evaluation results, so they can be reproduced and rolled back.
Step by step
- Read the QLoRA abstract and summarise its contribution.
- Estimate memory for LoRA vs QLoRA on a 7B model.
- Evaluate your adapter on task, general and safety prompts.
- Write an adapter version record.
Practice activity
Produce an adapter evaluation and version record.
Expected result: Honest results across task, general and safety prompts, with a reproducible record.
Check your understanding
-
What does QLoRA quantise?
Show answer
The base model, to 4-bit, while training LoRA adapters.
-
Why test adapters on safety prompts?
Show answer
Fine-tuning can weaken safe behaviour.
Further learning
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.