A year and a half, countless experiments, and hundreds of pages later... today was one of my favorite days as an engineer and author. Build a Reasoning Model (From Scratch) is finally out, and my first copies just arrived!
440 full-color pages.
A huge thank you to everyone who joined me as an early reader and reviewer over the past 1.5 years. I hope this is a worthy sequel to Build a Large Language Model (From Scratch).
If you are wondering what's it covers, it walks you through implementing modern reasoning techniques from scratch on top of a small Qwen3 base model, with a focus on:
• inference scaling
• reinforcement learning
• distillation
While Build a Large Language Model (From Scratch) focuses on building and pre-training an LLM, this book picks up where that one leaves off and covers what comes next.
(If you enjoy model architecture details, don't worry, the complete Qwen3 architecture is also implemented from scratch and explained in the appendix.)
The book is now shipping from the publisher:
mng.bz/Nwr7
And it's also available for preorder on Amazon (shipping expected to begin there in a few weeks):
I hope it serves as a useful resource for anyone who wants to understand how reasoning models, which are now a key component of many modern AI agents, work under the hood.
Thanks again to everyone who helped make this book possible! Happy reading!