Learn LLM internals step by step - from tokenization to attention to inference optimization.
-
Updated
May 15, 2026
Learn LLM internals step by step - from tokenization to attention to inference optimization.
Learn how language models work by building a Bigram model from scratch — first with pure Python, then with PyTorch. Every line is heavily commented for beginners.
Add a description, image, and links to the learn-llm topic page so that developers can more easily learn about it.
To associate your repository with the learn-llm topic, visit your repo's landing page and select "manage topics."