Matthew Hernandez 83c76891fc Fix issue 724: unused args (#726) 4 달 전
..
README.md 52ee1c7cdb Add missing bullet point 1 년 전
ch06.ipynb 4014bdd520 Ch06 classifier function asserts (#703) 5 달 전
exercise-solutions.ipynb 06921f3333 minor markdown fixes (#236) 1 년 전
gpt_class_finetune.py 83c76891fc Fix issue 724: unused args (#726) 4 달 전
gpt_download.py 86b714a5e0 Specify UTF-8 encoding in the json load command explicitely (#557) 8 달 전
load-finetuned-model.ipynb a20ce1b817 remove redundant code line 1 년 전
previous_chapters.py bbb2a0c3d5 fixed num_workers (#229) 1 년 전
tests.py 6c0dc2362b Add standalone finetuning and evaluation scripts for chapter 7 (#234) 1 년 전

README.md

Chapter 6: Finetuning for Classification

Main Chapter Code

  • ch06.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
  • exercise-solutions.ipynb contains the exercise solutions for this chapter

Optional Code

  • load-finetuned-model.ipynb is a standalone Jupyter notebook to load the finetuned model we created in this chapter
  • gpt_class_finetune.py is a standalone Python script file with the code that we implemented in ch06.ipynb to finetune the GPT model (you can think of it as a chapter summary)