Fine-tuning & Parameter-Efficient Methods

Full fine-tuning, LoRA, QLoRA and adapters — adapting a pretrained model on a budget you actually have.

Module 05.4 · Advanced
Free

10h · 8 lessons · 1 challenge

Before this: Attention & the Transformer

About this module

Almost nobody pretrains, and almost everybody adapts. This module covers the adaptation toolkit and, more importantly, the decision: full fine-tune, LoRA, prompt, or retrieve.

LoRA is derived from the low-rank material in the linear algebra module, which is a satisfying place for that thread to come back.

After this module you can

8 lessons

Lesson 1
The adaptation decision tree
Kind
Concept
Length
45 min
Lesson 2
Full fine-tuning: cost, data, catastrophic forgetting
Kind
Concept
Length
50 min
Lesson 3
LoRA as a low-rank update, derived
Kind
Concept
Length
55 min
Lesson 4
QLoRA, quantized bases and memory arithmetic
Kind
Concept
Length
50 min
Lesson 5
Adapters, prefix tuning and the wider family
Kind
Concept
Length
40 min
Lesson 6
Fine-tune a model on your own dataset
Kind
Lab
Length
130 min
Lesson 7
Budget Fit: adapt it inside 24GB
Kind
Interactive
Length
40 min
Lesson 8
Checkpoint: choose the adaptation
Kind
Checkpoint
Length
25 min

The challenge: Budget Fit

A model, a task, one 24GB card. Pick the method, the rank and the precision. The game runs your configuration and reports whether it fit and what it scored.

Worth 600 XP.

Related modules

All modules