# rasbt/reasoning\-from\-scratch

> Implement a reasoning LLM in PyTorch from scratch, step by step

Canonical: https://starboard.codevetter.com/explore/rasbt/reasoning-from-scratch

[Back to Discover](https://starboard.codevetter.com/discover)

![rasbt](https://avatars.githubusercontent.com/u/5618407?v=4&s=40)

rasbt

# reasoning\-from\-scratch

[View on GitHub
](https://github.com/rasbt/reasoning-from-scratch)

Implement a reasoning LLM in PyTorch from scratch, step by step

ai
artificial\-intelligence
chain\-of\-thought
deep\-learning
distillation
grpo
inference\-time\-scaling
large\-language\-models
llm
llms
machine\-learning
math\-reasoning
python
pytorch
reasoning
reasoning\-models
reinforcement\-learning
rlhf
test\-time\-compute


5\.9k stars

Jupyter Notebook

Updated 18h ago

Created Mar 4, 2025

## Star history

\+863 stars
17\.2% growth


## Detected tools

No detected tools yet\.

## Similar projects

[![rasbt](https://avatars.githubusercontent.com/u/5618407?v=4&s=24)

rasbt/ machine\-learning\-book

Code Repository for Machine Learning with PyTorch and Scikit\-Learn

Jupyter Notebook 5\.5k 71%](https://starboard.codevetter.com/explore/rasbt/machine-learning-book)[![rohitg00](https://avatars.githubusercontent.com/u/48523873?v=4&s=24)

rohitg00/ ai\-engineering\-from\-scratch

Learn AI Engineering\! Learn it\. Build it\. Ship it for others\.

Python 80k 68%](https://starboard.codevetter.com/explore/rohitg00/ai-engineering-from-scratch)[![pyro\-ppl](https://avatars.githubusercontent.com/u/46794900?v=4&s=24)

pyro\-ppl/ pyro

Deep universal probabilistic programming with Python and PyTorch

Python 9\.1k 67%](https://starboard.codevetter.com/explore/pyro-ppl/pyro)[![rasbt](https://avatars.githubusercontent.com/u/5618407?v=4&s=24)

rasbt/ python\-machine\-learning\-book\-2nd\-edition

The "Python Machine Learning \(2nd edition\)" book code repository and info resource

Jupyter Notebook 7\.2k 67%](https://starboard.codevetter.com/explore/rasbt/python-machine-learning-book-2nd-edition)[![NirDiamant](https://avatars.githubusercontent.com/u/28316913?v=4&s=24)

NirDiamant/ Prompt\_Engineering

22 prompt engineering techniques with hands\-on Jupyter Notebook tutorials, from fundamental concepts to advanced strategies for leveraging LLMs\.

Jupyter Notebook 7\.9k 63%](https://starboard.codevetter.com/explore/NirDiamant/Prompt_Engineering)[![Lightning\-AI](https://avatars.githubusercontent.com/u/58386951?v=4&s=24)

Lightning\-AI/ litgpt

20\+ high\-performance LLMs with recipes to pretrain, finetune and deploy at scale\.

Python 14k 67%](https://starboard.codevetter.com/explore/Lightning-AI/litgpt)[![changyeyu](https://avatars.githubusercontent.com/u/202770431?v=4&s=24)

changyeyu/ LLM\-RL\-Visualized

🌟100\+ 原创 LLM / RL 原理图📚，《大模型算法》作者巨献！💥（100\+  LLM/RL Algorithm Maps ）

Python 5\.0k 66%](https://starboard.codevetter.com/explore/changyeyu/LLM-RL-Visualized)[![zergtant](https://avatars.githubusercontent.com/u/6510464?v=4&s=24)

zergtant/ pytorch\-handbook

pytorch handbook是一本开源的书籍，目标是帮助那些希望和使用PyTorch进行深度学习开发和研究的朋友快速入门，其中包含的Pytorch教程全部通过测试保证可以成功运行

Jupyter Notebook 22k 66%](https://starboard.codevetter.com/explore/zergtant/pytorch-handbook)
