Fine-Tuning, and When Not ToLesson 22 of 84

Module 3 · Full, LoRA and the parameter-efficient family

QLoRA: quantising the part you are not training

In this lesson

  • 10 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 4 of 9 in this chapter

This chapter’s goalPredict on paper the memory a given model, method and sequence length will need, choose between full fine-tuning, LoRA, QLoRA and the tiny methods for a stated budget, and justify a rank, an alpha and a target-module set.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
What QLoRA is made ofNF4, not plain int4Sixteen levels placed so each receives an equalshare of a normally distributed tensor, rather thanevenly spaced across a range the weights do notoccupy.Block-wise scalingOne scaling constant per 64 weights, so a singleoutlier distorts 64 values instead of sixteenmillion.Double quantisationThose constants quantised too, in blocks of 256:overhead falls from about 0.5 bits per parameter toabout 0.127.A higher-precision adapter on topThe frozen base is 4-bit; only the small trainedpart is kept and updated in 16-bit. Three precisionsin one model, and that is normal.Each idea is what makes the next affordable. On a 65B model, double quantisation alone saves aboutthree gigabytes: the difference between fitting and not.
Each idea is what makes the next affordable. On a 65B model, double quantisation alone saves about three gigabytes: the difference between fitting and not.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

The idea in one line

The frozen base model receives no gradients, so it does not need to be stored precisely. Quantise it to 4 bits, keep the small trainable adapter in higher precision, and a 70B model becomes trainable on a single 48 GB card.

The numbers for an 8B model: bf16 weights are 16 GB, NF4 weights are about 4.1 GB. For a 70B: 140 GB becomes about 36 GB.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Running Models Yourself exam.

Stuck on something?Ask Rafael, your AI tutor

How to cite: Addaly (2026) ‘QLoRA: quantising the part you are not training’, in Fine-Tuning, and When Not To. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/fine-tuning/qlora-and-nf4 (Accessed: 29 November 2026).