Fine-tuning: SFT & LoRA

Step 9 of 13 in Generative AI · Build · Medium

Supervised fine-tuning teaches format and behaviour from examples. LoRA trains small low-rank updates instead of all weights.

Build it

  1. LoRA from scratch

    LoRALinear around a frozen layer; fine-tune a small model on a classification or instruction set.

    Done when: Under 1% trainable params; quality close to full fine-tuning.

Case study: LoRA (2021)

  • Cut trainable parameters by up to 10,000× on GPT-3.
  • No added inference latency once merged.
  • Made fine-tuning practical for individuals.

Read the case study

Resources

Earn this star

On the map, you log what you built. Finish the step and its star lights.

Open this step on the map