MiniCPM5-1B

Reddit r/LocalLLaMA Models

Summary

OpenBMB releases MiniCPM5-1B, a dense 1B Transformer model achieving SOTA among open-source 1B-class models, designed for on-device deployment with hybrid reasoning and long-context support.

No content available
Original Article
View Cached Full Text

Cached at: 05/25/26, 02:19 PM

openbmb/MiniCPM5-1B · Hugging Face

Source: https://huggingface.co/openbmb/MiniCPM5-1B

MiniCPM Tech Report|GitHub Repo|UltraData|MiniCPM Desk Pet|Online Demo

English |中文

https://huggingface.co/openbmb/MiniCPM5-1B#highlightsHighlights

We are releasingMiniCPM5-1B, the first model in theMiniCPM5series. It is a dense 1B Transformer built for on-device, local deployment, and resource-constrained scenarios, reaching 1B-class open-source SOTA.

🏆1B-class open-source SOTA: compared with strong open-source models in the same size class, MiniCPM5-1B reaches SOTA within this comparison set. Its advantage is most visible in agentic tool use, code generation, and difficult reasoning.

MiniCPM5-1B capability comparison by domain

🧠Hybrid Reasoning: built-in<think\>chat template, switch viaenable\_thinking. The same checkpoint serves as both a fast assistant and a deliberate reasoner.

🛠️Deployment / Fine-tuning Resources: the MiniCPM GitHub repo provides single-page cookbooks and Agent Skills for major inference backends and fine-tuning frameworks.

🐱Desktop Pet: a local-LLM desktop pet driven by MiniCPM5-1B.

https://huggingface.co/openbmb/MiniCPM5-1B#model-listModel List

Use this directory to choose the model format that matches your runtime:

https://huggingface.co/openbmb/MiniCPM5-1B#model-informationModel Information

MiniCPM5-1B has the following features:

  • Type: Causal Language Model
  • Architecture: StandardLlamaForCausalLM
  • Number of Parameters: 1,080,632,832
  • Number of Non-Embedding Parameters: 679,552,512
  • Number of Layers: 24
  • Number of Attention Heads (GQA): 16 for Q and 2 for KV
  • Context Length: 131,072

https://huggingface.co/openbmb/MiniCPM5-1B#introductionIntroduction

MiniCPM5-1B is the first checkpoint in the MiniCPM5 series. It is designed for local assistants, coding agents, tool-use workflows, and reasoning scenarios where a compact model is preferred. The model keeps a small deployment footprint while providing native long-context support and both Think / No Think chat modes through the same checkpoint.

https://huggingface.co/openbmb/MiniCPM5-1B#evaluation-resultsEvaluation Results

We compare MiniCPM5-1B with strong open-source models in the same size class, includingLFM2.5-1.2B-Thinking,Qwen3-0.6B/thinkandQwen3.5-0.8B/think. These are capable baselines; within this comparison set, MiniCPM5-1B reaches 1B-class open-source SOTA, with its advantage most visible in tool use, code generation, and difficult reasoning. This makes it a practical choice for local coding agents, tool assistants, and reasoning assistants.

MiniCPM-5 1B Public Leaderboard

https://huggingface.co/openbmb/MiniCPM5-1B#training-recipeTraining Recipe

The training of MiniCPM5-1B is a full-stack practice of**UltraData Tiered Data Management**, covering three stages: base training, mid-training, and post-training.

Duringbase training, the model goes through stable training and decay training to build core language capability and training stability. It then entersmid-trainingto further strengthen target capabilities and adapt to the target data distribution. The training corpus is released alongside the model asUltra-FineWeb,Ultra-FineWeb-L3, andUltraData-Math.

Duringpost-training, we proceed in three steps:SFT,RL, andOPD. We first use200B tokens of deep-thinking SFTand200B tokens of hybrid-thinking SFTto establish deep-thinking, hybrid-thinking, and general chat abilities; the SFT data is released asUltraData-SFT-2605. We then train specializedRL teachersfor math, code, closed-book QA, writing, and related domains, and use**On-Policy Distillation (OPD)**to distill these teachers back into one release model.

MiniCPM5-1B Training Recipe

https://huggingface.co/openbmb/MiniCPM5-1B#what-does-rl–opd-bringWhat does RL + OPD bring?

RL + OPDis a key part of MiniCPM5-1B post-training. On math, code and instruction-following tasks, RL + OPD raises the average score by**↑16 pointswhile cutting the share of responses that hit the max-tokens budget by↓29 percentage points**. The figures below show the two-stage Reasoning RL pipeline, score gains, and the drop in overlong responses.

RLcombines complementary training signals for reasoning, closed-book QA, writing, instruction following, long-context understanding, and general dialogue. Reasoning RL is based onDAPO-Math-17k, follows the minimalist recipe ofJustRL, and further adds a two-stage length schedule to reduce overlong responses while improving reasoning accuracy. We also useTriviaQA,NQ-Open,LongWriter-Zero-RLData, synthesized verifiable RLVR data, and pair-wise RLHF signals to improve reliability, instruction following, and user experience.

MiniCPM5-1B RL Two-stage Pipeline

OPDbuilds on Thinking Machines Lab’sOn-Policy Distillationand incorporates implementation improvements fromRethinking On-Policy Distillation. In the RL framework, we use reverse KL divergence as the advantage estimate, replacing the original verification-based advantage. At each response position, we take top-k logits from both the student and teacher models, compute reverse KL on the union of the two token sets, and balance the accuracy of the RKL signal with training efficiency. OPD reuses the in-domain prompts used to train each RL teacher as distillation data, so no additional data curation is required.

MiniCPM5-1B RL + OPD Gains

MiniCPM5-1B RL + OPD Overlong Response Rate Drop

https://huggingface.co/openbmb/MiniCPM5-1B#quickstartQuickstart

https://huggingface.co/openbmb/MiniCPM5-1B#vllmvLLM

pip install "vllm>=0.21"
vllm serve openbmb/MiniCPM5-1B --port 8000
curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openbmb/MiniCPM5-1B",
    "messages": [{"role": "user", "content": "Who are you? Please briefly introduce yourself."}],
    "max_tokens": 128,
    "temperature": 0.7
  }'

https://huggingface.co/openbmb/MiniCPM5-1B#sglangSGLang

pip install "sglang[srt]>=0.5.12"
python -m sglang.launch_server --model-path openbmb/MiniCPM5-1B --port 30000
curl http://localhost:30000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openbmb/MiniCPM5-1B",
    "messages": [{"role": "user", "content": "Who are you? Please briefly introduce yourself."}],
    "max_tokens": 128,
    "temperature": 0.7
  }'

https://huggingface.co/openbmb/MiniCPM5-1B#transformersTransformers

pip install -U "transformers>=5.6" accelerate torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "openbmb/MiniCPM5-1B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype="auto",
    device_map="auto",
)

messages = [{"role": "user", "content": "Who are you? Please briefly introduce yourself."}]
inputs = tokenizer.apply_chat_template(
    messages,
    tokenize=True,
    add_generation_prompt=True,
    enable_thinking=False,
    return_tensors="pt",
).to(model.device)

outputs = model.generate(inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True))

Recommended chat template sampling:

ModeRecommended paramsEnableThinktemperature=0\.9, top\_p=0\.95``enable\_thinking=TrueNo Thinktemperature=0\.7, top\_p=0\.95``enable\_thinking=False

https://huggingface.co/openbmb/MiniCPM5-1B#tool-callingTool Calling

For tool / function calling,SGLang is the recommended backend. MiniCPM5-1B emits XML-style tool calls and SGLang’s built-inminicpm5parser converts them to OpenAI-compatibletool\_callsnatively:

python -m sglang.launch_server --model-path openbmb/MiniCPM5-1B --port 30000 \
    --tool-call-parser minicpm5      # or: --tool-call-parser auto

https://huggingface.co/openbmb/MiniCPM5-1B#github-cookbooks-and-agent-skillsGitHub Cookbooks and Agent Skills

MiniCPM5-1B uses thestandardLlamaForCausalLMarchitecture, so mainstream inference engines can load it directly:no custom kernels, no model-code fork. For step-by-step deployment and fine-tuning instructions, use the GitHub cookbooks below. Agent Skills are linked as GitHub resources for users working with Cursor / Claude Code style coding agents.

https://huggingface.co/openbmb/MiniCPM5-1B#deploymentDeployment

https://huggingface.co/openbmb/MiniCPM5-1B#fine-tuningFine-tuning

https://huggingface.co/openbmb/MiniCPM5-1B#other-supported-frameworksOther Supported Frameworks

In addition to the deployment and fine-tuning frameworks listed above, MiniCPM5-1B is also supported by FlagOS for multi-chip deployment.

https://huggingface.co/openbmb/MiniCPM5-1B#flagos-overviewFlagOS Overview

To enable large-scale deployment across different AI chips, Beijing Zhiyuan Research Institute, together with numerous research institutions, chip manufacturers, system vendors, and algorithm and software organizations both domestically and internationally, jointly initiated and established the FlagOS Open Source Community.

The FlagOS community is dedicated to building a unified, open-source system software stack for various AI chips, encompassing core open-source projects such as a large-scale operator library, a unified AI compiler, parallel training and inference frameworks, and a unified communication library. It aims to create an open technology ecosystem connecting the “model-system-chip” layers. By enabling “develop once, deploy across chips”, FlagOS unlocks the computational potential of hardware, breaks down the ecosystem silos between different chip software stacks, and effectively reduces migration costs for developers.The FlagOS community fosters an AI hardware and software ecosystem, overcomes single-vendor closed-source monopolies, promotes widespread deployment of AI hardware technologies, and is committed to rooted in China while embracing global collaboration.

Official website express:https://flagos.io

FlagOS multi-chip support and usage#### https://huggingface.co/openbmb/MiniCPM5-1B#flagos-supporting-multiple-ai-chipsFlagOS: Supporting Multiple AI Chips

Thanks to FlagOS’s unified multi-chip AI system software stack, MiniCPM5-1B was adapted to 4–5 different AI chips in an extremely short time. Currently, the multi-chip version of MiniCPM5-1B has been released on FlagRelease, FlagOS’s platform for automatic migration, adaptation, and deployment of large models across multi-architecture AI chips. Details are as follows:

https://huggingface.co/openbmb/MiniCPM5-1B#flagos-usageFlagOS Usage

https://huggingface.co/openbmb/MiniCPM5-1B#flagos-performance-acceleration-on-nvidiaFlagOS Performance Acceleration on Nvidia
https://huggingface.co/openbmb/MiniCPM5-1B#from-flagrelease-recommendationFrom FlagRelease (Recommendation)

FlagRelease is a platform developed by the FlagOS team for automatic migration, adaptation, and deployment of large models across multi-architecture AI chips. The multi-chip version of MiniCPM5-1B has already been released on FlagRelease. All necessary software packages are pre-installed on the platform, so users do not need to install anything.

https://huggingface.co/openbmb/MiniCPM5-1B#flagrelease-image-key-versionsFlagRelease Image Key Versions
https://huggingface.co/openbmb/MiniCPM5-1B#flagrelease-quick-startFlagRelease Quick Start
https://huggingface.co/openbmb/MiniCPM5-1B#from-scratchFrom Scratch
  • Dependencies: Python 3.12, GLIBC 2.39, GLIBCXX 3.4.33, CXXABI 1.3.15
https://huggingface.co/openbmb/MiniCPM5-1B#vllm-versionVllm Version
https://huggingface.co/openbmb/MiniCPM5-1B#installing-the-flagos-operator-libraryInstalling the FlagOS Operator Library

Official Repository:https://github.com/flagos-ai/FlagGems

pip install flag-gems==4.2.1rc0
pip install triton==3.5.1
https://huggingface.co/openbmb/MiniCPM5-1B#activating-accelerationActivating Acceleration

You can enable flagGems acceleration by adding the import of flagGems in the source code of vllm where inference is performed.

import flag_gems
flag_gems.enable(record=True, once=True, path="/root/gems.txt")
vllm serve ${model_path} \
--trust-remote-code \
--dtype bfloat16 \
--enforce-eager \
--port ${Port} \
--served-model-name ${model_name} \
--gpu-memory-utilization 0.85
https://huggingface.co/openbmb/MiniCPM5-1B#using-flagos-unified-multi-chip-backend-pluginUsing FlagOS Unified Multi-Chip Backend Plugin

vllm-plugin-FLis a plugin built for the vLLM inference/service framework. Developed on top of FlagOS’s unified multi-chip backend, it is designed to extend vLLM’s capabilities and performance across a variety of hardware environments.

https://huggingface.co/openbmb/MiniCPM5-1B#using-vllm-plugin-flUsing vllm-plugin-FL

https://huggingface.co/openbmb/MiniCPM5-1B#desktop-petDesktop Pet

We also ship**OpenBMB/MiniCPM-Desk-Pet**, a desktop pet driven locally by MiniCPM5-1B. It supports Apple Silicon / NVIDIA GPU / CPU paths, can work with coding agents such as Cursor, Claude Code, and Codex, and supports LoRA persona switching.

MiniCPM Desk Pet video demo

https://huggingface.co/openbmb/MiniCPM5-1B#limitations-and-responsible-useLimitations and Responsible Use

MiniCPM5-1B is a language model that generates content based on learned statistical patterns from training data. It may produce inaccurate, biased, or unsafe outputs, and generated content should be reviewed and verified before use in high-stakes settings.

Users are responsible for evaluating outputs, applying appropriate safeguards, and complying with applicable laws, regulations, and platform policies.

https://huggingface.co/openbmb/MiniCPM5-1B#licenseLicense

This repository and MiniCPM model weights are released under theApache-2.0License.

https://huggingface.co/openbmb/MiniCPM5-1B#citationCitation

Please cite our paper if you find our work valuable:

@article{minicpm4,
  title={Minicpm4: Ultra-efficient llms on end devices},
  author={MiniCPM, Team},
  journal={arXiv preprint arXiv:2506.07900},
  year={2025}
}

Similar Articles

MiniCPM5 1B - what is it?

Reddit r/LocalLLaMA

MiniCPM5-1B is a new small language model from OpenBMB, apparently built from scratch with its own tokenizer and distinct behavior, generating excitement as a capable 1B model.

MiniCPM5-1B Shows Why the Small-Model Race Isn't Over

Reddit r/ArtificialInteligence

MiniCPM5-1B is a 1B parameter model from OpenBMB that achieves impressive scores on AIME 2025 and τ2-Bench Telecom, outperforming larger models. It features both fast and reasoning modes from a single checkpoint, enabled by a three-stage post-training process including supervised fine-tuning, reinforcement learning, and on-policy distillation.