Fine Tuning Large Language Models: Domain Adaptation

Fine-tuning is the process of specializing a pre-trained foundation model on a specific task or domain using a smaller, curated dataset.

1. Fine-Tuning Modalities

2. LoRA: Low-Rank Adaptation

LoRA injects small, trainable "adapter" matrices into the transformer layers while keeping the original weights frozen.

3. QLoRA: Quantized LoRA

QLoRA takes PEFT further by quantizing the base model to 4-bit precision (NF4) while maintaining 16-bit precision for the adapters.

4. Dataset Curation and RLHF

The quality of the fine-tuning data is more critical than the algorithm.


See Also: