jingyaogong / minimind
git clone https://github.com/jingyaogong/minimind.git
v2 Β· 1y ago
π₯ on GitHub Trending today
Full-stack, from-scratch LLM training codebase that trains a ~64M-parameter language model in about 2 hours on one GPU.
Why you might care
Built for learning how LLMs work: core algorithms are implemented in native PyTorch rather than hidden behind transformers/trl abstractions, covering pretraining, SFT, LoRA, DPO, PPO/GRPO, tool use, and distillation. It includes an OpenAI-compatible server and open datasets, so you can reproduce and modify each stage.
+337
stars, 24h Β· #87
+4.4k
stars, 7 days Β· #25
+8.0k
stars, 30 days Β· #111
75k
β
total Β· +6% this week
10k
forks Β· 75 open issues
Star history (as recorded here)
LanguagePython
LicenseApache-2.0
Created2024-07-27 (2y ago)
Last push8d ago
Watchers301
OwnerUser
Seen on GitHub Trending
- 2026-12-04 β #3 daily in python Β· +513 β
- 2026-12-04 β #4 daily Β· +513 β
- 2026-12-04 β #7 weekly in python Β· +3,814 β
- 2026-12-03 β #3 daily in python Β· +557 β
- 2026-12-03 β #4 daily Β· +557 β
- 2026-12-03 β #7 weekly in python Β· +3,992 β
- 2026-12-02 β #3 daily in python Β· +699 β
- 2026-12-02 β #4 daily Β· +699 β
- 2026-12-02 β #7 weekly in python Β· +4,273 β
- 2026-12-01 β #3 daily in python Β· +681 β
- 2026-12-01 β #4 daily Β· +681 β
- 2026-12-01 β #7 weekly in python Β· +4,336 β
- 2026-11-30 β #3 daily in python Β· +353 β
- 2026-11-30 β #4 daily Β· +353 β
- 2026-11-30 β #7 weekly in python Β· +4,471 β
- 2026-11-29 β #3 daily in python Β· +395 β
- 2026-11-29 β #4 daily Β· +395 β
- 2026-11-29 β #7 weekly in python Β· +4,565 β
- 2026-11-28 β #3 daily in python Β· +660 β
- 2026-11-28 β #4 daily Β· +660 β
- 2026-11-28 β #7 weekly in python Β· +4,688 β
- 2026-11-27 β #3 daily in python Β· +702 β
- 2026-11-27 β #4 daily Β· +702 β
- 2026-11-27 β #7 weekly in python Β· +4,900 β
- 2026-11-26 β #3 daily in python Β· +826 β
- 2026-11-26 β #4 daily Β· +826 β
- 2026-11-26 β #7 weekly in python Β· +4,499 β
- 2026-11-25 β #3 daily in python Β· +727 β
- 2026-11-25 β #4 daily Β· +727 β
- 2026-11-25 β #7 weekly in python Β· +4,353 β
GitHub topics
Links
- GitHub: github.com/jingyaogong/minimind
- Homepage: https://jingyaogong.github.io/minimind
- Releases Β· Issues Β· Hacker News mentions
README
Loading READMEβ¦
Blurb generated by claude-haiku-5-5 1mo ago. Star deltas marked ~ are extrapolated from partial history.