Skip to content

Latest commit

 

History

History
 
 

README.md

Fine-tuning LLMs

Lecture slides: LLM-Course Lecture 4

Lab Exercise

  1. Run the supervised_finetuning.ipynb in Google Colab or CSC (convert to python script)
  • Change the base model used (search for small <7B parameter models in Hugging Face).
  • Change the dataset used in fine-tuning.
  1. Bonus challenge:
    • Change the fine-tuning method from supervised fine-tuning to DPO.
    • Change the code accordingly, see: Hugging Face DPO Trainer Documentation
    • Select an appropriate DPO dataset. Search Hugging Face Datasets.