Building Reasoning Llms from Scratch: A Practical Guide to Transformers, Reinforcement Learning, GRPO, Test-Time Scaling, and Training AI Models to Re
Paperback
Publisher: Independently Published
Published: Sep 10 2026
Pages: 478
Weight: 2.42
Height: 0.96 Width: 8.50 Depth: 11.00
Language: English
BUILDING REASONING LLMS FROM SCRATCH
A Practical Guide to Transformers, Reinforcement Learning, GRPO, Test-Time Scaling, and Training AI Models to Reason
How do modern AI models learn to reason, solve complex problems, verify their answers, and improve their performance with additional computation?
BUILDING REASONING LLMS FROM SCRATCH takes you inside the technology behind modern reasoning Large Language Models (LLMs) and provides a practical path from the fundamentals of language modeling to advanced reasoning techniques.
This book goes beyond simply using existing AI models. You will learn how reasoning LLMs are designed, trained, evaluated, optimized, and prepared for real-world applications.
Inside this practical guide, you will discover:
- How tokens, embeddings, neural networks, attention, and Transformers work together to power modern LLMs.
- How to build and train a Transformer-based language model from the ground up.
- How pretraining, supervised fine-tuning, and instruction tuning transform a language model into a more capable AI assistant.
- How chain-of-thought reasoning, synthetic reasoning data, self-verification, and structured problem solving can improve reasoning capabilities.
- How reinforcement learning can be applied to language models through RLHF and Reinforcement Learning with Verifiable Rewards (RLVR).
- How reward functions and reward models work-and why reward hacking can cause unexpected or undesirable behavior.
- How Group Relative Policy Optimization (GRPO) works and why it has become an important technique for training reasoning models.
- How probability ratios, advantage estimation, KL divergence, and policy optimization contribute to reinforcement learning for LLMs.
- How test-time scaling, Best-of-N sampling, self-consistency, search, and verification can improve inference-time reasoning.
- How to balance accuracy, reasoning quality, compute, latency, throughput, and cost.
- How KV caching, quantization, memory optimization, reasoning distillation, and model compression can make reasoning systems more efficient.
- How to evaluate reasoning LLMs using accuracy, reliability, benchmarks, calibration, and failure analysis.
- How to design a complete reasoning LLM pipeline from data preparation and training to evaluation, optimization, deployment, and monitoring.
WHO THIS BOOK IS FOR
This book is designed for AI engineers, machine learning practitioners, LLM developers, software developers, students, researchers, and anyone who wants to understand the technology behind modern reasoning AI.
Whether you are beginning your journey into LLM development or already have experience with machine learning, this book provides a structured progression from foundational concepts to advanced reasoning techniques.
FROM FUNDAMENTALS TO ADVANCED REASONING
You will progress through the complete reasoning LLM development lifecycle:
Transformers → Pretraining → Instruction Tuning → Reasoning Data → RLVR → GRPO → Test-Time Scaling → Evaluation → Optimization → Deployment
By the end of this book, you will have a deeper understanding of how reasoning language models work and the key techniques used to build, train, evaluate, and optimize them.
If you want to move beyond simply using AI and start understanding how reasoning LLMs are actually built, this book gives you the knowledge and practical foundation to begin.
Also from
Trent Wilder, Logan
Quantum AI: A Complete Guide to Quantum Machine Learning and Next-Generation AI Systems
Trent Wilder, Logan
Paperback
Modern C++ Mastery: A Practical Guide To C++17, C++20, And C++23: From Programming Fundamentals To Professional Software Development
Trent Wilder, Logan
Paperback
Mastering Rag with AI: A Complete Guide to Retrieval-Augmented Generation Systems, LLM Workflows, and Next-Gen AI Applications
Trent Wilder, Logan
Paperback
The Modern C++ Handbook: Mastering C++20 & C++23: From Beginner Syntax to High-Performance Architecture
Trent Wilder, Logan
Paperback
Retrieval-Augmented Generation (RAG): The Complete Practical Guide to Building Smarter AI with Knowledge, Search, and Large Language Models
Trent Wilder, Logan
Paperback
Gemini AI System Design: Build Scalable Ai Applications, Agents, And Multimodal Systems For Production
Trent Wilder, Logan
Paperback
Ui/UX Design Mastery: Practical Strategies For Building User-Centered Digital Products
Trent Wilder, Logan
Paperback
AI-Powered Workforce: A Practical Guide to Leading Teams, Redesigning Jobs, and Building Human-AI Collaboration
Trent Wilder, Logan
Paperback
Also in
General Computers
All Data Are Local: Thinking Critically in a Data-Driven Society
Loukissas, Yanni Alexander
Paperback
Comptia Network+ Certmike: Prepare. Practice. Pass the Test! Get Certified!: Exam N10-008
Zacker, Craig
Chapple, Mike
Paperback
Interactive Theorem Proving and Program Development: Coq'art: The Calculus of Inductive Constructions
Castéran, Pierre
Bertot, Yves
Hardcover
R for Data Science: Import, Tidy, Transform, Visualize, and Model Data
Grolemund, Garrett
Wickham, Hadley
Paperback
The Reverse Centaur's Guide to Life After AI: How to Think about Artificial Intelligence--Before It's Too Late
Doctorow, Cory
Paperback
The Agi Chronicles: The Inside Story of the Race to Create an Artificial Superintelligence
Roose, Kevin
Hardcover
Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems
Riccomini, Chris
Kleppmann, Martin
Paperback
The Year in Tech, 2027: The Insights You Need from Harvard Business Review
Review, Harvard Business
Davenport, Thomas H.
Chamorro-Premuzic, Tomas
Paperback
AI for Good: How Real People Are Using Artificial Intelligence to Fix Things That Matter
Tyrangiel, Josh
Hardcover
If Anyone Builds It, Everyone Dies: Why Superhuman AI Would Kill Us All
Yudkowsky, Eliezer
Soares, Nate
Hardcover
Human Raised: Nurturing Connection, Curiosity & Lifelong Learning in the Age of AI
Suskind, Dana, MD
Hardcover
The Eureka Machine: Why AI Is the Key to Unlocking a New Era of Scientific Discoveries
Socher, Richard
Hardcover
Hbr's 10 Must Reads on AI (with Bonus Article How to Win with Machine Learning by Ajay Agrawal, Joshua Gans, and AVI Goldfarb)
Iansiti, Marco
Review, Harvard Business
Davenport, Thomas H.
Paperback
The Year in Tech, 2026: The Insights You Need from Harvard Business Review
Anthony, Scott D.
Webb, Amy
Review, Harvard Business
Paperback
CompTIA Network+ Certification All-in-One Exam Guide, Ninth Edition (Exam N10-009)
Weissman, Jonathan S.
Paperback
The AI Con: How to Fight Big Tech's Hype and Create the Future We Want
Bender, Emily M.
Hanna, Alex
Hardcover
Fans First: Change The Game, Break the Rules & Create an Unforgettable Experience
Cole, Jesse
Paperback
Generative Ai: The Insights You Need from Harvard Business Review
Review, Harvard Business
Mollick, Ethan
Cremer, David De
Paperback
A Giant Leap: How AI Is Transforming Healthcare and What That Means for Our Future
Wachter, Robert
Hardcover
AI Literacy in Any Class: Preparing Students to Thrive in an AI Future in Any Grade Level or Content Area
Miller, Matt
Paperback
Obsolete: The AI Industry's Trillion Dollar Race to Replace Us--And How to Stop It
Lovely, Garrison
Paperback
Fundamentals of Data Engineering: Plan and Build Robust Data Systems
Housley, Matt
Reis, Joe
Paperback
Minecraft: Guide Collection 4-Book Boxed Set (Updated): Survival (Updated), Creative (Updated), Redstone (Updated), Combat
Mojang Ab
The Official Minecraft Team
Hardcover
Love Machines: How Artificial Intelligence Is Transforming Our Relationships
Muldoon, James
Hardcover
Atlas of AI: Power, Politics, and the Planetary Costs of Artificial Intelligence
Crawford, Kate
Paperback
AI Snake Oil: What Artificial Intelligence Can Do, What It Can't, and How to Tell the Difference
Narayanan, Arvind
Kapoor, Sayash
Paperback
AI with Intention: Principles and Action Steps for Teachers and School Leaders
Frontier, Tony
Paperback
Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming
Matthes, Eric
Paperback
AP Computer Science Principles Premium, 2027: 6 Practice Tests + Comprehensive Review + Online Practice
Reichelson, Seth
Paperback
An Illustrated Guide to AI Agents: Concepts and Code for Building Agents with Llms, Tools, and Memory
Grootendorst, Maarten
Alammar, Jay
Paperback
Hbr's 10 Must Reads on Artificial Intelligence, Updated and Expanded (Featuring How AI Can Help Managers Think Through Problems by Elisa Farri and Gab
Davenport, Thomas H.
Agrawal, Ajay
Review, Harvard Business
Paperback
The Thinking Machine: Jensen Huang, Nvidia, and the World's Most Coveted Microchip
Witt, Stephen
Hardcover
Hands-On Machine Learning with Scikit-Learn and Pytorch: Concepts, Tools, and Techniques to Build Intelligent Systems
Géron, Aurélien
Paperback
The Black Swan: Second Edition: The Impact of the Highly Improbable: With a New Section: On Robustness and Fragility
Taleb, Nassim Nicholas
Paperback
We Are as Gods: A Survival Guide for the Age of Abundance
Kotler, Steven
Diamandis, Peter H.
Hardcover
Embedded Systems with ARM Cortex-M Microcontrollers in Assembly Language and C: Fourth Edition
Zhu, Yifeng
Paperback
CompTIA Tech+ Certification All-in-One Exam Guide, Third Edition (Exam FC0-U71)
Wempen, Faithe
Paperback
Artificial Intelligence: A Guide for Thinking Humans (with a New Preface)
Mitchell, Melanie
Paperback
AP Computer Science a Premium, 13th Edition: Prep Book with 6 Practice Tests + Comprehensive Review + Online Practice (2026)
Teukolsky, Roselyn, M. S.
Carman, Chris
Paperback
Human + Machine, Updated and Expanded: Reimagining Work in the Age of AI
Daugherty, Paul R.
Wilson, H. James
Hardcover
Hands-On Large Language Models: Language Understanding and Generation
Grootendorst, Maarten
Alammar, Jay
Paperback
Guilty Pleasure: The Pornification of the Internet, the Economy, and Everything Else
Nilsson, Patricia
Hardcover
Power and Prediction: The Disruptive Economics of Artificial Intelligence
Goldfarb, Avi
Agrawal, Ajay
Gans, Joshua
Hardcover
Fundamentals of Software Architecture: A Modern Engineering Approach
Ford, Neal
Richards, Mark
Paperback
The Empty Center: Permission, Connection, and What We Build When the Future is Uncertain
Drumwright, Hayes
Hardcover
The Problem with Personalization: How Advertisers Learned to Make and Break Us from Ancient Times to the AI Age
Turow, Joseph
Hardcover
Minecraft: Exploded Builds: Medieval Fortress: An Official Mojang Book
Mojang Ab
The Official Minecraft Team
Paperback
Tubes: A Journey to the Center of the Internet with a New Introduction by the Author
Blum, Andrew
Paperback
AI Projects with Raspberry Pi: High-Performance Artificial Intelligence for Robotics, Security, Home Automation, and Vision
Hattersley, Lucy
Jepson, Brian
Paperback
RHCSA Red Hat Enterprise Linux 10: Training and Exam Preparation Guide (EX200), Fourth Edition
Ghori, Asghar
Paperback
You Look Like a Thing and I Love You: How Artificial Intelligence Works and Why It's Making the World a Weirder Place
Shane, Janelle
Paperback
The Empty Center: Permission, Connection, and What We Build When the Future is Uncertain
Drumwright, Hayes
Paperback
The Coming Wave: Technology, Power, and the Twenty-First Century's Greatest Dilemma
Suleyman, Mustafa
Hardcover
Designing Machine Learning Systems: An Iterative Process for Production-Ready Applications
Huyen, Chip
Paperback
Site Reliability Engineering: How Google Runs Production Systems
Leng, Christof
Beyer, Betsy
Jones, Chris
Paperback
AI Snake Oil: What Artificial Intelligence Can Do, What It Can't, and How to Tell the Difference
Narayanan, Arvind
Kapoor, Sayash
Hardcover
Artificial Intelligence All-In-One for Dummies
Massaron, Luca
Minnick, Chris
Mueller, John Paul
Paperback
The Death of Expertise: The Campaign Against Established Knowledge and Why It Matters
Nichols, Tom
Paperback
Graphic Artists Guild Handbook, 17th Edition: Pricing & Ethical Guidelines
The Graphic Artists Guild
Paperback
Minecraft: Roll for Adventure: The Temple of the Charged Creeper
Forbeck, Marty
Forbeck, Matt
Hardcover
The Devops Handbook, 2nd Edition: How to Create World-Class Agility, Reliability, & Security in Technology Organizations
Humble, Jez
Debois, Patrick
Kim, Gene
Paperback
The Return on AI: From Promise to Profit in the Age of Intelligent Business
Mittal, Ashwin
Sawhney, Mohanbir
Paperback
Comptia A+ Complete Study Guide, 2-Volume Set: Volume 1 Core 1 Exam 220-1201 and Volume 2 Core 2 Exam 220-1202
Docter, Quentin
Buhagiar, Jon
Paperback
Navigeren door het labyrint: Een handleiding voor het beheer van data
Sebastian-Coleman, Laura
Paperback
R for Data Science: Import, Tidy, Transform, Visualize, and Model Data
Wickham, Hadley
Grolemund, Garrett
Cetinkaya-Rundel, Mine
Paperback
AI for Educators: Learning Strategies, Teacher Efficiencies, and a Vision for an Artificial Intelligence Future
Miller, Matt
Paperback
What Is Intelligence?: Lessons from AI about Evolution, Computing, and Minds
Aguera Y. Arcas, Blaise
Paperback
More Human: How the Power of AI Can Transform the Way You Lead
Hougaard, Rasmus
Carter, Jacqueline
Hardcover
Evals for AI Engineers: Systematically Measuring and Improving AI Applications
Shankar, Shreya
Husain, Hamel
Paperback
Microsoft 365 Excel All-In-One for Dummies
Ringstrom, David H.
Alexander, Michael
Kusleika, Dick
Paperback
