brew install direnvecho 'eval "$(direnv hook bash)"' >> ~/.bashrc# and restart terminaldirenv version
python3 -m venv .venv# python or python3 should already be installedecho 'source .venv/bin/activate' > .envrc
| """ | |
| The most atomic way to train and inference a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |