mplementation of a small GPT-style transformer from scratch in PyTorch — learn how Large Language Models work by building, training, generating text, and visualizing attention.
tutorial text-generation educational gpt beginner-friendly from-scratch hands-on from-scratch-in-python llm tinystories tiny-gpt
-
Updated
Feb 8, 2026 - Python