{"repo":"rasbt/reasoning-from-scratch","free":true,"listed":false,"github":"https://github.com/rasbt/reasoning-from-scratch","clone":"git clone https://github.com/rasbt/reasoning-from-scratch.git","description":"Implement a reasoning LLM in PyTorch from scratch, step by step","language":"Jupyter Notebook","stars":5010,"topics":["ai","artificial-intelligence","deep-learning","large-language-models","llms","machine-learning","python","pytorch","reasoning","reinforcement-learning"],"license":"Apache-2.0","category":"machine-learning","readme_excerpt":"Build A Reasoning Model (From Scratch) This repository contains the code for developing an LLM reasoning model and is the official code repository for the book Build a Reasoning Model (From Scratch) . (Printed in color.) In Build a Reasoning Model (From Scratch) , you will learn and understand how a reasoning large language model (LLM) works. Reasoning is one of the most exciting and important recent advances in improving LLMs, but it’s also one of the easiest to misunderstand if you only hear the term reasoning and read about it in theory. This is why this book takes a hands-on approach. We will start with a pre-trained base LLM and then add reasoning capabilities ourselves, step by step in code, so you can see exactly how it works. The methods described in this book walk you through the process of developing your own small-but-functional reasoning model for educational purposes. It mirrors the approaches used in creating large-scale reasoning models such as DeepSeek R1, GPT-5 Thinking, and others. In addition, this book includes code for loading the weights of existing, pretrained models. - Link to the official source code repository - Link to the book at Manning (the publisher's website) - Link to the book page on Amazon.com (TBD) - ISBN 9781633434677 To download a copy of this repository, click on the Download ZIP button or execute the following command in your terminal: Tip: Chapter 2 provides additional tips on installing Python, managing Python packages, and setting up","default_branch":null,"files":null,"tree":[],"storefront":"/r/rasbt","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rasbt/reasoning-from-scratch/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}