The LoRA rank
Fine-tuning a 7B model with LoRA trains a small correction beside the frozen weights. How big should the correction be?
A 7B model sits frozen, all 7 billion numbers, and a thin correction trains beside each chosen attention grid. One dial sets how big each correction is. The panels show the trainable numbers, the memory to train against a full fine-tune's 112 GB, and an illustrative quality curve. Cost climbs in a straight line. Quality flattens past rank 16.
Included with a plan
This lab is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.
See plansAlready a member? Sign in
Or start free: a free account opens lessons 2 and 3 of every track.
the lesson Fine-tuning & Alignment
The whole idea this lab came from, told start to finish.
on the path Module 2 of 9 in AI: From a model to an app
The lessons, boards and videos around this lab, in reading order.
see also LoRA: Low-Rank Adaptation of Large Language Models and Training language models to follow instructions with human feedback in Papers.