{"slug":"minimind","name":"MiniMind","nameZh":"MiniMind（从零训练超小语言模型的开源教程与完整训练链路）","category":"training","categoryName":"Training & fine-tuning","audience":["ai-era"],"primary":"ai-era","openClosed":"open","pricing":"open-source","license":"Apache-2.0","maintained":"yes","officialUrl":"https://github.com/jingyaogong/minimind","repo":"https://github.com/jingyaogong/minimind","latestVersion":"v2","latestRelease":"2025-10-21","stars":72975,"starsAsOf":"2026-11-30","description":"MiniMind is an Apache-2.0 project by jingyaogong for training a tiny language model from scratch, with a full PyTorch-native pipeline (pretrain, SFT, LoRA, RLHF/RLAIF, tool use and Agentic RL). The smallest mainline model is about 64M parameters. Official published checkpoints include minimind-3 (64M) and minimind-3-moe (198M-A64M), dated 2026-04-01, on Hugging Face and ModelScope. Install with git clone and pip install -r requirements.txt.","descriptionZh":"MiniMind 是开发者 jingyaogong（龚靖尧）以 Apache-2.0 许可证开源的超小语言模型训练项目与入门教程，目标是从零实现完整训练链路，使个人 GPU 也能复现语言模型的训练过程。官方说明：主线最小版本参数量约为 64M，约为 GPT-3 的 1/2700；README 所称「2 小时」指监督微调（SFT）阶段在单张 NVIDIA 3090 上跑完 1 个 epoch 的实测耗时，「3 块钱」指对应时段的 GPU 租用成本。项目提供 Dense 与 MoE 结构（主线对齐 Qwen3 / Qwen3-MoE 生态），并覆盖分词器训练、预训练、监督微调、LoRA、RLHF（DPO）、RLAIF（PPO / GRPO / CISPO）、工具调用、Agentic RL、自适应思考与知识蒸馏；核心算法以 PyTorch 原生实现，同时兼容 transformers、vLLM、llama.cpp、Ollama 等。已发布权重包括 minimind-3（64M）与 minimind-3-moe（198M-A64M），发布日期为 2026 年 4 月 1 日，可从 Hugging Face 与 ModelScope 下载。安装方法：git clone 官方仓库后执行 pip install -r requirements.txt；推理可用 python eval_llm.py 或 Streamlit 演示（web_demo.py），也可用 ollama run jingyaogong/minimind-3。另有视觉、多模态等扩展仓库。适合希望从源码理解并亲手训练语言模型的学生、研究人员和开发者。","callMethods":[],"platforms":["Linux","Python","CLI","CUDA"],"addedAt":"2026-11-18","updatedAt":"2026-11-30","topics":[],"language":null,"lastPush":"2026-11-26","formerly":null,"packages":[],"recentVersions":[],"alternatives":["pytorch","tensorflow","transformers","unsloth","llamafactory","nanogpt","keras","nanochat"],"stacks":[],"scenarios":[],"problems":[],"reasonZh":null,"sources":["editorial","github-oss","github-pool"],"record":"https://aimap.page/api/v1/software/minimind.json","pages":{"en":"https://aimap.page/en/software/minimind/","zh-hans":"https://aimap.page/zh-hans/software/minimind/"}}