Build a Reasoning Model (From Scratch) cover
ProgrammingIn Stock

Build a Reasoning Model (From Scratch)

by Sebastian Raschka

Price৳ 450
Price৳ 450

Have a question? Ask on WhatsApp or Message on Messenger

Call 01963 822422 / 01817 506044 for help with your order

Build a Reasoning Model (From Scratch) by Sebastian Raschka is a hands-on guide that shows you how reasoning in large language models actually works, by building it yourself, step by step, in code. Instead of treating modern reasoning models as a black box, this book walks you through the core ideas and techniques behind them, so you understand not only what they do, but how and why they do it.

Sebastian Raschka is well known for his clear, code-first teaching style and his best-selling book Build a Large Language Model (From Scratch). In this book, he continues that approach and takes you one step further: from a standard LLM to a model that can think through problems, break them into steps, and produce more accurate answers on tasks such as math, logic, and coding.

Topics covered in this book:

  • What reasoning means in large language models and how reasoning models differ from standard LLMs
  • Starting from a pretrained base model and preparing it for reasoning tasks
  • Evaluating reasoning performance with practical benchmarks and verifiable answers
  • Inference-time scaling techniques, including chain-of-thought prompting, self-consistency, and sampling strategies
  • Improving answers with self-refinement and other test-time compute methods
  • Reinforcement learning for LLMs, including reward design and verifiable rewards
  • Training and fine-tuning methods for reasoning, including distillation and supervised fine-tuning
  • Implementing the core components in Python and PyTorch with clear, runnable code
  • Understanding the trade-offs between accuracy, cost, speed, and model size
  • Practical tips for experimenting with reasoning models on your own hardware

Who is this book for?

  • Machine learning engineers and AI engineers who want to understand how modern reasoning models work
  • Python developers with some deep learning experience who want to go deeper into LLMs
  • Data scientists and researchers exploring reasoning, reinforcement learning, and inference-time techniques
  • Students and self-learners who learn best by building things from scratch
  • Readers of Sebastian Raschka's earlier LLM book who want a natural next step
  • Practitioners who want to move beyond prompting and truly understand what is under the hood

Why do so many readers choose this book over other LLM and AI books?

  • It teaches by building. You write the code yourself, so the concepts become clear and concrete instead of abstract.
  • It focuses on reasoning, one of the most important and fastest-growing areas in modern AI.
  • It is written by Sebastian Raschka, a respected researcher, educator, and author known for explaining complex topics simply.
  • It covers both inference-time techniques and training methods in one place, giving you a complete picture.
  • The examples are practical and designed to run on accessible hardware, so you can follow along without a large research budget.
  • It builds real understanding that remains useful even as new models and tools appear.

Key topics: reasoning models, large language models, LLM from scratch, chain-of-thought, inference-time scaling, reinforcement learning, fine-tuning, distillation, PyTorch, Python, and AI engineering.

If you want to understand how today's reasoning models actually work, and build the key pieces yourself, Build a Reasoning Model (From Scratch) is an excellent choice. It turns a complex and fast-moving topic into something you can learn, implement, and use with confidence.