Full, LoRA & QLoRA Fine-tuning
LoRA (Low-Rank Adaptation, Hu et al., 2021) is the method that made fine-tuning large models practical on modest hardware. QLoRA (Dettmers et al., 2023) pushed it further: fine-tuning a 65B model on a single 48 GB GPU.
In this lesson
- The idea
- Implementing a LoRA layer
- QLoRA: fine-tuning on a quantized base
- Memory comparison (8B model, rough, excluding activations)
- Choosing the rank
This lesson is part of AI Engineering. Unlock the full course to read it, take the quiz and track your progress.