Skip to content

Files

Latest commit

7010908 · Jan 5, 2025

History

History
This branch is 7 commits ahead of, 97 commits behind rasbt/LLMs-from-scratch:main.

01_main-chapter-code

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 21, 2024
Nov 14, 2024
Jun 21, 2024
Jun 21, 2024
Jan 5, 2025
Oct 13, 2024
Jun 19, 2024
Jun 21, 2024

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)