Skip to content

Learning LLMs From Scratch

My notes, explanations, and experiments while reading Sebastian Raschka's Build a Large Language Model (From Scratch).

Why?

I learn by reading with full attention, writing things down, and unpacking ideas until I can explain them. This companion follows the book and grows with my understanding. My longer-term goal is to connect model internals to inference engineering.

The structure

This companion grows chapter by chapter. Each chapter page records its reading progress and distinguishes developed notes from sections still to come.

How these notes grow

Follow each chapter's sections. Explain unfamiliar terms, trace small examples, add useful figures and links, and explore a tangent when it resolves a real question. Record expected and observed results with code. End each chapter by explaining how its pieces fit together.

Sources

These are original learning notes. Attribute adapted material and link to the book for the full treatment.