Skip to main content

Module 5: QLoRA and Quantization

Training Large Models on Consumer Hardware​

This module covers QLoRA (Quantized LoRA), which combines 4-bit quantization with LoRA to enable fine-tuning of large models on consumer GPUs with minimal quality loss.


What You'll Learn​

  1. Understand QLoRA and how it enables extreme memory efficiency
  2. Master 4-bit quantization using the bitsandbytes library
  3. Implement memory-efficient training techniques
  4. Optimize training for limited hardware

Module Structure​

ChapterTopicDuration
Chapter 1What is QLoRA?25 min
Chapter 24-bit Quantization30 min
Chapter 3Memory-Efficient Training30 min
QuizModule 5 Quiz30 min

Key Concepts​

  • QLoRA: Quantized LoRA using 4-bit NF4 format
  • NF4: 4-bit NormalFloat quantization format
  • Double Quantization: Quantizing the quantization constants
  • Gradient Checkpointing: Trading compute for memory

Estimated time: 2 hours