OpenBMB/MiniCPM
MiniCPM5: SOTA on-device LLMs, small yet powerful.
What it solves
MiniCPM provides a series of compact, high-performance language models designed specifically for on-device and resource-constrained environments. It addresses the need for powerful AI capabilities—such as coding, mathematics, and long-context reasoning—that can run locally without requiring massive server-side infrastructure.
How it works
The project utilizes a tiered training recipe that includes base training, mid-training, and a three-step post-training process (SFT, RL, and OPD). The latest model, MiniCPM5-2B, uses a dense Transformer architecture and incorporates On-Policy Distillation (OPD) to merge the specialized knowledge of multiple expert models into one. This allows the model to maintain a small footprint while achieving state-of-the-art performance for its size class.
Who it’s for
It is built for developers and researchers who need to deploy efficient, capable AI agents on edge devices or in environments where computing resources are limited. It is ideal for those building local assistants, coding agents, or tool-use workflows.
Highlights
- Achieves 2B-class open-source state-of-the-art performance, remaining competitive with larger 4B-class models.
- Supports native long-context understanding (up to 131,072 tokens).
- Includes open-source high-quality training datasets (UltraData) covering code, math, and agentic tasks.
- Provides multiple deployment options including vLLM, SGLang, and Llama.cpp, with support for speculative decoding to accelerate generation.
- Optimized for agentic tasks, with specific training samples provided to enhance on-device agent capabilities.
Related
- Project
- Dispatch
- Project
- Dispatch
- Dispatch