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

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