In this categoryLocal AI · 38
Local AIIntermediate

MiniCPM5-2B: Install and Run OpenBMB's 2B Model That Outscores 4B Rivals

MiniCPM5-2B is OpenBMB's 2.52 billion parameter model, released under Apache 2.0, and it averages 53.9 on OpenBMB's own benchmark set, ahead of Qwen3.5-4B's 51.1 despite having roughly half the parameters. Here is how to install it through vLLM, SGLang or Transformers, what the GGUF builds actually weigh, and what the benchmark table does and doesn't prove.

8 minIntermediate

MiniCPM5-2B is OpenBMB's dense 2 billion parameter language model, released September 6, 2026 under Apache 2.0. On its own benchmark suite it averages 53.9 across reasoning, tool use and agentic tasks, beating every model tested up to 4B parameters, including Qwen3.5-4B's 51.1. It runs through vLLM, SGLang or Transformers, with GGUF, MLX and GPTQ builds for local hardware.

Written by Priya Raghunathan, local-AI hardware reviewer. I check parameter counts, file sizes and benchmark tables against the primary source before recommending an install path, because a model card's own comparison chart is still marketing until someone checks the numbers.

How MiniCPM5-2B compares to similarly sized models

MiniCPM5-2B is the second release in OpenBMB's MiniCPM5 line, following MiniCPM5-1B, and it is built for on-device assistants, coding agents and tool-use workflows rather than as a general chatbot. OpenBMB's own evaluation set compares it against similarly sized open models, LFM2.5-2.6B, Qwen3.5-2B and Gemma-4-E2B-it, plus a set of larger 4B-class models for reference. MiniCPM5-2B leads that comparison on average, and its biggest gaps show up in code, math, long context and agentic tasks rather than general knowledge.

BenchmarkMiniCPM5-2BQwen3.5-4BLFM2.5-2.6B
Average score53.951.133.2
LiveCodeBench v6 (code)69.156.442.1
AIME 2025 (math)86.578.841.9
SWE-bench Verified (coding agent)46.433.66.0
BFCL v4 (tool use)66.656.861.1

"It remains competitive with 4B-class models overall, while showing its advantages over models of comparable size in coding, mathematics, long-context understanding, tool use, and agentic tasks."

OpenBMB, MiniCPM5-2B model card
These are OpenBMB's own numbers
The benchmark table above is reproduced from the model card, and OpenBMB flags a handful of rows as sourced from Artificial Analysis rather than run in-house. We could not find an independent third-party leaderboard entry for MiniCPM5-2B at time of writing, so treat the comparison as a starting point, not a verified ranking.

Specs at a glance

FieldValue
PublisherOpenBMB
Parameters2.52 billion (2,516,756,480)
ArchitectureDense LlamaForCausalLM, 42 layers
Context length131,072 tokens
LanguagesEnglish, Chinese
LicenseApache 2.0
ReleasedSeptember 6, 2026

How much hardware it actually needs

The model card does not publish a VRAM figure directly, but the GGUF repository on Hugging Face lists real file sizes for each quantization, and at 2.52 billion parameters none of them are large.

GGUF buildFile sizeBest for
F164.69 GBFull precision, most accurate
Q8_02.49 GBNear-lossless, still light
Q4_K_M1.45 GBSmallest footprint, modest hardware
A rough VRAM estimate for the BF16 release
Loading the plain BF16 safetensors weights for inference takes roughly 5 GB of VRAM or unified memory, calculated from the 2.52 billion parameter count at 2 bytes per parameter, before the KV cache. That math is ours, not OpenBMB's, so add headroom before you rely on it. See the best GGUF models by VRAM tier guide for how that compares to other sizes.

Install and run it

MiniCPM5-2B uses the standard LlamaForCausalLM architecture, so it loads directly in mainstream inference engines without a custom fork. OpenBMB's own quickstart covers three paths.

zsh - vLLM, OpenAI-compatible server
$pip install "vllm>=0.21"
$vllm serve openbmb/MiniCPM5-2B --port 8000
INFO: Uvicorn running on http://0.0.0.0:8000
$
zsh - SGLang, recommended for tool calling
$pip install "sglang[srt]>=0.5.16"
$python -m sglang.launch_server --model-path openbmb/MiniCPM5-2B --port 30000
$
minicpm5_transformers.py
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "openbmb/MiniCPM5-2B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype="auto",
    device_map="auto",
)
messages = [{"role": "user", "content": "Who are you? Please briefly introduce yourself."}]
inputs = tokenizer.apply_chat_template(
    messages,
    tokenize=True,
    add_generation_prompt=True,
    enable_thinking=True,
    return_dict=True,
    return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Run pip install -U "transformers>=5.6" accelerate torch before the script above. OpenBMB's recommended sampling settings are temperature 1.0 and top_p 0.95.

Tool calling for agents

SGLang is the backend OpenBMB recommends for tool and function calling. MiniCPM5-2B emits XML-style tool calls, and SGLang's built-in minicpm5 parser converts them to OpenAI-compatible tool_calls without extra glue code.

zsh - SGLang with the tool-call parser enabled
$python -m sglang.launch_server --model-path openbmb/MiniCPM5-2B --port 30000 \
$ --tool-call-parser minicpm5
$

The tool-use and agentic scores in the table further up (66.6 on BFCL v4, 46.4 on SWE-bench Verified) are what OpenBMB points to as the reason to route function calling through SGLang rather than a generic parser.

GGUF, MLX and GPTQ if you don't want to run a server

For llama.cpp, Ollama or LM Studio, the quantized files live in the MiniCPM5-2B-GGUF repository, with sizes matching the table above. Apple Silicon users get a dedicated 4-bit MLX build, and there is a 4-bit GPTQ release for GPU setups that prefer that format. OpenBMB also publishes step-by-step cookbooks for each backend on its GitHub repo, which has passed 10,500 stars. If you just want to try it before installing anything, there is a demo Space on Hugging Face.

License and who it's for

Both the model weights and the GitHub repo are Apache 2.0, with no revenue cap and no attribution clause. OpenBMB's own disclaimer is worth repeating: the model has no autonomous intent, its outputs can be wrong or biased, and answers on topics like health, finance or law haven't been reviewed by experts. That makes it a reasonable pick for local assistants, coding agents and tool-use experiments on hardware too small for a 4B model, not a substitute for professional advice.

FAQ

How big is MiniCPM5-2B and what hardware does it need?

It has 2.52 billion parameters. The GGUF build ranges from 1.45 GB at Q4_K_M to 4.69 GB at full F16 precision, small enough to run without a discrete GPU on most current laptops and mini PCs.

Is MiniCPM5-2B actually better than Qwen3.5-4B?

On OpenBMB's own benchmark average, yes: 53.9 versus 51.1, despite Qwen3.5-4B having close to double the parameters. That comparison comes from OpenBMB's model card rather than an independent leaderboard, so it's a strong signal, not the final word.

Can I use MiniCPM5-2B for tool calling and agents?

Yes. OpenBMB recommends SGLang for this, since it ships a built-in parser for the model's XML-style tool calls. The card reports 66.6 on BFCL v4 and 46.4 on SWE-bench Verified, both ahead of the similarly sized models it's compared against.

What license is MiniCPM5-2B released under?

Apache 2.0, for both the Hugging Face model repository and the OpenBMB/MiniCPM GitHub repo. There is no revenue threshold and no required attribution.

Where to go from here

Local models run better with more VRAM. CompareRTX GPUs on Amazonbefore you upgrade.(affiliate link. We may earn a commission at no extra cost. Disclosure)

Watch related tutorials

Free weekly email

Weekly local AI drops

New models, what runs on your hardware, and the guides to set them up. One email a week, unsubscribe any time.

Tags
#minicpm5-2b#minicpm5 2b vram#run minicpm5 locally#minicpm5 vs qwen3.5#openbmb minicpm5