#634 · Primary category: Education & Research

train-deepseek-r1

chatgpt deepseek-r1 large-language-models llm openai

Building DeepSeek R1 from Scratch

Project last updated:03/21/25

GitHub Stars

793

Forks

135

Contributors

1

License

MIT

Why we included this project

If you learn best by building, this notebook is a great way to understand DeepSeek-R1. It walks through the training pipeline from the technical report, covering GRPO reinforcement learning, reward functions, cold-start SFT, rejection sampling, and distillation, all on a tiny base model that runs locally. Hand-drawn flowcharts and plain-language explanations sit alongside the code, so even newcomers to reinforcement learning can follow. For anyone thinking about replicating this training recipe on their own data, it's a concrete starting point.

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