This repo is my note for the book Build a Large Language Model (From Scratch). I will follow the book to build a large language model from scratch.
The difference from the official repo is that in this repo I will add some of my own notes and some of my own implementation methods.
- Clone the repo
git clone https://github.com/kyriekevin/LLMs-from-scratch.git
- Setup the environment The detailed environment setup can be found in the setup
- Run the code
You can run python code or ipynb code in the
src
folder. All chapter codes in thesrc
folder are consistent with the official repo.
Chapter Title | Main Code (for Quick Access) | All Code + Supplementary |
---|---|---|
Setup recommendations | - | - |
Ch 1: Understanding Large Language Models | No Code | - |
Note
The setup part will be continuously updated. When new libraries need to be used, pyproject.toml and requirements.txt will be updated.