674: Parameter-Efficient Fine-Tuning of LLMs using LoRA (Low-Rank Adaptation) — with Jon Krohn

Topics covered
Popular Clips
Episode Highlights
LoRA Fundamentals
introduces the concept of Low-Rank Adaptation (LoRA) as a solution to the challenges of fine-tuning large language models. He explains that traditional model training can lead to catastrophic forgetting, where models lose their ability to perform a wide range of tasks. LoRA, however, uses low-rank decomposition matrices to efficiently fine-tune models without this risk.
These relatively easy to process low rank decomposition matrices are inserted into each layer of the original transformer architecture.
---
This approach not only prevents forgetting but also enhances the model's ability to generalize from limited data, making it applicable beyond natural language processing to fields like machine vision 1.
Implementation Benefits
The practical advantages of implementing LoRA are significant, as highlights. By freezing most model weights and only training the low-rank matrices, the number of trainable parameters is reduced by about 10,000 times, and the memory footprint is decreased by three times. This reduction means less computational power is required, making it accessible to more users.
In some cases, Lora not only performs on par with training the entire LLM, but it actually outperforms it.
---
Additionally, mentions the Hugging Face PEFT library, which simplifies the implementation of LoRA, and introduces Ada LoRA, an adaptive approach that fine-tunes selectively for enhanced performance 2.
Related Episodes

670: LLaMA: GPT-3 performance, 10x smaller — with Jon Krohn (@JonKrohnLearns)
Answers 383 questions

797: Deep Learning Classics and Trends — with Dr. Rosanne Liu
Answers 383 questions
772: In Case You Missed It in March 2024 — with Jon Krohn (@JonKrohnLearns)
Answers 383 questions

706: Large Language Model Leaderboards and Benchmarks — with Caterina Constantinescu
Answers 383 questions

784: Aligning Large Language Models — with Sinan Ozdemir
Answers 383 questions

767: Open-Source LLM Libraries and Techniques — with Dr. Sebastian Raschka
Answers 383 questions
SDS 510: Deep Reinforcement Learning — with Jon Krohn
Answers 383 questions
