MiniCPM5-1B
A dense 1B Llama-style causal LM for on-device use, with think and no-think modes in one checkpoint.
Language · 1,332 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Language
- Parameters
- 1.1B
- Operations
- 1,332
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2025
- Cited by
- 90 (as of 22 November 2026)
- Authors
- MiniCPM Team
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m13760
- Graph hash
- a3a07e9e061f0d2cc07686c2b2df8bf9035c8412e0310968a74571df1f112a00
- Skeleton hash
- 36db8e47d14dd17d55c0a701ee6f6354eea0443616fb0ad2dede8313f2c8e5a7
- Architecture hash
- 23661df536690fba740860bcbf04047cfad971dc7bf75b904939c5eee19ef761
- Diagram SHA-256
- 8d6d6371e4c5997719ed58f38410fc2fb198095fbdaccf43ebcfc5729446f782
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
transformers.AutoModelForCausalLM.from_config()
What it is
MiniCPM5-1B is the first model in the MiniCPM5 series, a dense 1B Transformer built for on-device, local deployment, and resource-constrained scenarios. There is nothing exotic to hunt for in the graph: it uses the standard LlamaForCausalLM architecture, so mainstream inference engines load it directly with no custom kernels and no model-code fork. It has 1,080,632,832 parameters, of which 679,552,512 are non-embedding, across 24 layers. Attention is grouped-query, with 16 heads for queries and 2 for keys and values, and the context length is 131,072.
The same checkpoint serves as both a fast assistant and a deliberate reasoner, through a built-in think chat template that is switched via enable_thinking. That hybrid-reasoning idea is the thread back to the cited MiniCPM4 report, which constructs MiniCPM4.1, a hybrid reasoning model usable in both deep reasoning mode and non-reasoning mode. The MiniCPM4 line itself came in 0.5B and 8B versions to meet diverse on-device requirements.
Training covers three stages: base training, mid-training, and post-training. Post-training proceeds in three steps, SFT, RL and OPD, starting from 200B tokens of deep-thinking SFT and 200B tokens of hybrid-thinking SFT. Specialized RL teachers are then trained for math, code, closed-book QA, writing and related domains, and On-Policy Distillation folds those teachers back into one release model. In that distillation step, reverse KL divergence computed over the union of the student's and teacher's top-k logits replaces the verification-based advantage in the RL framework. The card credits RL + OPD with raising the average score on math, code and instruction-following tasks by 16 points while cutting the share of responses that hit the max-tokens budget by 29 percentage points.
The card compares it with strong open-source models in the same size class, including LFM2.5-1.2B-Thinking, Qwen3-0.6B/think and Qwen3.5-0.8B/think. Within that comparison set it claims 1B-class open-source SOTA, with the advantage most visible in tool use, code generation and difficult reasoning. For agent work, the model emits XML-style tool calls, which SGLang's built-in minicpm5 parser converts to OpenAI-compatible tool calls natively.
Key idea. A dense 1B Transformer built for on-device, local deployment, and resource-constrained scenarios, reaching 1B-class open-source SOTA. Its post-training distills specialized RL teachers for math, code, closed-book QA and writing back into one release model with On-Policy Distillation.
- MiniCPM5
- MiniCPM5-1B
- MiniCPM
- MiniCPM4
- OpenBMB
- on-device LLM
- edge LLM
- small language model
- 1B language model
- LlamaForCausalLM
- hybrid reasoning
- think mode
- tool calling
- on-policy distillation
- OPD
- UltraData
- Ultra-FineWeb
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{minicpmteam2025minicpm4ultraefficientllmsend,
title={MiniCPM4: Ultra-Efficient LLMs on End Devices},
author={MiniCPM Team and Chaojun Xiao and Yuxuan Li and Xu Han and Yuzhuo Bai and Jie Cai and Haotian Chen and Wentong Chen and Xin Cong and Ganqu Cui and Ning Ding and Shengda Fan and Yewei Fang and Zixuan Fu and Wenyu Guan and Yitong Guan and Junshao Guo and Yufeng Han and Bingxiang He and Yuxiang Huang and Baoxi Ji and Cunliang Kong and Qiuzuo Li and Siyuan Li and Wenhao Li and Xin Li and Yanghao Li and Yishan Li and Zhen Li and Dan Liu and Biyuan Lin and Yankai Lin and Xiang Long and Quanyu Lu and Yaxi Lu and Peiyan Luo and Hongya Lyu and Litu Ou and Yinxu Pan and Lushi Pu and Zekai Qu and Qundong Shi and Zijun Song and Jiayuan Su and Zhou Su and Ao Sun and Xianghui Sun and Peijun Tang and Fangzheng Wang and Feng Wang and Shuo Wang and Yudong Wang and Zheng Wang and Yesai Wu and Zhenyu Xiao and Jie Xie and Zihao Xie and Xiaoyue Xu and Yukun Yan and Jiarui Yuan and Jinqian Zhang and Kaihuo Zhang and Lei Zhang and Linyue Zhang and Xueren Zhang and Yudi Zhang and Hengyu Zhao and Weilin Zhao and Weilun Zhao and Yuanqian Zhao and Zhi Zheng and Chuyue Zhou and Ge Zhou and Jie Zhou and Wei Zhou and Yanghao Zhou and Zihan Zhou and Zixuan Zhou and Zhiyuan Liu and Guoyang Zeng and Chao Jia and Dahai Li and Maosong Sun},
year={2025},
eprint={2506.07900},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2506.07900},
}