Home Projects reasoning-from-scratch
reasoning-from-scratch

reasoning-from-scratch

by rasbt · GitHub

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

# ai# artificial-intelligence# chain-of-thought# deep-learning
View on GitHub
⭐ Stars
4.8k
🍴 Forks
722
🔥 Trending
+62 this week
📜 License
Apache-2.0
Commercial use OK
📅 Created
2025
🔄 Last commit
14 days ago
🏷️ Category
ai
💻 Language
You maintain this project?

Claim its page: indexed whatever its rank, translated into six languages, and enriched with what you write yourself.

Claim this page →
reasoning-from-scratch — GitHub preview card
📈 Star history
4.8k4.7k
2026-07-042026-07-22
📄 About

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

Frequently asked questions

What is reasoning-from-scratch?

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

Is reasoning-from-scratch open source?

reasoning-from-scratch is an open-source project. It is released under the Apache-2.0 license.

Is reasoning-from-scratch free?

Yes. reasoning-from-scratch is free and open source — you can use, modify and self-host it.

🏅 Maintainer of this project?
OpenSourceAI badge — reasoning-from-scratch

Add this live badge to your README — your GitHub stars and directory rank, refreshed daily.

[![OpenSourceAI](https://opensourceai.tech/badge.php?tool=rasbt-reasoning-from-scratch)](https://opensourceai.tech/project/rasbt-reasoning-from-scratch.html)
More badge options →
🧬 Shares DNA with🧬 View the DNA map →

Measured from GitHub topics shared by both projects, weighted by how rare each topic is.