Skip to content
  • Home
  • Shop
  • About Us
  • Search
  • Contact Us
  • Login
View cart
  • Login
Close
  • Home
  • Shop
  • About Us
  • Search
  • Contact Us
Home Build a Reasoning Model (from Scratch) - Paperback
Build a Reasoning Model (from Scratch)
  • Algorithms,
  • Books,
  • Computers,
  • Data Science,
  • Machine Learning,
  • Programming,

Build a Reasoning Model (from Scratch) - Paperback

Original price $96.84 - Original price $96.84
Original price
$96.84
$96.84 - $96.84
Current price $96.84
| /
Availability: In Stock
SKU 9781633434677
  • Description
  • Reviews ()

Additional information

Report copyright infringement

by Sebastian Raschka (Author)

Get the eBook free when you register your print book at Manning.

"An exceptional deep dive into the next frontier of AI."
--Aman Chadha, Google

This book is a practical guide to understanding how modern reasoning-oriented LLMs work by building their core methods step by step. The book tells a clear engineering story: start with a conventional pre-trained LLM, learn how text generation works, build reliable evaluation tools, improve reasoning through inference-time methods, then move into training-based approaches such as reinforcement learning and distillation.

The progression is deliberate. Early chapters establish the baseline model and explain text generation, KV caching, and evaluation with math verifiers. The middle chapters show how reasoning can be improved without changing model weights, using chain-of-thought prompting, sampling, self-consistency, response scoring, and self-refinement. Later chapters move to changing the model itself through reinforcement learning with verifiable rewards, GRPO improvements, format rewards, and finally distillation from stronger reasoning models into smaller ones.

The book is especially useful because it implements the core methods from scratch rather than treating them as black-box library calls. Readers see how self-consistency, self-refinement, Best-of-N, and training-based methods actually work, including their cost and latency trade-offs. It also discusses common failure modes, including cases where refinement can make answers worse. Difficult concepts such as softmax, temperature, and top-p sampling are clarified with code-linked explanations and diagrams, and visual workflows make pipelines and scoring methods easier to follow.

Reading the book feels like following a guided technical build rather than a loose survey of AI topics. Each concept is introduced because the project now needs it. Diagrams, roadmaps, code listings, exercises, and repeated workflow summaries help readers stay oriented through advanced material. This structure reflects Sebastian Raschka's professional strength: explaining complex machine learning topics by making every detail concrete and showing exactly where each section fits in the larger story. He does not treat mechanisms like evaluation, log-probabilities, KL regularization, or distillation as isolated abstractions; he connects them to the goal of making reasoning models understandable and implementable.

Physically and organizationally, the book has eight chapters and seven substantial appendixes. That design keeps the main narrative focused while moving supporting material like references, exercise solutions, model source code, larger models, batching, evaluation alternatives, and chat interfaces into ordered appendixes. The result is a logically flowing book that remains hands-on, navigable, and technically deep without constantly interrupting the central build.

What's inside

- From-scratch implementations of core LLM reasoning improvements
- Verifier-based evaluation methods
- RL with automatic verifiers for mathematics tasks

About the reader

For readers who know Python and have some knowledge of machine learning.

About the author

Sebastian Raschka is an LLM Research Engineer with over a decade of experience. He is the author of the bestselling book Build a Large Language Model (From Scratch).

Table of Contents

1 Understanding reasoning models
2 Generating text with a pretrained LLM
3 Evaluating reasoning models
4 Improving reasoning with inference-time scaling
5 Inference-time scaling via self-refinement
6 Training reasoning models with reinforcement learning
7 Improving GRPO for reinforcement learning
8 Distilling reasoning models for efficient reasoning
A References and further reading
B Exercise solutions
C Qwen3 LLM source code
D Using larger LLMs
E Batching and throughput-oriented execution
F Common approaches to model evaluation
G Building a chat interface

Author Biography

Sebastian Raschka has been working on machine learning and AI for more than a decade. Sebastian joined Lightning AI in 2022, where he now focuses on AI and LLM research, developing open-source software, and creating educational material. Prior to that, Sebastian worked at the University of Wisconsin-Madison as an assistant professor in the Department of Statistics, focusing on deep learning and machine learning research. He has a strong passion for education and is best known for his bestselling books on machine learning using open-source software.

Number of Pages: 440
Dimensions: 1.2 x 9.2 x 7.3 IN
Publication Date: August 11, 2026

You may also like

  • !Ah y Le Lo Lay, Le Lo Ley! Musica Tipica de Puerto Rico

    !Ah y Le Lo Lay, Le Lo Ley! Musica Tipica de Puerto Rico - Paperback

    In stock

    Report copyright infringementby Nereida Ayala-Guzman (Author)Pretendemos por medio de "Ahi Le Lo Lai Le Lo Lei, Música Típica de Puerto Rico", resa...

    View full details
    Original price $47.44 - Original price $47.44
    Original price
    $47.44
    $47.44 - $47.44
    Current price $47.44
    | /
    Original price $47.44 - Original price $47.44
    Original price
    $47.44
    $47.44 - $47.44
    Current price $47.44
    | /
  • !Búscalo! (Look It Up!): A Quick Reference Guide to Spanish Grammar and Usage

    !Búscalo! (Look It Up!): A Quick Reference Guide to Spanish Grammar and Usage - Hardcover

    In stock

    Report copyright infringementby William M. Clarkson (Author)A novel approach--very useful for quick reference.--Mark Goldin Associate Professor of ...

    View full details
    Original price $39.52 - Original price $39.52
    Original price
    $39.52
    $39.52 - $39.52
    Current price $39.52
    | /
    Original price $39.52 - Original price $39.52
    Original price
    $39.52
    $39.52 - $39.52
    Current price $39.52
    | /
  • !Búscalo! (Look It Up!): A Quick Reference Guide to Spanish Grammar and Usage

    !Búscalo! (Look It Up!): A Quick Reference Guide to Spanish Grammar and Usage - Paperback

    In stock

    Report copyright infringementby William M. Clarkson (Author)"A novel approach-very useful for quick reference." --Mark Goldin, Associate Professor...

    View full details
    Original price $24.92 - Original price $24.92
    Original price
    $24.92
    $24.92 - $24.92
    Current price $24.92
    | /
    Original price $24.92 - Original price $24.92
    Original price
    $24.92
    $24.92 - $24.92
    Current price $24.92
    | /
  • !Despierta!: ¿Vives o sobrevives?

    !Despierta!: ¿Vives o sobrevives? - Paperback

    In stock

    Report copyright infringementby Monica Fuste (Author) Estás cansado de esperar a que tu vida cambie? Te sientes víctima de las circunstancias y n...

    View full details
    Original price $30.51 - Original price $30.51
    Original price
    $30.51
    $30.51 - $30.51
    Current price $30.51
    | /
    Original price $30.51 - Original price $30.51
    Original price
    $30.51
    $30.51 - $30.51
    Current price $30.51
    | /
  • !Eureka!

    !Eureka! - Hardcover

    In stock

    Report copyright infringementby Peter Santino (Author)A Practical Guide to Understanding and UtilizingTraditional Techniques of Plaster Repair &...

    View full details
    Original price $46.29 - Original price $46.29
    Original price
    $46.29
    $46.29 - $46.29
    Current price $46.29
    | /
    Original price $46.29 - Original price $46.29
    Original price
    $46.29
    $46.29 - $46.29
    Current price $46.29
    | /
Shop collection

#DiscoverGreatBooks


Discover books that inspire growth, creativity, and imagination for readers of all ages.

Main menu

  • Home
  • Shop
  • About Us
  • Search
  • Contact Us

Footer menu

  • Search

Follow us

Find us on Facebook Find us on Threads Find us on Telegram Find us on Instagram Find us on LinkedIn Find us on Twitter
  • Search

Copyright © 2026 Selloorium. All rights reserved.

  • Choosing a selection results in a full page refresh.
  • Opens in a new window.