#3939th of 126 in Training and fine-tuning

minimind

Train a 64M-parameter LLM from scratch in plain PyTorch

Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Stars
72.8k
License
Apache-2.0
Last commit
Nov 2026
Last release
Oct 2025
Language
Python
Stars, last 35 weeks+28,104
24 Mar 2026: 44,742 stars31 Mar 2026: 46,468 stars7 Apr 2026: 47,291 stars14 Apr 2026: 48,216 stars21 Apr 2026: 49,303 stars28 Apr 2026: 49,895 stars5 May 2026: 50,343 stars12 May 2026: 51,056 stars19 May 2026: 51,693 stars26 May 2026: 52,145 stars2 Jun 2026: 52,583 stars9 Jun 2026: 52,996 stars16 Jun 2026: 53,433 stars23 Jun 2026: 53,726 stars30 Jun 2026: 54,002 stars7 Jul 2026: 54,538 stars14 Jul 2026: 55,041 stars21 Jul 2026: 55,361 stars28 Jul 2026: 55,672 stars4 Aug 2026: 56,043 stars11 Aug 2026: 56,319 stars18 Aug 2026: 56,594 stars25 Aug 2026: 56,809 stars1 Sept 2026: 59,201 stars8 Sept 2026: 61,952 stars15 Sept 2026: 63,154 stars22 Sept 2026: 64,180 stars29 Sept 2026: 64,884 stars6 Oct 2026: 65,256 stars13 Oct 2026: 65,750 stars20 Oct 2026: 66,138 stars27 Oct 2026: 66,641 stars3 Nov 2026: 66,995 stars10 Nov 2026: 67,302 stars17 Nov 2026: 68,504 stars24 Nov 2026: 72,846 stars

44,742 on 24 Mar 202672,846 on 24 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

MiniMind is a from-scratch training stack for small language models: a Qwen3-style dense (64M) and MoE (198M-A64M) architecture, tokenizer training, pretrain, SFT, LoRA, DPO, PPO/GRPO/CISPO and agentic RL. Core algorithms are written in native PyTorch rather than through transformers/trl/peft. The README reports about 2 hours on one RTX 3090 for the SFT epoch, and it ships datasets, an OpenAI-compatible server and a Streamlit chat UI.

Who it is for: Engineers and students who want to train and understand a small LLM end to end

Strengths

  • Covers pretrain, SFT, LoRA, DPO, PPO/GRPO/CISPO and agentic RL in one repo
  • Core training code is native PyTorch, readable without trl or peft abstractions
  • Published datasets and checkpoints; mini data pair reproduces a chat model on one GPU
  • Exports to transformers, llama.cpp, vllm and ollama; DDP and DeepSpeed multi-GPU supported

Weaknesses

  • Models are 64M-198M parameters with a 6,400-token vocabulary, so output quality is limited
  • Full pretrain and SFT datasets are 10GB and 14GB, a heavy download
  • Main README is Chinese; English version is a separate file
  • Latest tagged release is from 2025-10, while minimind-3 weights are newer

What it needs

  • GPU optional
  • Needs PyTorch, Streamlit (optional web UI), wandb or SwanLab (optional logging)
  • Models: PyTorch .pth, Transformers format, llama.cpp, vllm, ollama

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in Training and fine-tuning

See all 126
Also in Training and fine-tuning
RankProjectScore
#37milesRL post-training framework pairing SGLang rollout with Megatron-LM training3.4k stars+192 (+5.9%) in 30 daysApache-2.070 out of 100
#38prime-rlAsynchronous RL trainer for large LLMs, built on FSDP2 and vLLM2.3k starsApache-2.070 out of 100
#40slimeRL post-training framework connecting Megatron training with SGLang rollout8.9k starsApache-2.069 out of 100
#41getiPlatform for annotating, training and deploying computer vision models1.4k starsApache-2.069 out of 100
#42colossalaiDistributed training library for large models with many parallelism strategies Live demo ↗ (opens in a new tab)41.4k starsApache-2.068 out of 100