Running Models YourselfLesson 75 of 82

Module 9 · Making it yours: adapters and training

What a LoRA actually is

In this lesson

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

This chapter’s goalDecide whether a stated failure calls for a better prompt, retrieval or weight training; produce a LoRA adapter on one consumer card from a dataset you built with the correct chat template and loss masking; distinguish generalisation from memorisation and from catastrophic forgetting using a held-out set and a general-capability check; serve or merge the adapter; and state which licences the resulting weights inherit.

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

A little at a time

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

Step 1 of 8Free · no account needed
Lesson steps

The arithmetic that makes it possible

Full fine-tuning updates every weight matrix. For a 7B model that means holding 7 billion gradients and, with a typical optimiser, two further values per parameter, which is why full fine-tuning a 7B model needs something in the region of 70 to 90GB of memory and is out of reach on consumer hardware.

Low-Rank Adaptation makes one substitution. Instead of learning an update to a weight matrix W of shape d x k directly, it learns two much smaller matrices and uses their product:

Text
W_effective = W + (alpha / r) * B @ A

A : r x k      (initialised from a small random distribution)
B : d x r      (initialised to zeros, so training starts as a no-op)

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 Open Model Ecosystem exam.

Stuck on something?Ask Tri, your AI tutor

How to cite: Addaly (2026) ‘What a LoRA actually is’, in Running Models Yourself. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/running-models-yourself/what-a-lora-actually-is (Accessed: 29 November 2026).