Neural Networks
6 published parts, in reading order.
- 1Neural Networks: Introduction
Introduction to Neural Networks.
- 2Neural Networks: Linear Regression
From math to code: build linear regression from scratch and see how it connects to neural networks.
- 3From Bigrams to Neural Networks: The First Step in Language Modeling
A hands-on walkthrough from count-based bigrams to a simple neural model.
- 4Neural Network Training: Statistics, Initialization and Diagnostics
A structured study of neural network training dynamics, covering statistical preliminaries, loss interpretation, saturation, gradient flow, initialization schemes, diagnostic tools, and stabilization mechanisms.
- 5From Self-Attention to a Small GPT
A personal from-scratch derivation of causal self-attention, starting from a character language model and ending with the core pieces of a small GPT.
- 6Deep Dive into a Custom GPT Architecture
A from-scratch GPT implementation, its computational cost, and experiments on arithmetic and character-level language modeling.