llm-internals
A step-by-step learning resource that explains LLM concepts, tokenization, and attention through linked articles and videos, helping readers understand how language models process text.
Share on XLicense: Apache-2.0
Overview
LLM Internals is a step-by-step learning resource about how large language models process text and generate responses. It helps bridge the gap between using LLMs and understanding the mechanisms behind them through linked articles and videos. The material starts with LLM concepts, then covers tokenization, Byte Pair Encoding, stop tokens, and the math of attention with Query, Key, and Value. Readers can work through the explanations in sequence and follow the linked videos.
Key features
- Introduces LLMs and related concepts including RAG, MCP, agents, fine-tuning, and quantization.
- Explains character-, word-, and subword-level tokenization, BPE, token IDs, and decoding.
- Covers stop tokens and their role in generated text and chat turns.
- Works through Query, Key, and Value attention math with a numeric example.
Best for
Useful for readers who want to understand how LLMs process text, one concept at a time. Choose it to learn from linked explanations and videos rather than only using LLMs.
- Upstream
- amitshekhariitbhu/llm-internals
- Fork on GitHub
- Guo-astro/llm-internals
- Upstream stars
- 1.7k
- Category
- Learning, interviews and curated lists
- License
- Apache-2.0
- Forked
- 2026-10-03
- Sync status
- In syncLast synced 2026-10-05
More in Learning, interviews and curated lists
An open dataset maps primary and elementary learning into micro-topics, prerequisites, and curriculum standards. Use it to explore what children learn and how concepts build on one another.
Forked 2026-10-04Last synced 2026-10-05License: ODbL-1.0Learning, interviews and curated listsGitHub
A curated list of books on large language models for engineers who want a focused reading path. It helps narrow the long list of LLM resources into practical, relevant titles and links.
Forked 2026-10-03Last synced 2026-10-05No license declaredLearning, interviews and curated listsGitHub
A curated reading list of engineering articles from top tech companies. It helps engineers learn how teams solve real-world scale, infrastructure, and system design problems.
Forked 2026-10-03Last synced 2026-10-05License: MITLearning, interviews and curated listsGitHub
A curated list of classic mathematics books, helping readers find influential texts and translations for study and reference.
Forked 2026-10-03Last synced 2026-10-05No license declaredLearning, interviews and curated listsGitHub