This is Andrej Karpathy's famous minimal GPT implementation — a complete AI language model in pure Python. Let me walk you through every single piece.
This program does three things:
- Reads a dataset of human names (like "Emma", "Olivia", "Liam")
- Trains a tiny brain (neural network) to learn the patterns in those names