# MiniMind

> Train a 64M-parameter language model from scratch in about two hours

Source: https://talira.ai/catalog/minimind-7eb46pp5
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Framework
- Categories: [ai / ml / distributed training](https://talira.ai/categories/ai/ml/distributed-training), [ai / ml / fine tuning](https://talira.ai/categories/ai/ml/fine-tuning), [languages / python](https://talira.ai/categories/languages/python)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [jingyaogong](https://talira.ai/orgs/jingyaogong.md)

MiniMind is an end-to-end pipeline, written in plain PyTorch, for training an ultra-small language model of about 64M parameters from scratch, which its README puts at about two hours and RMB 3 of GPU rental for one SFT epoch on a single RTX 3090. It covers data cleaning, pretraining, supervised fine-tuning, LoRA, DPO, PPO and GRPO reinforcement learning, tool use, agentic RL, MoE and distillation, and its trained models are on Hugging Face. Its author presents it both as a reproduction of the LLM training pipeline and as a hands-on way to learn how LLMs are built.

## Links

- Website: https://jingyaogong.github.io/minimind
- GitHub: https://github.com/jingyaogong/minimind

## Problems it solves

- train a small language model from scratch on one consumer GPU
- a readable end-to-end LLM training pipeline I can modify, from pretraining to RLHF
- try GRPO or DPO on a tiny model without renting a cluster
- reproduce the whole chatbot training pipeline cheaply

## Features

- pretraining, SFT, LoRA and distillation for a 64M-parameter model
- DPO, PPO, GRPO and CISPO reinforcement learning stages
- MoE, tool use, agentic RL and adaptive thinking
- core algorithms in native PyTorch without high-level training libraries
- trained models published on Hugging Face
- sibling projects for vision, omni, diffusion and linear-attention models

## Trust

Overall: 0.75 out of 1.
Signals: maintenance 1.00, adoption 0.97, momentum 1.00, community 0.61, backing 0.30, extensibility 0.00.

- last commit 4 days ago
- 89 commits in the last 90 days
- latest release v2 13 months ago
- 72.6k GitHub stars
- 33 contributors
- backed by jingyaogong

## Alternatives

- [nanochat](https://talira.ai/catalog/nanochat-cm4xw7vw.md): The best ChatGPT that $100 can buy
- [Colossal-AI](https://talira.ai/catalog/colossal-ai-gk5zdz5s.md): PyTorch library for distributed training, fine-tuning and inference of large AI models
- [torchtitan](https://talira.ai/catalog/torchtitan-8k0bb5qf.md): A PyTorch-native platform for training generative AI models at scale
- [OpenRLHF](https://talira.ai/catalog/openrlhf-kzgavqp9.md): Scalable RLHF and agentic RL framework on Ray and vLLM

## Sources

[^1]: https://github.com/jingyaogong/minimind/blob/master/README_en.md (checked 29 Nov 2026)
[^2]: https://github.com/jingyaogong/minimind/blob/master/LICENSE (checked 29 Nov 2026)
