LLM Architecture
Parameter counts, weight matrices, depth vs width, head count. The blueprint of real LLMs.
Learning path
Work through each subtopic in order. Click any file below to open its lesson. Track your progress with the checkbox at the bottom.
Subtopics
Each subtopic includes a concise explanation, code examples, and references.
Model Parameters
Parameter map.
Parameter Count
Parameter calculator.
Weight Matrices
Matrix explorer.
Embedding Parameters
Vocabulary × embedding-dimension calculator.
Attention Parameters
Q/K/V/output projection calculator.
Feed-Forward Parameters
FFN parameter calculator.
Model Depth
Layer-stack visualization.
Model Width
Hidden-dimension visualization.
Number of Heads
Head configuration control.