LLMs-from-scratch/ch05/01_main-chapter-code
Kumar Utsav bc5d73857c
Update ch05.ipynb
Fixed incorrect token ids
2024-05-29 20:34:23 +05:30
..
2024-05-29 20:34:23 +05:30
2024-05-24 07:20:37 -05:00
2024-04-22 07:05:40 -05:00
2024-05-19 09:04:49 -05:00
2024-05-13 08:50:55 -05:00
2024-04-05 07:24:46 -05:00

Chapter 5: Pretraining on Unlabeled Data

  • ch05.ipynb contains all the code as it appears in the chapter
  • previous_chapters.py is a Python module that contains the MultiHeadAttention module and GPTModel class from the previous chapters, which we import in ch05.ipynb to pretrain the GPT model
  • gpt_train.py is a standalone Python script file with the code that we implemented in ch05.ipynb to train the GPT model (you can think of it as a code file summarizing this chapter)
  • gpt_generate.py is a standalone Python script file with the code that we implemented in ch05.ipynb to load and use the pretrained model weights from OpenAI
  • gpt_download.py contains the utility functions for downloading the pretrained GPT model weights
  • exercise-solutions.ipynb contains the exercise solutions for this chapter