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?