# minimind

🧠 Train a 64M-parameter LLM from scratch in just 2h\!

Canonical page: https://www.reposhelf.co.uk/projects/github/jingyaogong/minimind.html

- Project ID: jingyaogong/minimind
- Source: GitHub
- Original project: https://github.com/jingyaogong/minimind
- Description attribution: project author metadata
- Categories: AI &amp; machine learning
- Technologies: Python
- Licence: Apache-2.0
- Repository availability checked: 2026-11-03T10:02:55.746Z
- Demo page loaded: 2026-11-16T14:32:46.789Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> 注：本项目基于 Apache 2.0 协议开源，完全免费。“2 小时” 指 SFT 阶段在单张 NVIDIA 3090 上跑完 1 epoch 的实测耗时，“3 块钱” 指对应时段的 GPU 租用成本。

- 此开源项目旨在完全从 0 开始，仅用 3 块钱成本与 2 小时训练时间，即可训练出规模约为 64M 的超小语言模型 MiniMind。
- MiniMind 系列极其轻量，主线最小版本体积约为 GPT-3 的 $\\frac\{1\}\{2700\}$，力求让普通个人 GPU 也能快速完成训练与复现。
- 项目同时开源了大模型的极简结构与完整训练链路，覆盖 MoE、数据清洗、预训练（Pretrain）、监督微调（SFT）、LoRA、RLHF（DPO）、RLAIF（PPO / GRPO / CISPO）、Tool Use、Agentic RL、自适应思考与模型蒸馏等全过程代码。
- MiniMind 同时拓展了视觉模态模型 MiniMind-V、多模态 Omni 模型 MiniMind-O、扩散语言模型（MiniMind-dLM）、线性模型（MiniMind-Linear），详见 Discussion。
- 项目所有核心算法代码均从 0 使用 PyTorch 原生实现，不依赖第三方库提供的高层抽象接口。

## Author-documented requirements and audience

> 注：本项目基于 Apache 2.0 协议开源，完全免费。“2 小时” 指 SFT 阶段在单张 NVIDIA 3090 上跑完 1 epoch 的实测耗时，“3 块钱” 指对应时段的 GPU 租用成本。





Not recorded: Account, External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/jingyaogong/minimind/blob/master/README.md

Extraction checked: 2026-11-03T10:02:55.872Z

Last recorded source update: 2026-10-27T06:57:09.000Z

Saved release: v2 — 2025-10-21T14:37:05.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=jingyaogong%2Fminimind). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
