Model reference · open weights
MiniCPM4 is an open-weight language model from openbmb. MiniCPM4-0.5B (BF16) weighs 868 MB; the smallest configuration that runs it is RTX 3060 12 GB.
Summary of the openbmb/MiniCPM4-0.5B model card, 2026-10-01
What it is
| Released by | openbmb |
|---|---|
| Released | 2025-06-05 |
| Parameters | 434M |
| VRAM | 868 MB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB | 101 | 25 | all 32K | 11.6 GB |
| RTX 4060 Ti 16 GB | 138 | 34 | all 32K | 15.4 GB |
| RTX 3090 24 GB | 218 | 54 | all 32K | 23.4 GB |
| RTX 4090 24 GB | 217 | 54 | all 32K | 23.4 GB |
| RTX 5090 32 GB | 294 | 73 | all 32K | 31.0 GB |
| L40S 48 GB | 422 | 105 | all 32K | 44.0 GB |
| A100 80 GB | 762 | 190 | all 32K | 78.2 GB |
| H100 80 GB | 731 | 182 | all 32K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 887 | 221 | all 32K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 1000+ | 255 | all 32K | 107 GB |
| H200 141 GB | 1000+ | 331 | all 32K | 138 GB |
| B200 180 GB | 1000+ | 425 | all 32K | 176 GB |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 1.5 GB | 1.8 GB |
| 5 | 1.9 GB | 3.4 GB |
| 8 | 2.2 GB | 4.6 GB |
| 16 | 3.0 GB | 7.9 GB |
| 32 | 4.6 GB | 14.3 GB |
| 64 | 7.9 GB | 27.2 GB |
One card, with vLLM's small-card settings.
Builds
| Build | Params | Precision | Weights | Smallest setup |
|---|---|---|---|---|
| MiniCPM4-0.5B (above) ↗ | 434M | BF16 | 868 MB | RTX 3060 12 GB |
| MiniCPM4-8B ↗ | 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.