Ross ROSS = Recommend OSS · open-source software intelligence for agents

rasbt/reasoning-from-scratch resource

Implement a reasoning LLM in PyTorch from scratch, step by step observed · 2026-08-28

github.com/rasbt/reasoning-from-scratch · homepage · Jupyter Notebook · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

71/100

  • Activity 99
  • Release rhythm 52
  • Longevity 39
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 547
  • days_rel: 107
  • days_push: 8
  • n_releases_24m: 1

Full methodology

Adoption not part of the score

5070 stars · 777 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

The official code repository for the book 'Build a Reasoning Model (From Scratch)' by Sebastian Raschka, containing step-by-step PyTorch implementations of a reasoning LLM. It teaches how to add reasoning capabilities like chain-of-thought and RL-based fine-tuning (GRPO, RLHF) to a pre-trained base LLM for educational purposes.

Use cases

  • learn how reasoning LLMs like DeepSeek R1 work internally
  • implement chain-of-thought reasoning from scratch in PyTorch
  • understand GRPO and RLHF fine-tuning step by step
  • build a small functional reasoning model for education
  • study inference-time scaling and test-time compute
  • accompany a hands-on book on reasoning models

When to choose

  • you want to deeply understand how reasoning models are built, not just use them
  • you prefer learning by implementing in PyTorch from scratch
  • you are following the Manning book and need its official code
  • you want educational, well-tested notebook-based code

When to avoid

  • you need a production-ready reasoning LLM or inference server
  • you want pre-trained state-of-the-art models rather than educational implementations
  • you need large-scale training infrastructure rather than small-scale learning code

Facets

learning-resource · maturity active

llm-training machine-learning reinforcement-learning llm-inference large-language-models deep-learning artificial-intelligence tutorials python cross-platform pytorch reasoning-models chain-of-thought rlhf grpo from-scratch book educational jupyter-notebooks

3 sources

Member repositories

RepositoryRoleHealth v2
rasbt/reasoning-from-scratchmain71

For agents

markdown · JSON · MCP: product_card(name="rasbt/reasoning-from-scratch")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem