alt.freeweights.minicpm / MiniCPM4-Survey
From: openbmb <huggingface.co/openbmb>Newsgroups: alt.freeweights.minicpmSubject:

MiniCPM4-Survey

Date: 2026-11-15Commit: adfe3fbSigned: 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-Surveysafetensorspermissive
FactsParams8.2BSize16.4 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get openbmb/MiniCPM4-Survey
# manifest sha256 b4f1bccf842e… · 16.4 GB · 36 files
$ fw verify ./MiniCPM4-Survey openbmb/MiniCPM4-Survey
From sourceHosted (signed)openbmb/MiniCPM4-SurveyLast check: 2026-11-15 03:57 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
36, each with a sha256
Publisher
openbmb
Added
2026-11-15
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-15 03:57 UTCpassed

Model card

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

Image: image

GitHub Repo | Technical Report | Paper

👋 Join us on Discord and WeChat

This repository contains the model described in the paper MiniCPM4: Ultra-Efficient LLMs on End Devices.

What's New#

  • [2025-06-05] 🚀🚀🚀 We have open-sourced MiniCPM4-Survey, a model built upon MiniCPM4-8B that is capable of generating trustworthy, long-form survey papers while maintaining competitive performance relative to significantly larger models.

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. (<-- you are here)
  • 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.

Overview#

MiniCPM4-Survey is an open-source LLM agent model jointly developed by THUNLP, Renmin University of China and ModelBest. Built on MiniCPM4 with 8 billion parameters, it accepts users' quiries as input and autonomously generate trustworthy, long-form survey papers.

Key features include:

  • Plan-Retrieve-Write Survey Generation Framework — We propose a multi-agent generation framework, which operates through three core stages: planning (defining the overall structure of the survey), retrieval (generating appropriate retrieval keywords), and writing (synthesizing the retrieved information to generate coherent section-level content).
  • High-Quality Dataset Construction — We gather and process lots of expert-written survey papers to construct a high-quality training dataset. Meanwhile, we collect a large number of research papers to build a retrieval database.
  • Multi-Aspect Reward Design — We carefully design a reward system with three aspects (structure, content, and citations) to evaluate the quality of the surveys, which is used as the reward function in the RL training stage.
  • Multi-Step RL Training Strategy — We propose a Context Manager to ensure retention of essential information while facilitating efficient reasoning, and we construct Parallel Environment to maintain efficient RL training cycles.

Quick Start#

Download the model#

Download MiniCPM4-Survey from Hugging Face and place it in model/MiniCPM4-Survey. We recommend using MiniCPM-Embedding-Light as the embedding model, which can be downloaded from Hugging Face and placed in model/MiniCPM-Embedding-Light.

Prepare the environment#

You can download the paper data from Kaggle, then extract it. You can run python data_process.py to process the data and generate the retrieval database. Then you can run python build_index.py to build the retrieval database.

cd ./code
curl -L -o ~/Downloads/arxiv.zip\
   https://www.kaggle.com/api/v1/datasets/download/Cornell-University/arxiv
unzip ~/Downloads/arxiv.zip -d .
mkdir data
python ./src/preprocess/data_process.py
mkdir index
python ./src/preprocess/build_index.py
Model Inference#

You can run the following command to build the retrieval environment and start the inference:

cd ./code
python ./src/retriever.py
bash ./scripts/run.sh

If you want to run with the frontend, you can run the following command:

cd ./code
python ./src/retriever.py
bash ./scripts/run_with_frontend.sh
cd frontend/minicpm4-survey
npm install
npm run dev

Then you can visit http://localhost:5173 in your browser to use the model.

Performance Evaluation#

MethodRelevanceCoverageDepthNoveltyAvg.Fact Score
Naive RAG (driven by G2FT)3.252.953.352.603.0443.68
AutoSurvey (driven by G2FT)3.103.253.153.153.1646.56
Webthinker (driven by WTR1-7B)3.303.002.752.502.89--
Webthinker (driven by QwQ-32B)3.403.303.302.503.13--
OpenAI Deep Research (driven by GPT-4o)3.503.953.553.003.50--
MiniCPM4-Survey3.453.703.853.003.5068.73
&nbsp;&nbsp;&nbsp;w/o RL3.553.353.302.253.1150.24

Performance comparison of the survey generation systems. "G2FT" stands for Gemini-2.0-Flash-Thinking, and "WTR1-7B" denotes Webthinker-R1-7B. FactScore evaluation was omitted for Webthinker, as it does not include citation functionality, and for OpenAI Deep Research, which does not provide citations when exporting the results.

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

中文#

News#

  • [2025-06-05] 🚀🚀🚀我们开源了基于MiniCPM4-8B构建的MiniCPM4-Survey,能够生成可信的长篇调查报告,性能比肩更大模型。

概览#

MiniCPM4-Survey是由THUNLP、中国人民大学和ModelBest联合开发的开源大语言模型智能体。它基于MiniCPM4 80亿参数基座模型,接受用户质量作为输入,自主生成可信的长篇综述论文。

主要特性包括:

  • 计划-检索-写作生成框架 — 我们提出了一个多智能体生成框架,包含三个核心阶段:计划(定义综述的整体结构)、检索(生成合适的检索关键词)和写作(利用检索到的信息,生成连贯的段落)。
  • 高质量数据集构建——我们收集并处理大量人类专家写作的综述论文,构建高质量训练集。同时,我们收集大量研究论文,构建检索数据库。
  • 多方面奖励设计 — 我们精心设计了包含结构、内容和引用的奖励,用于评估综述的质量,在强化学习训练阶段作奖励函数。
  • 多步强化学习训练策略 — 我们提出了一个上下文管理器,以确保在促进有效推理的同时保留必要的信息,并构建了并行环境,维持强化学习训练高效。

使用#

下载模型#

从 Hugging Face 下载MiniCPM4-Survey并将其放在model/MiniCPM4-Survey中。 我们建议使用MiniCPM-Embedding-Light作为表征模型,放在model/MiniCPM-Embedding-Light中。

准备环境#

从 Kaggle 下载论文数据,然后解压。运行python data_process.py,处理数据并生成检索数据库。然后运行python build_index.py,构建检索数据库。

cd ./code
curl -L -o ~/Downloads/arxiv.zip\
   https://www.kaggle.com/api/v1/datasets/download/Cornell-University/arxiv
unzip ~/Downloads/arxiv.zip -d .
mkdir data
python ./src/preprocess/data_process.py
mkdir index
python ./src/preprocess/build_index.py
模型推理#

运行以下命令来构建检索环境并开始推理:

cd ./code
python ./src/retriever.py
bash ./scripts/run.sh

如果您想使用前端运行,可以运行以下命令:

cd ./code
python ./src/retriever.py
bash ./scripts/run_with_frontend.sh
cd frontend/minicpm4-survey
npm install
npm run dev

然后你可以在浏览器中访问http://localhost:5173使用。

性能#

MethodRelevanceCoverageDepthNoveltyAvg.Fact Score
Naive RAG (driven by G2FT)3.252.953.352.603.0443.68
AutoSurvey (driven by G2FT)3.103.253.153.153.1646.56
Webthinker (driven by WTR1-7B)3.303.002.752.502.89--
Webthinker (driven by QwQ-32B)3.403.303.302.503.13--
OpenAI Deep Research (driven by GPT-4o)3.503.953.553.003.50--
MiniCPM4-Survey3.453.703.853.003.5068.73
&nbsp;&nbsp;&nbsp;w/o RL3.553.353.302.253.1150.24

GPT-4o对综述生成系统的性能比较。“G2FT”代表Gemini-2.0-Flash-Thinking,“WTR1-7B”代表Webthinker-R1-7B。由于Webthinker不包括引用功能,OpenAI Deep Research在导出结果时不提供引用,因此省略了对它们的FactScore评估。我们的技术报告中包含评测的详细信息。

Files

36 files · 16.4 GBWeights 16.4 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 36 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md12.4 KB0fb786998787d810970f143f5cdf21ccbd8e03013af904200ca591036d0f5b56
added_tokens.json216 B4760fcbf90bc193f33827ffe02f2e7ba1af1ec43644cc02ac22fdd611f6cca15
code/frontend/minicpm4-survey/.gitignore253 Bfe718e7babb14f3cbad2d97f08889b9ce5215ed3fe0e43b2b8cfbfb3b9b844e8
code/frontend/minicpm4-survey/eslint.config.js844 B6ea89b7f008172a670aaa8540b110fe2b83ae0b951ac0a748358f2e909867ec6
code/frontend/minicpm4-survey/index.html363 B9ead154514932fe4ed16db1f55b22365bda76230f5909f52c1385dca55fc636c
code/frontend/minicpm4-survey/package-lock.json96.7 KBbc0b138fdf1feb2bb3c76763a4aa39236a1f59c0a39ce7b96819ac8108794012
code/frontend/minicpm4-survey/package.json664 Bd604c72e5bc5857fc8dccbd0e9fefd283691e2c3dd229b83c8b01e80e560df6b
code/frontend/minicpm4-survey/public/openbmb.png629 B1a56f1df342bbbee8ca000e9ae4ac3fdf6f3282fd04faded2a1277412311691d
code/frontend/minicpm4-survey/src/App.css5.75 KBe9c1a1fc9c037082b8fc2afb0a28019c27dda7c1e27945fde48428c0b82256bb
code/frontend/minicpm4-survey/src/App.jsx7.63 KB98c7c993404b93fa2ab8cffb9d278184e94f1ba8ce2e0955f95bbd689cf34dc3
code/frontend/minicpm4-survey/src/index.css1.15 KBbdba2919116e9b72ac06558f88371dc4c80fb0196da6403d239e0fb085250892
code/frontend/minicpm4-survey/src/main.jsx229 B4b4b864dbe45253425d0c925337180ec07e204295179f80f59551216f466f618
code/frontend/minicpm4-survey/vite.config.js161 B4d36db3522a7b2dd10e0936e1004373c7ee65f10f7cd7920cd76410459c15a45
code/requirements.txt64 Bb8b51b759c73e0a1f54e871787eee98d37725353bee0f65abf2f60ef630ea0ba
code/scripts/run.sh291 B9f9924e91a243f9f84a81d21853131c67621fc5b009249b2e1783b6fdc65d14e
code/scripts/run_with_frontend.sh310 Bb6aa382ee20d894f5d8a1c6c30b8a8ad73ee188238f6237028bbf2d93b60c77e
code/src/generation/buffer.py36.2 KB3bc554152c2370aa91835fb620d7ac735e6a01e67bbcfb3420ea905f4cf94676
code/src/generation/prompts.py4.09 KB382e42a8f52707a58ec37230f52ae623a4d940108871f28ef7fcd365febf80b3
code/src/generation/run.py13.0 KB55f86023d02d6d65d2eb1c1cb2bafd5d4c15945e74cda4a45affdba0da5a216c
code/src/preprocess/build_index.py1.59 KB6db000d88e16dcc96d41a602e859eb204bdfaf5733e1306e7ef41892f25866eb
code/src/preprocess/data_process.py628 Bf7d2da8b2096e0c4827f7599f3503d8ffa3b1368dd594e00037a117599c59fa7
code/src/retriever/retriever.py5.67 KB979003396f0ee470b99d548a904ed5124fa39e237ca2660662112e4033c93cb0
config.json3.71 KBedda037080059c0dfa7d7bb8b57dc40a92d68ba6c93eb1928c5752e74a67f284
configuration_minicpm.py9.66 KBf9014f14f71a175a53d48e862ebabb6007a09a2b7dd61eb6a00ddb0cee0ef9a5
generation_config.json182 B83595cf3b045d7ed16593ae399b0e3c13fe45640a4bec3a1cd371b057a6a98b7
model-00001-of-00004.safetensors4.96 GB2272d2c328bc65ef4e1a7710f1d29f3584c84fe7f5a8460a44e41da41561ac72
model-00002-of-00004.safetensors4.97 GB927aa21158b149c9bd8de07238d2060fba7525f822fa465b6a74b2ccb25e1cfb
model-00003-of-00004.safetensors4.88 GB74a22956fac386f8f1fdff60c090aa9a14d2d241b666261ad61422ce5def2d8f
model-00004-of-00004.safetensors1.55 GBb3d1610f229731974c82b387dfaa04e74920ae45f6f892aadfaef0f65c160066
model.safetensors.index.json23.9 KB99a54437ea89b20250f13c3204f8d920c16da60f45b655b3423153d60822160b
modeling_minicpm.py119 KBd0e945083d72f6fda1a996fb14d8109b74fe21e44602725093853ef5c95de538
special_tokens_map.json630 B9ec9d6f07cb0e436598bf29b4d97c6355434c08fdbe9c264e6926907f3751c7e
tokenizer.json6.70 MBadf7208af154a5ca065d2eda4e5419e02aac58c2c00627874748b75ec6769094
tokenizer.model1.18 MBbb74d51116831c3bf65db812c553f94ab0c88dcf97a5bbb37e3504f6d359c530
tokenizer_config.json2.83 KB8bef75d59004eb0e62db89e97090d4736b14fd6c4a0282370c28833be1e83051
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
adfe3fbbc7 pinned now2026-11-15 03:57 UTC36 files · 16.4 GB

Use it

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

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-15
Text in
README.md
Text sha256
0fb786998787d810970f143f5cdf21ccbd8e03013af904200ca591036d0f5b56
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-SurveyDate: 2026-11-15Commit: adfe3fbSigned: 2DC28CC7B26A283B ✓
Upstream
openbmb/MiniCPM4-Survey
Pinned commit
adfe3fbbc702feedc24f98d6fa9417549193c8f4
Manifest
MiniCPM4-Survey.json · .minisig
Manifest sha256
b4f1bccf842e0ae72a8c901d7c5c8f32db371dc33d02d9fee3a8d30cdbd57154
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:57 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/openbmb/MiniCPM4-Survey.json $ curl -O https://freeweights.allternit.com/manifests/openbmb/MiniCPM4-Survey.json.minisig $ minisign -Vm MiniCPM4-Survey.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-Survey
Open in Freeweights Studio

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

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