latent state // log

◆ Machine Learning // 3 posts

2026
OCT 17 // NLP · ML
Training GPT from Scratch
Training a GPT from scratch on my own RTX 4090, written down as I go. Part 1: preparing the dataset.
SEP 11 // ML
The Normal Equation: Linear Regression in One Line
Why you would fit a line at all, how the normal equation does it in O(nd² + d³), and a live chart to feel it: turn the noise, slope and intercept knobs and watch the fit, the residuals and the MSE respond.
JUL 28 // CUDA · ML
Matrix Multiplication, From Definition to Cache Lines
One multiply, three implementations, three orders of magnitude — measured on a Skylake desktop, then explained: cache lines, arithmetic intensity, and the tiling idea every BLAS and every GPU matmul kernel is built on.