#555 · Primary category: Education & Research
MiniMind-in-Depth
轻量级大语言模型MiniMind的源码解读,包含tokenizer、RoPE、MoE、KV Cache、pretraining、SFT、LoRA、DPO等完整流程
Project last updated:06/16/25
GitHub Stars
1.2K
Forks
89
Contributors
1
License
Other
Why we included this project
MiniMind-in-Depth reads the source of a small working language model line by line and explains what each piece does. The author builds on jingyaogong/minimind and walks through everything from training a tokenizer from scratch and RMSNorm to rotary position embeddings and mixture-of-experts routing, with the input and output shape of every tensor marked so you can trace how data moves through the network. Later chapters cover pretraining, supervised fine-tuning, DPO alignment, LoRA, and distillation, which helps if you want to see how each technique actually plugs into a real training loop rather than reading about it in the abstract. The writing sits somewhere between a guided textbook and well-commented code, so it suits developers who prefer to learn by reading an annotated codebase. It is a study companion, not software to deploy.
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