Under the Hood
Book ↗

A code companion · 36 projects · 36 chapters

Under the
Hood.

Build Every Layer of a Large Language Model from Scratch

By Ramchand Kumaresan

Build it. Break it. Measure it.— not a tagline, the entire epistemology of the book.

The Method

01

Build it

Reading is not understanding. Understanding is being able to reproduce. Every project ships a runnable build.py you assemble yourself.

02

Break it

A working system tells you what it does. A broken system tells you why it has to be that way. Each project sabotages itself on purpose.

03

Measure it

Intuition without numbers is the most expensive failure mode in machine learning. Every claim comes with captured outputs.

This is the code. The book is the why.

This site hosts every runnable project, every break_it experiment, and every captured output — free. The book itself (the long-form derivations, the prose, the full chapters) is distributed separately.

Buy the book on Leanpub →