Overview
Syllabus
How to fine tune on a custom dataset
What dataset should I use for fine-tuning?
Fine-tuning in Google Colab
Loading Llama 2 with bitsandbytes
Fine-tuning with LoRA
Target modules for fine-tuning
Loading data for fine-tuning
Training Llama 2 with a validation set
Setting training parameters for fine-tuning
Choosing batch size for training
Setting gradient accumulation for training
Using an eval dataset for training
Setting warm-up parameters for training
Using AdamW for optimisation
Fix for when commands don't work in Colab
Evaluating training loss
Running inference after training
Taught by
Trelis Research