AI Terminology Course
AI Terminology
/
Advanced

LoRA

Definition

Low-Rank Adaptation. A highly efficient fine-tuning technique that freezes the original massive neural network weights and injects tiny, trainable 'adapter' matrices into the layers, allowing you to fine-tune massive LLMs on consumer hardware.

Explain Like I'm New

You want to edit a 500-page book. Instead of rewriting the entire book (which takes forever), you freeze the book, write your notes on sticky-notes, and slap the sticky-notes on the pages. The 'sticky notes' are the LoRA.

Real World Example

To traditionally fine-tune a 70B parameter LLaMA model, you need a $50,000 server. Using LoRA, you only train 1% of the network (the sticky notes), allowing you to fine-tune it on a standard $1,000 gaming PC.

Common Use Cases

  • •Open-source AI development
  • •Cost-effective fine-tuning

Interview Questions

basic

  • What is the primary benefit of using LoRA over full Fine-Tuning?

intermediate

  • If you train 5 different LoRAs for 5 different tasks, do you need to store 5 massive copies of the Base LLM on your hard drive?

Flash Cards

Question

Primary benefit?

Click to reveal answer
Answer

Cost and hardware efficiency. It requires a fraction of the GPU VRAM to train.

Question

Store 5 copies?

Click to reveal answer
Answer

No! This is the brilliance of LoRA. You store exactly ONE copy of the massive base model. The LoRA files (the sticky notes) are only a few megabytes each. You can swap them in and out instantly depending on what task you want the AI to do.