Model reference · open weights
MiniCPM4 is an open-weight language model from openbmb. MiniCPM4-8B (BF16) weighs 16.4 GB; the smallest configuration that runs it is 2× RTX 3060 12 GB.
Summary of the openbmb/MiniCPM4-0.5B model card, 2026-10-01. The estimate below is for another build of the family.
What it is
| Released by | openbmb |
|---|---|
| Released | 2025-06-05 |
| Parameters | 434M |
| VRAM | 16.4 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB … RTX 4060 Ti 16 GB 2 smaller cards | — | — | — | |
| RTX 3090 24 GB | 23 | 5 | all 32K | 23.4 GB |
| RTX 4090 24 GB | 23 | 5 | all 32K | 23.4 GB |
| RTX 5090 32 GB | 51 | 12 | all 32K | 31.0 GB |
| L40S 48 GB | 100 | 25 | all 32K | 44.0 GB |
| A100 80 GB | 227 | 56 | all 32K | 78.2 GB |
| H100 80 GB | 214 | 53 | all 32K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 272 | 68 | all 32K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 323 | 80 | all 32K | 107 GB |
| H200 141 GB | 437 | 109 | all 32K | 138 GB |
| B200 180 GB | 576 | 144 | all 32K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel | 20 | 5 | all 32K | 11.6 GB a card |
| 2× RTX 4060 Ti 16 GB tensor parallel | 48 | 12 | all 32K | 15.4 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 17.3 GB | 18.2 GB |
| 5 | 18.4 GB | 22.4 GB |
| 8 | 19.2 GB | 25.7 GB |
| 16 | 21.4 GB | 34.3 GB |
| 32 | 25.7 GB | 51.4 GB |
| 64 | 34.3 GB | 85.8 GB |
One card, with vLLM's small-card settings.
Builds
| Build | Params | Precision | Weights | Smallest setup |
|---|---|---|---|---|
| MiniCPM4-0.5B ↗ | 434M | BF16 | 868 MB | RTX 3060 12 GB |
| MiniCPM4-8B (above) ↗ | 8.2B | BF16 | 16.4 GB | 2× RTX 3060 12 GB |
From the model card
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.
MiniCPM 4 is an extremely efficient edge-side large model that has undergone efficient optimization across four dimensions: model architecture, learning algorithms, training data, and inference systems, achieving ultimate efficiency improvements.
🏗️ Efficient Model Architecture:
🧠 Efficient Learning Algorithms:
📚 High-Quality Training Data:
⚡ Efficient Inference System:
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
torch.manual_seed(0)
path = 'openbmb/MiniCPM4-0.5B'
device = "cuda"
tokenizer = AutoTokenizer.from_pretrained(path)
model = AutoModelForCausalLM.from_pretrained(path, torch_dtype=torch.bfloat16, device_map=device, trust_remote_code=True)
# User can directly use the chat interface
responds, history = model.chat(tokenizer, "Write an article about Artificial Intelligence.", temperature=0.7, top_p=0.7)
print(responds)
# User can also use the generate interface
# messages = [
# {"role": "user", "content": "Write an article about Artificial Intelligence."},
# ]
# prompt_text = tokenizer.apply_chat_template(
# messages,
# tokenize=False,
# add_generation_prompt=True,
# )
# model_inputs = tokenizer([prompt_text], return_tensors="pt").to(device)
# model_outputs = model.generate(
# **model_inputs,
# max_new_tokens=1024,
# top_p=0.7,
# temperature=0.7
# )
# output_token_ids = [
# model_outputs[i][len(model_inputs[i]):] for i in range(len(model_inputs['input_ids']))
# ]
# responses = tokenizer.batch_decode(output_token_ids, skip_special_tokens=True)[0]
# print(responses)
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.