Oriel — AI & technology worth noticing, every day.

jingyaogong/minimind

Repository · https://github.com/jingyaogong/minimind

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

First seen by Oriel on .

AI summary

MiniMind is an Apache 2.0 project and tutorial for training compact language models from scratch, offering a 64M-parameter model, complete PyTorch training workflows, datasets, and ecosystem integrations.

  • The project implements Dense and MoE architectures, tokenization, pretraining, SFT, LoRA, DPO, PPO, GRPO, CISPO, Tool Use, Agentic RL, adaptive thinking, and distillation.
  • minimind-3 uses 64M parameters, a 6,400-token vocabulary, eight layers, 768-dimensional representations, 32,768 maximum positions, and Qwen3-aligned configuration choices.
  • The recommended quick reproduction uses pretrain_t2t_mini.jsonl and sft_t2t_mini.jsonl, requiring approximately 2.31 hours and ¥3 on one NVIDIA 3090 for one epoch.
  • Core algorithms are implemented with native PyTorch, while the project supports DDP, DeepSpeed, transformers, llama.cpp, vllm, ollama, and OpenAI-compatible serving.
  • The resulting Zero model has basic dialogue ability but limited factual knowledge and generalization, making it primarily a low-cost learning and reproduction resource.

#language models #pytorch #model training #moe

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Stars

Total repository stars at each observation.

  • GitHub Trending: 75,531, latest observation ; +9,897 over observed period since

Stars gained (1d)

Daily star gain reported by GitHub Trending. A change compares two daily values; it is not additional stars between observations.

  • GitHub Trending: 513, latest observation ; +325 over observed period since

Forks

Total repository forks at each observation.

  • GitHub Trending: 10,042, latest observation ; +1,436 over observed period since

Aliases

SourceExternal IDURL
GitHub Trendingjingyaogong/minimindhttps://github.com/jingyaogong/minimind Read discussion