Sebastian Raschka c21bfe4a23 Add PyPI package (#576) há 8 meses atrás
..
README.md 283397aaf2 add main and optional sections há 1 ano atrás
ch04.ipynb c21bfe4a23 Add PyPI package (#576) há 8 meses atrás
exercise-solutions.ipynb a08d7aaa84 Uv workflow improvements (#531) há 9 meses atrás
gpt.py bbb2a0c3d5 fixed num_workers (#229) há 1 ano atrás
previous_chapters.py bbb2a0c3d5 fixed num_workers (#229) há 1 ano atrás
tests.py a2cd8436cb Ch05 supplementary code (#81) há 1 ano atrás

README.md

Chapter 4: Implementing a GPT Model from Scratch To Generate Text

Main Chapter Code

  • ch04.ipynb contains all the code as it appears in the chapter
  • previous_chapters.py is a Python module that contains the MultiHeadAttention module from the previous chapter, which we import in ch04.ipynb to create the GPT model

Optional Code

  • gpt.py is a standalone Python script file with the code that we implemented thus far, including the GPT model we coded in this chapter