LLMs-from-scratch/ch07/01_main-chapter-code

Chapter 7: Finetuning to Follow Instructions

Main Chapter Code

  • ch07.ipynb contains all the code as it appears in the chapter
  • previous_chapters.py is a Python module that contains the GPT model we coded and trained in previous chapters, alongside many utility functions, which we reuse in this chapter
  • gpt_download.py contains the utility functions for downloading the pretrained GPT model weights

Optional Code