Fine-Tuning, and When Not ToLesson 20 of 84

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

What LoRA is actually doing

In this lesson

  • 9 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 2 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
One 4,096 by 4,096 projection, adaptedNumbers storedShare of WFull update16,777,216a full matrix100%every entry free to moveLoRA at r = 16131,072two thin matrices0.78%a reweighting, not new machineryB is initialised to exactly zero, so BA is zero at step one and the model starts as the base model.That is why a LoRA cannot be worse on step one, and why it wants a learning rate ten to twenty timeshigher.
B is initialised to exactly zero, so BA is zero at step one and the model starts as the base model. That is why a LoRA cannot be worse on step one, and why it wants a learning rate ten to twenty times higher.

Figure

A little at a time

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

Step 1 of 7Free · no account needed
Lesson steps

A correction, factored

Fine-tuning changes a weight matrix W into W + ΔW. LoRA’s observation is that for adapting a pretrained model to a task, ΔW does not need to be a full matrix. It can be the product of two thin ones.

Text
ΔW = B · A          A is r × k,  B is d × r,  r is small
W' = W + (α/r) · B · A

For a 4,096 × 4,096 projection, W has 16.8 million entries. With r = 16, A has 16 × 4,096 = 65,536 and B has 4,096 × 16 = 65,536, so ΔW is described by 131,072 numbers: 0.78% of the matrix it modifies.

W itself is frozen. It receives no gradient, needs no optimiser state, and can sit in 4-bit quantised form if you like. Only A and B are trained.

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) ‘What LoRA is actually doing’, in Fine-Tuning, and When Not To. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/fine-tuning/what-lora-is-doing (Accessed: 27 November 2026).