Reimplement nanoGPT, a local trainable and finetunable agent, into object-oriented style with typing checks.
Instead of using the example karpathy/chr_rnn/tinyshakespeare/input.txt, this repo support multiple .txt files from the folder input/ to be trained with.
Deviation: Unlike the
Add & Normafter each layer of the original paper, this repo implements pre-norm formulation.
Create virtual environment and install pyhton libraries.
Hint: On the official webpage, scroll down to find Miniconda Installers section!
% conda env create -f environment.yml% uv venv
% uv add -r requirements.txt% pip install -e .% pyhon src/main.py% nanogptpytest .