Tongyun1/from-minimind-to-more
🎓从0开始训练一个大模型Minimind项目的超详细解析,包括但不限于用到的架构,算法,以及大模型面试经验
What it solves
This project is a study companion for people who want to truly understand how large language models (LLMs) are built and trained from the ground up. Instead of jumping between scattered tutorials and papers, it gives one place where the core ideas behind a real open-source LLM project (Minimind) are explained step by step, with code comments, algorithm walkthroughs, and interview prep material. It saves you from hunting for information across many sources.
How it works
The author took the open-source Minimind project and wrote detailed, deeply commented notes on its architecture, training methods, and math. The content is organised into five parts: first the foundational building blocks (tokenizer, embeddings), then the core architecture (normalisation, attention optimisations, mixture-of-experts, full model assembly), then the training algorithms (pretraining, SFT, DPO, PPO, GRPO and variants, SPO), then planned sections on model compression and optimisation (LoRA, distillation), and finally a career section with a hundred interview questions. Each chapter dives into both theory and actual code from Minimind, explaining why things are designed the way they are and how they work in practice. The project is actively updated, with a roadmap showing which parts are complete and which are still in progress.
Who it’s for
This is for learners who already have some programming or machine learning background and want to move from using LLMs to understanding how they work internally. It’s also useful for people preparing for LLM job interviews, since it includes a dedicated interview question bank and practical notes. The author aims it at anyone who wants a comprehensive insight into LLM technology without drowning in scattered resources.
Highlights
- Ultra-detailed source code comments for the Minimind project, walking through each part of the model and training pipeline.
- Theory and practice combined – each chapter explains the mathematical or architectural principles and then connects them to actual implementation.
- Covers the full training lifecycle: pretraining, supervised fine-tuning (SFT), and reinforcement learning algorithms (DPO, PPO, GRPO and its variants, SPO).
- Interview-focused content: a dedicated set of “大模型八股 100 问” (100 LLM interview questions) and a separate question bank shared on a social media channel.
- Clear roadmap and update log – the author is transparent about what’s done and what’s coming, so you know where the material stands.
Related
- Project
- Project
- Project
- Project