alt.freeweights.minicpm / MiniCPM5-1B-Base
From: openbmb <huggingface.co/openbmb>Newsgroups: alt.freeweights.minicpmSubject:

MiniCPM5-1B-Base

Date: 2026-11-14Commit: 777abd7Signed: 2DC28CC7B26A283B ✓

Text generation model with 1.1B parameters. Safetensors weights, 2.17 GB in all. Published by openbmb under Apache-2.0.

1.1B params2.17GBMiniCPM5-1B-Basesafetensorspermissive
FactsParams1.1BSize2.17 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get openbmb/MiniCPM5-1B-Base
# manifest sha256 59c869a128fd… · 2.17 GB · 11 files
$ fw verify ./MiniCPM5-1B-Base openbmb/MiniCPM5-1B-Base
From sourceHosted (signed)openbmb/MiniCPM5-1B-BaseLast check: 2026-11-14 21:25 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
2.17 GB
Weights
2.16 GB (safetensors)
Parameters
1.1B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
11, each with a sha256
Publisher
openbmb
Added
2026-11-14
Section
alt.freeweights.minicpm
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:25 UTCpassed

Model card

From the publisher at commit 777abd7. Shown as plain text with links; images open at the publisher.

Image: image

MiniCPM Tech Report | MiniCPM Wiki(Chinese) | GitHub Repo | UltraData | MiniCPM Desk Pet | Online Demo

English | 中文

Highlights#

We are releasing MiniCPM5-1B, the first model in the MiniCPM5 series. 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.

Image: MiniCPM5-1B capability comparison by domain

🧠 Hybrid Reasoning: built-in <think> chat template, switch via enable_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.

Model List#

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

Model Information#

MiniCPM5-1B has the following features:

  • Type: Causal Language Model
  • Architecture: Standard LlamaForCausalLM
  • 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

Introduction#

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.

Evaluation Results#

We compare MiniCPM5-1B 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. 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.

Image: MiniCPM-5 1B Public Leaderboard

Training 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.

During base training, the model goes through stable training and decay training to build core language capability and training stability. It then enters mid-training to further strengthen target capabilities and adapt to the target data distribution. The training corpus is released alongside the model as Ultra-FineWeb, Ultra-FineWeb-L3, and UltraData-Math.

During post-training, we proceed in three steps: SFT, RL, and OPD. We first use 200B tokens of deep-thinking SFT and 200B tokens of hybrid-thinking SFT to establish deep-thinking, hybrid-thinking, and general chat abilities; the SFT data is released as UltraData-SFT-2605. We then train specialized RL teachers for math, code, closed-book QA, writing, and related domains, and use On-Policy Distillation (OPD) to distill these teachers back into one release model.

Image: MiniCPM5-1B Training Recipe

What does RL + OPD bring?#

RL + OPD is a key part of MiniCPM5-1B post-training. On math, code and instruction-following tasks, RL + OPD raises the average score by ↑16 points while 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.

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

Image: MiniCPM5-1B RL Two-stage Pipeline

OPD builds on Thinking Machines Lab's On-Policy Distillation and incorporates implementation improvements from Rethinking 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.

Image: MiniCPM5-1B RL + OPD Gains

Image: MiniCPM5-1B RL + OPD Overlong Response Rate Drop

Quickstart#

vLLM#
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
  }'
SGLang#
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
  }'
Transformers#
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 paramsEnable
Thinktemperature=0.9, top_p=0.95enable_thinking=True
No Thinktemperature=0.7, top_p=0.95enable_thinking=False

Tool Calling#

For tool / function calling, SGLang is the recommended backend. MiniCPM5-1B emits XML-style tool calls and SGLang's built-in minicpm5 parser converts them to OpenAI-compatible tool_calls natively:

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

GitHub Cookbooks and Agent Skills#

MiniCPM5-1B uses the standard LlamaForCausalLM architecture, 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.

Deployment#
BackendModel format / use caseCookbookAgent Skill
TransformersBF16 / FP16 local Python inference, GPU + CPUtransformers.mdminicpm5-deploy-transformers
vLLMBF16 / FP16 OpenAI servervllm.mdminicpm5-deploy-vllm
SGLangBF16 / FP16 OpenAI server, recommended for tool callingsglang.mdminicpm5-deploy-sglang
llama.cppGGUF local inference, CPU/GPUllama_cpp.mdminicpm5-deploy-llama-cpp
OllamaGGUF local on-device runtimeollama.mdminicpm5-deploy-ollama
LM StudioGGUF Mac desktop app and OpenAI serverlmstudio.mdminicpm5-deploy-lmstudio
MLXMLX / 4bit local inference on Apple Siliconmlx.mdminicpm5-deploy-mlx
ArcLightGGUF local on-device, CPU, Desktop & Serverarclight.mdminicpm5-deploy-arclight
Fine-tuning#
FrameworkUse caseCookbookAgent Skill
TRL + PEFTLoRA / SFT fine-tuningtrl.mdminicpm5-finetune-trl
LLaMA-FactoryFine-tuningllamafactory.mdminicpm5-finetune-llamafactory
ms-swiftFine-tuningms_swift.mdminicpm5-finetune-ms-swift
unslothFine-tuningunsloth.mdminicpm5-finetune-unsloth
xtunerFine-tuningxtuner.mdminicpm5-finetune-xtuner
Other Supported Frameworks#

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

FlagOS 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

FlagOS: 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:

FlagOS Usage#
FlagOS Performance Acceleration on Nvidia#
From 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.

FlagRelease Image Key Versions#
FlagRelease Quick Start#
From Scratch#
  • Dependencies: Python 3.12, GLIBC 2.39, GLIBCXX 3.4.33, CXXABI 1.3.15
Vllm Version#
Installing 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
Activating 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
Using FlagOS Unified Multi-Chip Backend Plugin#

vllm-plugin-FL is 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.

Using vllm-plugin-FL#

Desktop 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

Limitations 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.

License#

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

Citation#

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}
}

Files

11 files · 2.17 GBWeights 2.16 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 11 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README-cn.md22.1 KB4001ffb36c9d068e38bd11924c7bbdf2bbeb928a67a0ea8ae7f5d97b9b34d261
README.md23.4 KB5e36fd5c4221708efa46f5eff474148f4fa3b1734f550ea26ff67b9afe064e76
chat_template.jinja9.06 KB865063bd21a7fa5bc5921afb979bcd7ae6926229e7eed7235a8bf97040e6573c
config.json731 Bf6a54013efd621f26dbe94f7258445bfbf587cd323b5f6f2411d22dcecc4ef7d
generation_config.json153 Ba418639700a3026691aaa8c4ee4a38a83f380c6d24164a8fdd60a29af80b4fcd
model-00000-of-00001.safetensors2.16 GBbcf629379a6f5f5e18e9ec637a0e054de7f14e311a66b3d9b0932d06ec487f0e
model.safetensors.index.json18.0 KB1b2eaa65742b9cadec7a95d65d8533208d6294b1952ee3450af30b6aa4b3f298
special_tokens_map.json551 B82d96d7a9e6ced037f12394b7ea6a5b02e6ca87e0d11edaa8d60d9be857ce7db
tokenizer.json9.89 MB3e065a558a034185fe299917b398685c1facd0169a9eea1e629eb30c171fed81
tokenizer_config.json94.4 KB094efb3cf1ff412284cc5945fc99dff58673a912760d04483a04aa1c716f66fd
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
777abd79fb pinned now manifest updated, same commit2026-11-14 21:25 UTC11 files · 2.17 GB
777abd79fb2026-11-14 21:25 UTC11 files · 2.17 GB

Use it

$ fw get openbmb/MiniCPM5-1B-Base
# manifest sha256 59c869a128fd… · 2.17 GB · 11 files
$ fw verify ./MiniCPM5-1B-Base openbmb/MiniCPM5-1B-Base
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/openbmb/MiniCPM5-1B-Base.json --dir ./MiniCPM5-1B-Base $ python3 fw.py verify ./MiniCPM5-1B-Base ./openbmb__MiniCPM5-1B-Base.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download openbmb/MiniCPM5-1B-Base --revision 777abd79fbb0d0d60c7c7b6d69d3f2c904b2f987 --local-dir ./MiniCPM5-1B-Base
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("openbmb/MiniCPM5-1B-Base", revision="777abd79fbb0d0d60c7c7b6d69d3f2c904b2f987") model = AutoModelForCausalLM.from_pretrained("openbmb/MiniCPM5-1B-Base", revision="777abd79fbb0d0d60c7c7b6d69d3f2c904b2f987", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve openbmb/MiniCPM5-1B-Base --revision 777abd79fbb0d0d60c7c7b6d69d3f2c904b2f987

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
README.md
Text sha256
5e36fd5c4221708efa46f5eff474148f4fa3b1734f550ea26ff67b9afe064e76
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: openbmb <huggingface.co/openbmb>Newsgroups: alt.freeweights.minicpmSubject: MiniCPM5-1B-BaseDate: 2026-11-14Commit: 777abd7Signed: 2DC28CC7B26A283B ✓
Upstream
openbmb/MiniCPM5-1B-Base
Pinned commit
777abd79fbb0d0d60c7c7b6d69d3f2c904b2f987
Manifest
MiniCPM5-1B-Base.json · .minisig
Manifest sha256
59c869a128fd055ee1dea3829fbd81d0f2dda04849aebcc81f73e5b56d33823a
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:25 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/openbmb/MiniCPM5-1B-Base.json $ curl -O https://freeweights.allternit.com/manifests/openbmb/MiniCPM5-1B-Base.json.minisig $ minisign -Vm MiniCPM5-1B-Base.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download openbmb/MiniCPM5-1B-Base
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. MiniCPM5-1B-Base.json. Provenance. Takedown history: none.
From: openbmb <huggingface.co/openbmb>Subject: AgentCPM-Explore-GGUF
From: openbmb <huggingface.co/openbmb>Subject: AgentCPM-Report
From: openbmb <huggingface.co/openbmb>Subject: AgentCPM-Report-GGUF
From: openbmb <huggingface.co/openbmb>Subject: BitCPM-CANN-0.5B-gguf
From: openbmb <huggingface.co/openbmb>Subject: BitCPM-CANN-1B-gguf
From: openbmb <huggingface.co/openbmb>Subject: BitCPM-CANN-3B-gguf