Skip to content
StackDecode
AI & ML Atlas
Deep LearningtechniqueAnimated walkthrough

Fine-Tuning

Continues training a pre-trained model on your data with a small learning rate.

The idea

Starting from pre-trained weights, update some or all layers on the target task so the model specialises. A low learning rate avoids erasing what was learnt; parameter-efficient methods such as LoRA train only small added matrices, saving memory.

Watch it run

The pipeline lights up one step at a time. Use the controls to pause or step through it.

  1. 1Load pre-trained weights.
  2. 2Replace or add the task head.
  3. 3Optionally freeze the early layers.
  4. 4Train on the new data with a small learning rate.
  5. 5Evaluate and stop early.
1/5

Step by step

  1. 1Load pre-trained weights.
  2. 2Replace or add the task head.
  3. 3Optionally freeze the early layers.
  4. 4Train on the new data with a small learning rate.
  5. 5Evaluate and stop early.

Where it is used

Adapting language models and vision backbones to a domain.

Watch out for

Catastrophic forgetting and overfitting on small datasets.

Related