From: openbmb <huggingface.co/openbmb>Newsgroups: alt.freeweights.minicpmSubject:

MiniCPM4-MCP

Date: 2026-11-14Commit: a86a48bSigned: 2DC28CC7B26A283B ✓

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

8.2B params16.4GBMiniCPM4-MCPsafetensorspermissive
FactsParams8.2BSize16.4 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get openbmb/MiniCPM4-MCP
# manifest sha256 c7a0f1ace9b0… · 16.4 GB · 19 files
$ fw verify ./MiniCPM4-MCP openbmb/MiniCPM4-MCP
From sourceHosted (signed)openbmb/MiniCPM4-MCPLast 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
16.4 GB
Weights
16.4 GB (safetensors)
Parameters
8.2B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
19, 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 a86a48b. Shown as plain text with links; images open at the publisher.

Image: image

GitHub Repo | Technical Report

👋 Join us on Discord and WeChat

What's New#

  • [2025.06.06] MiniCPM4 series are released! This model achieves ultimate efficiency improvements while maintaining optimal performance at the same scale! It can achieve over 5x generation acceleration on typical end-side chips! You can find technical report here.🔥🔥🔥

MiniCPM4 Series#

MiniCPM4 series are highly efficient large language models (LLMs) designed explicitly for end-side devices, which achieves this efficiency through systematic innovation in four key dimensions: model architecture, training data, training algorithms, and inference systems.

  • MiniCPM4-8B: The flagship of MiniCPM4, with 8B parameters, trained on 8T tokens.
  • MiniCPM4-0.5B: The small version of MiniCPM4, with 0.5B parameters, trained on 1T tokens.
  • MiniCPM4-8B-Eagle-FRSpec: Eagle head for FRSpec, accelerating speculative inference for MiniCPM4-8B.
  • MiniCPM4-8B-Eagle-FRSpec-QAT-cpmcu: Eagle head trained with QAT for FRSpec, efficiently integrate speculation and quantization to achieve ultra acceleration for MiniCPM4-8B.
  • MiniCPM4-8B-Eagle-vLLM: Eagle head in vLLM format, accelerating speculative inference for MiniCPM4-8B.
  • MiniCPM4-8B-marlin-Eagle-vLLM: Quantized Eagle head for vLLM format, accelerating speculative inference for MiniCPM4-8B.
  • BitCPM4-0.5B: Extreme ternary quantization applied to MiniCPM4-0.5B compresses model parameters into ternary values, achieving a 90% reduction in bit width.
  • BitCPM4-1B: Extreme ternary quantization applied to MiniCPM3-1B compresses model parameters into ternary values, achieving a 90% reduction in bit width.
  • MiniCPM4-Survey: Based on MiniCPM4-8B, accepts users' quiries as input and autonomously generate trustworthy, long-form survey papers.
  • MiniCPM4-MCP: Based on MiniCPM4-8B, accepts users' queries and available MCP tools as input and autonomously calls relevant MCP tools to satisfy users' requirements. (<-- you are here)

Introduction#

MiniCPM4-MCP is an open-source on-device LLM agent model jointly developed by THUNLP, Renmin University of China and ModelBest, built on MiniCPM-4 with 8 billion parameters. It is capable of solving a wide range of real-world tasks by interacting with various tool and data resources through MCP.

Usage#

As of now, MiniCPM4-MCP supports the following:

  • Utilization of tools across 16 MCP servers: These servers span various categories, including office, lifestyle, communication, information, and work management.
  • Single-tool-calling capability: It can perform single- or multi-step tool calls using a single tool that complies with the MCP.
  • Cross-tool-calling capability: It can perform single- or multi-step tool calls using different tools that complies with the MCP.

Inference#

MCP Servers Deployment#

The MCP Servers supported by MiniCPM4-MCP include Airbnb, Amap-Maps, Arxiv-MCP-Server, Calculator, Computer-Control-MCP, Desktop-commander, Filesystem, Github, Gaode, MCP-Code-Executor, MCP-DOCx, PPT, PPTx, Simple-Time-Server, Slack, and Whisper. Follow the instructions provided in each server's repository for successful deployment. Note that not all tools in these servers will function properly in every environment. Some tools are unstable and may return errors such as timeouts or HTTP errors. During training data construction, tools with consistently high failure rates (e.g., those for which the LLM fails to produce a successful query even after hundreds of attempts) are filtered out.

MCP Client Setup#

We modified the existing MCP Client from the mcp-cli repository to enable interaction between MiniCPM and MCP Servers. After the MCP Client performs a handshake with a Server, it retrieves a list of available tools. An example of tool information contained in this list is provided in available_tool_example.json.

Once the available tools and user query are obtained, results can be generated using the following script logic:

python generate_example.py \
--tokenizer_path {path to MiniCPM4 tokenizer} \
--base_url {vllm deployment URL} \
--model {model name used in vllm deployment} \
--output_path {path to save results}

where the generate_example.py is located in link and MiniCPM4 generates tool calls in the following format:

    <|tool_call_start|>
    ```python 
    read_file(path="/path/to/file")
    ```
    <|tool_call_end|>

You can build a custom parser for MiniCPM4 tool calls based on this format. The relevant parsing logic is located in generate_example.py.

Since the mcp-cli repository supports the vLLM inference framework, MiniCPM4-MCP can also be integrated into mcp-cli by modifying vLLM accordingly. Specifically, follow the instructions in this link to enable interaction between a client running the MiniCPM4-MCP model and the MCP Server.

Evaluation#

The detailed evaluation script can be found on the GitHub page. The evaluation results are presented below.

MCP Servergpt-4oqwen3minicpm4
funcparamvaluefuncparamvaluefuncparamvalue
Airbnb89.367.953.692.860.750.096.467.950.0
Amap-Maps79.877.550.074.472.041.089.385.739.9
Arxiv-MCP-Server85.785.785.781.854.550.057.157.152.4
Calculator100.0100.020.080.080.013.3100.0100.06.67
Computor-Control-MCP90.090.090.090.090.090.090.090.086.7
Desktop-Commander100.0100.0100.0100.0100.0100.0100.0100.0100.0
Filesystem63.563.531.369.769.726.083.383.342.7
Github92.080.058.080.550.027.762.825.717.1
Gaode71.155.617.868.846.624.468.946.715.6
MCP-Code-Executor85.080.070.080.080.070.090.090.065.0
MCP-Docx95.886.767.194.981.660.195.186.676.1
PPT72.649.840.985.950.737.591.272.156.7
PPTx64.253.713.491.068.620.991.058.226.9
Simple-Time-Server90.070.070.090.090.090.090.060.060.0
Slack100.090.070.0100.0100.065.0100.0100.0100.0
Whisper90.090.090.090.090.090.090.090.030.0
Average80.270.249.183.567.743.888.376.151.2

Statement#

  • As a language model, MiniCPM generates content by learning from a vast amount of text.
  • However, it does not possess the ability to comprehend or express personal opinions or value judgments.
  • Any content generated by MiniCPM does not represent the viewpoints or positions of the model developers.
  • Therefore, when using content generated by MiniCPM, users should take full responsibility for evaluating and verifying it on their own.

LICENSE#

  • This repository and MiniCPM models 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},
  year={2025}
}

Files

19 files · 16.4 GBWeights 16.4 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 19 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
Modelfile384 B5b66bd54e42e50b9a44518f995baee01e8bfe5262cc4b460ae5b930606c29fb6
README.md11.7 KBcb46efd5d74a8fe1a242f9175004493875b8d8f44960b47286f3e08c290eaf6a
added_tokens.json216 B4760fcbf90bc193f33827ffe02f2e7ba1af1ec43644cc02ac22fdd611f6cca15
compressed_attention.py44.0 KB51b1bddf1eecce6ec8794080b210f224e165c07cc0c0b1ecffe77aff4dde23ff
config.json4.62 KBa2340eecb7314bcc7eb3624f50d04ee920a6d11e54282707f04cb2210f229f52
configuration_minicpm.py9.46 KB34f014251e54c9f5cee5ba48556482bcd34acf80c4eeabc183a24c10ecbdab17
generation_config.json182 B9c2ecdbb766896150c6c47f44d2ca8b902b4e0547293967d2ded0609a6e06afd
model-00001-of-00005.safetensors3.99 GB8889121190f1249d223ba24a5cbf50c959a6c4cc2456d5cf3448e5463ddce882
model-00002-of-00005.safetensors3.93 GBe513ad5fb6f8180cceb278d5ac2ad3d677694cbf84b725187e047774677c50a1
model-00003-of-00005.safetensors3.93 GB059c3fa22026b886ad5169ed954f7e336320b605ab8973a6ea16308f7a61a597
model-00004-of-00005.safetensors3.93 GB548dc62dd17b6ae7b1d328a35a8d7ecb89a20e5dcbfc83d20c060d1cd45ddeba
model-00005-of-00005.safetensors602 MBcbc464a995b4d5ad7188c965862202621af0b5c25e67d7078c220dc4a1e46d06
model.safetensors.index.json23.9 KBfc4c1635bb04c80081141960ee09b9df5e64f7c7391084e8259b291aa2eec84f
modeling_minicpm.py108 KBd58285c45e659030ee13f59e6050ccf67fe523548c9b587e6e1374a33b570d5f
special_tokens_map.json773 Baa36446e046d615dd89275b2e5a2bf369a4a694090f04504c5f542f3aad9448c
tokenizer.json6.70 MBadf7208af154a5ca065d2eda4e5419e02aac58c2c00627874748b75ec6769094
tokenizer.model1.18 MBbb74d51116831c3bf65db812c553f94ab0c88dcf97a5bbb37e3504f6d359c530
tokenizer_config.json10.5 KB7b2ec8082adc5d960710df041cb4c8235ddae1bd1d5e78cd89d1c633c949e308
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
a86a48b5b6 pinned now manifest updated, same commit2026-11-14 21:25 UTC19 files · 16.4 GB
a86a48b5b62026-11-14 21:25 UTC19 files · 16.4 GB

Use it

$ fw get openbmb/MiniCPM4-MCP
# manifest sha256 c7a0f1ace9b0… · 16.4 GB · 19 files
$ fw verify ./MiniCPM4-MCP openbmb/MiniCPM4-MCP
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/openbmb/MiniCPM4-MCP.json --dir ./MiniCPM4-MCP $ python3 fw.py verify ./MiniCPM4-MCP ./openbmb__MiniCPM4-MCP.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download openbmb/MiniCPM4-MCP --revision a86a48b5b6af17ef98b7234a3a0edd1ebbe6e63e --local-dir ./MiniCPM4-MCP
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/MiniCPM4-MCP", revision="a86a48b5b6af17ef98b7234a3a0edd1ebbe6e63e") model = AutoModelForCausalLM.from_pretrained("openbmb/MiniCPM4-MCP", revision="a86a48b5b6af17ef98b7234a3a0edd1ebbe6e63e", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve openbmb/MiniCPM4-MCP --revision a86a48b5b6af17ef98b7234a3a0edd1ebbe6e63e

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
cb46efd5d74a8fe1a242f9175004493875b8d8f44960b47286f3e08c290eaf6a
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: MiniCPM4-MCPDate: 2026-11-14Commit: a86a48bSigned: 2DC28CC7B26A283B ✓
Upstream
openbmb/MiniCPM4-MCP
Pinned commit
a86a48b5b6af17ef98b7234a3a0edd1ebbe6e63e
Manifest
MiniCPM4-MCP.json · .minisig
Manifest sha256
c7a0f1ace9b0a089982b7e64b956ba1e63f5cb0dc8a06f6072de77ca21f1127b
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/MiniCPM4-MCP.json $ curl -O https://freeweights.allternit.com/manifests/openbmb/MiniCPM4-MCP.json.minisig $ minisign -Vm MiniCPM4-MCP.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/MiniCPM4-MCP
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. MiniCPM4-MCP.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