Skip to content

Files

Latest commit

author
Rob Munger
Jan 26, 2025
e291e72 · Jan 26, 2025

History

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

ch04

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 26, 2025
Oct 11, 2024
Oct 12, 2024

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

 

Main Chapter Code

 

Bonus Materials

  • 02_performance-analysis contains optional code analyzing the performance of the GPT model(s) implemented in the main chapter
  • ch05/07_gpt_to_llama contains a step-by-step guide for converting a GPT architecture implementation to Llama 3.2 and loads pretrained weights from Meta AI (it might be interesting to look at alternative architectures after completing chapter 4, but you can also save that for after reading chapter 5)