SmolLM - blazingly fast and remarkably powerful
SmolLM is a family of small language models (135M, 360M, 1.7B parameters) trained on SmolLM-Corpus, a new dataset combining Cosmopedia v2 synthetic textbooks (28B tokens), classifier-filtered Python-Edu (4B tokens) and deduplicated FineWeb-Edu (220B tokens). Ablations showed that better prompts mattered more than stronger generator models: BISAC-based topics with search-retrieved seed pages, plus textbooks aimed at middle-school readers, gave the best scores on most benchmarks. Filtering Python with an LLM-annotated educational classifier made training converge more than 3x faster. Using a trapezoidal LR schedule, MobileLLM-style deep-narrow architectures with GQA for the small models, and training well past Chinchilla-optimal token counts, the models beat MobileLLM, Qwen2 and Phi-1.5 in their size classes and are small enough to run on phones and in the browser.
Related posts
- SmolVLM - small yet mighty Vision Language Model
Hugging Face hardMasterSmolVLM is a 2B-parameter open vision language model built on the Idefics3 architecture with a SmolLM2 1.7B backbone. It uses 9x pixel-shuffle compression so each 384x384 patch becomes just 81 tokens. A test prompt plus image encodes to 1.2k tokens versus 16k for Qwen2-VL, giving 5 GB minimum GPU RAM, 3.3-4.5x faster prefill and 7.5-16x faster generation, at modestly lower benchmark scores. Training details cover extending context to 16k by raising the RoPE base to 273k, choosing checkpoints with a weighted benchmark metric, and fine-tuning with QLoRA on a ~16 GB L4 or DPO via TRL.
- SmolVLM Grows Smaller – Introducing the 256M & 500M Models!
Hugging Face easyNoviceSmolVLM-256M and SmolVLM-500M are new vision language models, with the 256M model billed as the smallest VLM released and reported to outperform the 17-month-old Idefics 80B. Key design changes from SmolVLM 2B: a 93M SigLIP base patch-16/512 encoder in place of SigLIP 400M SO, because the larger encoder gave only marginal gains; higher image resolution; a data mix weighted toward document understanding (41%) and captioning (14%); and more aggressive pixel shuffle at 4096 pixels per token. Sub-image separator strings such as <row_1_col_1> are now single special tokens instead of 7 tokens, which improved training stability and result quality. Base and instruct checkpoints ship for transformers, MLX and ONNX/WebGPU, alongside ColSmolVLM retrieval variants.
- Cosmopedia: how to create large-scale synthetic data for pre-training Large Language Models
Hugging Face mediumAdeptCosmopedia is an open synthetic pre-training dataset of over 30 million files and 25 billion tokens of textbooks, blog posts, stories and WikiHow-style articles generated with Mixtral-8x7B-Instruct to reproduce Phi-1.5's training data. Most of the effort went into prompt curation to keep diversity high and duplication under 1%. Prompts were seeded from curated educational sources (Stanford, Khan Academy, OpenStax, WikiHow), from RefinedWeb samples clustered into 145 topics (112 kept, over 80% of prompts), and from UltraChat/OpenHermes for common-sense stories. Varying audience and style with explicit format instructions multiplies prompts, while naive audience swaps still produce duplicates.
- SmolLM3: smol, multilingual, long-context reasoner
Hugging Face hardMasterSmolLM3 is a fully open 3B decoder model trained on 11.2T tokens that outperforms Llama-3.2-3B and Qwen2.5-3B and is competitive with 4B models, with dual think/no_think reasoning modes, six languages and 128k context. The recipe uses GQA, NoPE on every 4th layer, intra-document masking and no weight decay on embeddings, trained on 384 H100s with a three-stage web/code/math mixture under a WSD schedule. Mid-training extends context to 64k via RoPE theta increases (YaRN for 128k) and adds 140B tokens of reasoning traces. Post-training combines SFT on synthetic Qwen3-32B reasoning data with Anchored Preference Optimization, then uses model merging to recover the long-context performance lost during reasoning training.
- nanoVLM: The simplest repository to train your VLM in pure PyTorch
Hugging Face mediumAdeptnanoVLM is a minimal, readable pure-PyTorch toolkit for training small Vision Language Models, inspired by nanoGPT and runnable on a free Colab notebook. It pairs a SigLIP vision encoder with a Llama 3-style SmolLM2 decoder, joined by a modality projector made of a pixel shuffle and a linear layer, which cuts the number of image tokens. Training uses two learning rates (a higher one for the freshly initialized projector, a lower one for the pretrained backbones), mixed precision, and cosine decay with warmup, and evaluates on MMStar. A reference model trained for about 6 hours on one H100 with roughly 1.7M Cauldron samples is published for inference via generate.py.