Text / openbmb

MiniCPM5 2B

MiniCPM5 2B from openbmb. Source-based hardware guidance from its published configuration.

EstimatedRepository opened Sep 6, 2026Source checked 9/23/2026Version: 12a3808a
LOCALRENTED GPUOPEN WEIGHTS

At a glance

Parameters
2.52B
Architecture
llama
Context length
131,072
License
apache-2.0
Software
llama.cpp, SGLang, vLLM, Transformers
View the model source
MY HARDWARE

Will it run on your machine?

Save your machine to see a personalized rating and its reasoning.

Add my hardware

Ways to run it

llama.cpp · Windows, macOS, Linux

Repository-specific command in publisher documentation; confirm dependencies and hardware in the source.

llama-server -m MiniCPM5-2B-F16.gguf -a MiniCPM5-2B --port 8080 -ngl 99 -c 8192 --jinja
Official instructions

SGLang · Linux

Repository-specific command in publisher documentation; confirm dependencies and hardware in the source.

python -m sglang.launch_server --model-path openbmb/MiniCPM5-2B --port 30000
Official instructions

vLLM · Linux

Repository-specific command in publisher documentation; confirm dependencies and hardware in the source.

vllm serve openbmb/MiniCPM5-2B --port 8000
Official instructions

Transformers · See official guide

Repository-specific command in publisher documentation; confirm dependencies and hardware in the source.

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))
Official instructions

Explore its uses

SAFETENSORSTEXT-GENERATION

Keep exploring

MiniCPM5 2B: hardware, VRAM & setup | YouRunAI