Nanogpt

Educational GPT implementation in ~300 lines. Reproduces GPT-2 (124M) on OpenWebText. Clean, hackable code for learning transformers. By Andrej Karpathy. Perfect for understanding GPT architecture from scratch. Train on Shakespeare (CPU) or OpenWebText (multi-GPU).

tianhao909 Updated 1 repo stars

File contents

tianhao909/AI-Research-SKILLs-cn/tree/main/01-model-architecture/nanogpt commit 3b77abf9a8

Frequently asked questions

npx skillmds@latest add tianhao909/nanogpt