MiniMind-V is a vision capability extension of the pure language model MiniMind, aiming to train an ultra-small multimodal vision-language model at extremely low cost. The project includes the full-process code for a minimalist VLM structure, dataset cleaning, Pretrain, SFT, etc., and is both a minimal implementation of an open-source VLM and a concise tutorial for getting started with vision-language models.
Main capabilities: supports image recognition and dialogue; provides checkpoints such as minimind-3v (65M) and minimind-3v-moe (200M-A65M); the vision encoder uses SigLIP2 (siglip2-base-p32-256-ve), and the projection module is MLP Projection; supports both Dense and MoE modes; the training script supports DDP multi-GPU, bfloat16 mixed precision, torch.compile acceleration, and can use SwanLab to record the training process.
Usage: download the model and dataset from ModelScope or HuggingFace (for example, place sft_i2t.parquet under ./dataset), and it is recommended to directly run SFT, with --freeze_llm 1 by default; if alignment is needed first, Pretrain can additionally be run. Supports resuming training from a checkpoint (--from_resume 1), automatic step conversion when the number of GPUs changes, and atomic saving. A WebUI can be launched for experience.
Applicable scenarios: fast training and inference of VLMs on a personal GPU, learning multimodal model structure and training process, and serving as an introductory tutorial for vision-language models.
Limitations: the language backbone is only about 64M, so detail accuracy and reasoning coherence are limited, and repetitive phrasing and detail hallucinations may occur; the vision encoder SigLIP2 has about 95M parameters and is fully frozen throughout, and at inference time the total machine parameter count is about 160M (dense)/294M (MoE); "2 hours" refers to the measured time for completing 1 epoch of SFT on a single NVIDIA 3090, and "3 yuan" refers to the corresponding GPU rental cost for that period; the project is open-sourced under the Apache 2.0 license and is completely free.