Model reference · open weights

MiniCPM-sft

LLMs openbmb Text gen 1 build Licence not stated 33k dl/mo

MiniCPM-sft is an open-weight language model from openbmb. MiniCPM-2B-sft-bf16 (BF16) weighs 5.4 GB; the smallest configuration that runs it is RTX 3060 12 GB.

  • MiniCPM-sft is a 2.4B parameter end-side language model developed by openbmb and TsinghuaNLP for text generation tasks.
  • It supports English and Chinese with a context length of 4096 tokens.
  • The model weights are released under a General Model License that permits free academic research and limited commercial use.

Summary of the openbmb/MiniCPM-2B-sft-bf16 model card, 2026-10-01

What it is

Released byopenbmb
Released2024-01-29
VRAM5.4 GB for the weights

What it runs on

Memory and cards for MiniCPM-2B-sft-bf16 (BF16)

5.4 GBweights, file size
369 MBcache per 1K tokens
640 MBruntime overhead, at least
4,096 tokenscontext max
CardRequests at onceContext maxMemory
4K each
RTX 3060 12 GB3all 4K11.6 GB
RTX 4060 Ti 16 GB6all 4K15.4 GB
RTX 3090 24 GB11all 4K23.4 GB
RTX 4090 24 GB11all 4K23.4 GB
RTX 5090 32 GB16all 4K31.0 GB
L40S 48 GB25all 4K44.0 GB
A100 80 GB47all 4K78.2 GB
H100 80 GB45all 4K78.1 GB
RTX PRO 6000 Blackwell 96 GB55all 4K93.8 GB
DGX Spark (GB10) 128 GB unified64all 4K107 GB
H200 141 GB84all 4K138 GB
B200 180 GB109all 4K176 GB
2× RTX 3060 12 GB
tensor parallel
10all 4K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
15all 4K15.4 GB a card
Memory needed at each load
Requests at once4K tokens each
17.6 GB
513.6 GB
818.2 GB
1630.2 GB
3254.4 GB
64103 GB

One card, with vLLM's small-card settings.

From the model card

What openbmb says about MiniCPM-sft

Read the model card

MiniCPM

MiniCPM 是面壁与清华大学自然语言处理实验室共同开源的系列端侧语言大模型,主体语言模型 MiniCPM-2B 仅有 24亿(2.4B)的非词嵌入参数量。

  • 经过 SFT 后,MiniCPM 在公开综合性评测集上,MiniCPM 与 Mistral-7B相近(中文、数学、代码能力更优),整体性能超越 Llama2-13B、MPT-30B、Falcon-40B 等模型。
  • 经过 DPO 后,MiniCPM 在当前最接近用户体感的评测集 MTBench上,MiniCPM-2B 也超越了 Llama2-70B-Chat、Vicuna-33B、Mistral-7B-Instruct-v0.1、Zephyr-7B-alpha 等众多代表性开源大模型。
  • 以 MiniCPM-2B 为基础构建端侧多模态大模型 MiniCPM-V,整体性能在同规模模型中实现最佳,超越基于 Phi-2 构建的现有多模态大模型,在部分评测集上达到与 9.6B Qwen-VL-Chat 相当甚至更好的性能。
  • 经过 Int4 量化后,MiniCPM 可在手机上进行部署推理,流式输出速度略高于人类说话速度。MiniCPM-V 也首次跑通了多模态大模型在手机上的部署。
  • 一张1080/2080可高效参数微调,一张3090/4090可全参数微调,一台机器可持续训练 MiniCPM,二次开发成本较低。

我们将完全开源MiniCPM-2B的模型参数供学术研究和有限商用,以及训练过程中的所有Checkpoint和大部分非专有数据供模型机理研究。

  • 基于MiniCPM-2B的指令微调与人类偏好对MiniCPM-2B-SFT/DPO。
  • 基于MiniCPM-2B的多模态模型MiniCPM-V,能力超越基于Phi-2的同参数级别多模态模型**。**
  • MiniCPM-2B-SFT/DPO的Int4量化版MiniCPM-2B-SFT/DPO-Int4。
  • 基于MLC-LLM、LLMFarm开发的MiniCPM手机端程序,文本及多模态模型均可在手机端进行推理。

MiniCPM is an End-Size LLM developed by ModelBest Inc. and TsinghuaNLP, with only 2.4B parameters excluding embeddings.

  • MiniCPM has very close performance compared with Mistral-7B on open-sourced general benchmarks with better ability on Chinese, Mathmetics and Coding after SFT. The overall performance exceeds Llama2-13B, MPT-30B, Falcon-40B, etc.
  • After DPO, MiniCPM outperforms Llama2-70B-Chat, Vicuna-33B, Mistral-7B-Instruct-v0.1, Zephyr-7B-alpha, etc. on MTBench.
  • MiniCPM-V, based on MiniCPM-2B, achieves the best overall performance among multimodel models of the same scale, surpassing existing multimodal large models built on Phi-2 and achieving performance comparable to or even better than 9.6B Qwen-VL-Chat on some tasks.
  • MiniCPM can be deployed and infer on smartphones, and the speed of streaming output is relatively higher than the verbal speed of human. MiniCPM-V is the first multi-modal models that can be deployed on smartphones.
  • The cost of developing based on MiniCPM is low. Parameter efficient finetuning can be conducted with a single 1080/2080 GPU and full parameter finetuning can be conducted with a 3090/4090 GPU.

We release all model parameters for research and limited commercial use. We also release all the checkpoint during training and most public training data for research on model mechanism.

  • SFT and DPO version based on MiniCPM-2B and human preference: MiniCPM-2B-SFT/DPO
  • The multi-modal model MiniCPM-V based on MiniCPM-2B, which outperforms models with similar size, i.e., Phi-2
  • The INT4 quantized version MiniCPM-2B-SFT/DPO-Int4 based on MiniCPM-2B-SFT/DPO
  • Mobile phone application based on MLC-LLM and LLMFarm. Both language model and multimodel model can conduct inference on smartphones.

评测结果 Evaluation Results

详细的评测结果位于github仓库

Detailed evaluation results are in github repo

注意:我们发现使用Huggingface生成质量略差于vLLM,因此推荐使用vLLM进行测试。我们正在排查原因。

Notice: We discovered that the quality of Huggingface generation is slightly lower than vLLM, thus benchmarking using vLLM is recommended. We are investigating the cause now.

局限性 Limitations

  • 受限于模型规模,模型可能出现幻觉性问题。其中由于DPO模型生成的回复内容更长,更容易出现幻觉。我们也将持续进行MiniCPM模型的迭代改进;

  • 为了保证在学术研究用途上模型的通用性,我们未对模型进行任何身份认同训练。同时由于我们用ShareGPT开源语料作为部分训练数据,模型可能会输出类似GPT系列模型的身份认同信息;

  • 受限于模型规模,模型的输出受到提示词(prompt)的影响较大,可能多次尝试产生不一致的结果;

  • 受限于模型容量,模型的知识记忆较不准确,后续我们将结合RAG方法来增强模型的知识记忆能力。

  • Due to limitations in model size, the model may experience hallucinatory issues. As DPO model tend to generate longer response, hallucinations are more likely to occur. We will also continue to iterate and improve the MiniCPM model.

  • To ensure the universality of the model for academic research purposes, we did not conduct any identity training on the model. Meanwhile, as we use ShareGPT open-source corpus as part of the training data, the model may output identity information similar to the GPT series models.

  • Due to the limitation of model size, the output of the model is greatly influenced by prompt words, which may result in inconsistent results from multiple attempts.

  • Due to limited model capacity, the model's knowledge memory is not accurate. In the future, we will combine the RAG method to enhance the model's knowledge memory ability.

模型下载 Download

HuggingFaceModelScopeWiseModel
sft-bf16sft-bf16sft-bf16
sft-fp32sft-fp32sft-fp32
dpo-bf16dpo-bf16dpo-bf16
dpo-fp16dpo-fp16dpo-fp16
dpo-fp32dpo-fp32dpo-fp32

模型使用 Usage

  • 安装transformers>=4.36.0以及accelerate后,运行以下代码
  • 注意:需要在from_pretrained中明确指明模型的数据类型,否则会引起较大计算误差
  • Run the following code after install transformers>=4.36.0 and accelerate
  • Warning: It is necessary to specify the data type of the model clearly in 'from_pretrained', otherwise large calculation errors will be caused
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
torch.manual_seed(0)

path = 'openbmb/MiniCPM-2B-sft-bf16'
tokenizer = AutoTokenizer.from_pretrained(path)
model = AutoModelForCausalLM.f

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms