Build a Reasoning Model PDF, EPUB | 49 MB

Build a Reasoning Model (From Scratch) book cover

Build a Reasoning Model (From Scratch)

Author(s): Sebastian Raschka (Author)

  • Publisher finelybook 出版社: Manning
  • Publication Date 出版日期: July 28, 2026
  • Language 语言: English
  • Print length 页数: 528 pages
  • ISBN-10: 1633434672
  • ISBN-13: 9781633434677

Book Description

Get a free eBook (PDF or ePub) from Manning as well as access to the online liveBook format (and its AI assistant that will answer your questions in any language) when you purchase the print book.

LLM reasoning models have the power to tackle truly challenging problems that require finding the right path through multiple steps. In this book you’ll learn how to build a working reasoning model from the ground up. You will start with an existing pre-trained LLM and then implement reasoning-focused improvements from scratch.

Sebastian Raschka, the bestselling author of Build a Large Language Model (From Scratch), is your guide on this exciting journey. Sebastianmentors you every step of the way with clear explanations, practical code, and a keen focus on what really matters. Understand LLM reasoning by creating your own reasoning model–from scratch!

In Build A Reasoning Model (From Scratch) you’ll learn how to:

• Implement core reasoning improvements for LLMs
• Evaluate models using judgment-based and benchmark-based methods
• Improve reasoning without updating model weights
• Use reinforcement learning to integrate external tools like calculators
• Apply distillation techniques to learn from larger reasoning models
• Understand the full reasoning model development pipeline

Reasoning models break problems into steps, producing more reliable answers in math, logic, and code. These improvements aren’t just a curiosity–they’re already integrated into top models like Grok 4 and GPT-5. Build A Reasoning Model (From Scratch) demystifies these complex models with a simple philosophy: the best way to learn how something works is to build it yourself! You’ll begin with a pre-trained LLM, adding and improving its reasoning capabilities in ways you can see, test, and understand.

About the book

In Build a Reasoning Model (From Scratch), acclaimed ML research engineer Sebastian Raschkatakes you inside the black box of reasoning-enhanced LLMs. You’ll start with a compact, pre-trained base model that runs on consumer hardware, then upgrade it step by step to tackle ever-more difficult problems and scenarios. You’ll measure its performance, add reasoning at inference time without training, and then improve it further with reinforcement learning. By the end of the book, you’ll have a small but capable reasoning stack built from the ground up!

About the reader

For readers who know Python and have some knowledge of machine learning. You won’t need any specialist hardware. The examples will run on a standard laptop, although using cloud GPUs can make training faster.

About the author

Sebastian Raschka, PhD, is an LLM Research Engineer with over a decade of experience in artificial intelligence. His work spans industry and academia, including implementing LLM solutions as a senior engineer at Lightning AI and teaching as a statistics professor at the University of Wisconsin–Madison.

Sebastiancollaborates with industry partners on AI solutions and serves on the Open Source Board at University of Wisconsin–Madison. He specializes in LLMs and the development of high-performance AI systems, with a deep focus on practical, code-driven implementations. He is the author of the bestselling books Build a Large Language Model (From Scratch), as well as Machine Learning with PyTorch and Scikit-Learn, and Machine Learning Q and AI.

Editorial Reviews

Editorial Reviews

About the Author

Sebastian Raschkahas 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.

brief contents

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

View on Amazon

下载地址

PDF, EPUB | 49 MB | 2026-04-03 | (MEAP) Version 8
下载地址 Download请完成验证以访问链接!
打赏
未经允许不得转载:finelybook » Build a Reasoning Model PDF, EPUB | 49 MB

评论 抢沙发

觉得文章有用就打赏一下文章作者

您的打赏,我们将继续给力更多优质内容

支付宝扫一扫

微信扫一扫