This repository contains a full rewrite of the GPT-2 model with many layers and concepts implemented from scratch. It is a learning resource for understanding the inner workings of the model.
Table of contents:
-
Concepts - Jupyter notebooks with visualizations and explanations of the concepts
-
Layers - Implementations of the layers used in the model
-
Model - The main model implementation
-
Train - Training loop implementation
-
Checkpoints - Checkpoint for the model