#199 · Primary category: Education & Research
reasoning-from-scratch
Implement a reasoning LLM in PyTorch from scratch, step by step
Project last updated:08/27/26
GitHub Stars
5.1K
Forks
785
Contributors
5
License
Apache-2.0
Why we included this project
reasoning-from-scratch is the code repository that accompanies Sebastian Raschka's book on building a reasoning model. It starts with a single pre-trained base model, Qwen3, and adds reasoning capabilities chapter by chapter: inference-time scaling, self-refinement, reinforcement learning with GRPO, and distillation, the same approaches used in models like DeepSeek R1 and GPT-5 Thinking. The PyTorch notebooks for each technique run on consumer hardware, so a laptop is enough for the early chapters. The exercises and bonus appendices, covering evaluation, batching, and chat interfaces, also make it a handy reference once you've finished the tutorial. Engineers and researchers who want to see how reasoning models are actually assembled will find this a concrete place to start.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
JavaGuide
Java Interview & Backend General Interview Guide, covering computer fundamentals, databases, distributed systems, high concurrency, system design, and AI application development.
system-prompts-and-models-of-ai-tools
A curated collection of system prompts, internal tools, and AI models from popular AI assistants and coding agents.
30-seconds-of-code
Coding articles to level up your development skills
generative-ai-for-beginners
21 Lessons, Get Started Building with Generative AI