Sebastian Raschka c21bfe4a23 Add PyPI package (#576) před 8 měsíci
..
README.md 283397aaf2 add main and optional sections před 1 rokem
ch04.ipynb c21bfe4a23 Add PyPI package (#576) před 8 měsíci
exercise-solutions.ipynb a08d7aaa84 Uv workflow improvements (#531) před 9 měsíci
gpt.py bbb2a0c3d5 fixed num_workers (#229) před 1 rokem
previous_chapters.py bbb2a0c3d5 fixed num_workers (#229) před 1 rokem
tests.py a2cd8436cb Ch05 supplementary code (#81) před 1 rokem

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