
"Simplicity is the ultimate sophistication"
📌 Introduction
MiniMind is a complete, open-source project for training ultra-small language models from scratch with minimal cost. Train a 26M ChatBot in just 2 hours with only $3 on a single 3090 GPU!
MiniMind series is extremely lightweight, the smallest version is 1/7000 the size of GPT-3
Knowledge distillation (compress large model knowledge)
Model reasoning distillation (DeepSeek-R1 style)
YaRN algorithm (context length extrapolation)
Pure PyTorch implementation: All core algorithms are implemented from scratch using native PyTorch, without relying on third-party abstract interfaces
Educational value: This is not only a full-stage open-source reproduction of large language models, but also a comprehensive tutorial for getting started with LLMs
Extended capabilities: MiniMind now supports MiniMind-V for vision multimodal tasks
!!! note "Training Cost & Time"
"2 hours" is based on **NVIDIA 3090** hardware (single card) testing
"$3" refers to GPU server rental cost
With 8× RTX 4090 GPUs, training time can be compressed to **under 10 minutes**
✨ Key Highlights
Ultra-low cost: Single 3090, 2 hours, $3 to train a fully functional ChatBot from scratch