nanoVLM
nanoVLM is an open-source repository released by Hugging Face for training and fine-tuning small vision-language models (VLMs). It is implemented in pure PyTorch, with concise and readable code. The model definition and training logic total about 750 lines, including the vision backbone, language decoder, modality projection, and training loop. The default configuration uses SigLIP-B/16-224-85M and SmolLM2-135M as backbones to build a 222M-parameter model, which can be trained on a single H100 in about 6 hours on 1.7 million samples, reaching 35.3% accuracy on MMStar. The repository provides training, generation, and evaluation scripts, supports Hugging Face Hub integration and local save/load, and includes a VRAM measurement tool. It is suitable for researchers and developers who want to get started quickly and experiment with small VLMs.