Overview of MiniMind
masterMiniMind is an open-source project designed to train ultra-small language models (approximately 64M parameters) from scratch. It is optimized for low-cost, high-speed training (e.g., ~2 hours on a single NVIDIA 3090 for 1 epoch of SFT) and is intended to be a reproducible tutorial for building LLMs.
Key features include:
- Minimalist Architecture: Lightweight models that are significantly smaller than GPT-3, making them runnable on consumer GPUs.
- End-to-End Pipeline: Covers data cleaning, pretraining, Supervised Fine-Tuning (SFT), LoRA, RLHF (DPO), RLAIF (PPO / GRPO / CISPO), Tool Use, Agentic RL, Adaptive Thinking, and Model Distillation.
- Native Implementation: Core algorithms are implemented directly in native PyTorch without high-level third-party abstractions.
- Model Variants: Includes extensions like MiniMind-V (vision), MiniMind-O (multimodal Omni), MiniMind-dLM (diffusion language model), and MiniMind-Linear (linear attention).