MiniCPM5-15B-A2.5B
MiniCPM Text Series
Deployment Cookbook and Agent Skills
MiniCPM5-15B-A2.5B uses a sparse MoE architecture (MiniCPM5MoEForCausalLM / minicpm5_moe) that is natively integrated into Transformers and supported by mainstream inference engines such as vLLM, SGLang and llama.cpp. To help developers quickly reproduce the deployment process, we provide a single-page cookbook, each section paired one-to-one with an Agent Skill.
Cookbook: suited to running steps manually. Agent Skills: suited to letting an agent in a coding agent such as Cursor / Claude Code choose the execution route based on the target backend, hardware, and weight format.
Top-level Skill
MiniCPM5-15B-A2.5B Deploy Skill (automatically routes to transformers · vllm · sglang · llama-cpp · ollama · lmstudio · mlx · vllm-ascend · litert)
After downloading this Skill into your project directory, you can enter the following in a coding agent such as Cursor / Claude Code:
@minicpm5-15b-a2p5b-deploy Start openbmb/MiniCPM5-15B-A2.5B with SGLang on port 8000 with tool calling enabled
The agent reads the top-level Skill, picks the matching sub-Skill and cookbook based on the target backend, hardware, and weight format, then runs the commands and reports the results.
Quantized models are not listed as separate backends; they are covered under the inference backends that can load the corresponding format. For speculative decoding, pair the target with the DSpark draft model in SGLang / vLLM / llama.cpp / LM Studio.
Inference Deployment
| Backend | Models / Scenarios | Cookbook | Agent Skill |
|---|---|---|---|
| Transformers | BF16, local Python inference, GPU + CPU | Get it | Get it |
| vLLM | BF16 / GPTQ INT4 OpenAI server | Get it | Get it |
| SGLang | BF16 / GPTQ INT4 OpenAI server, recommended for tool calling and DSpark | Get it | Get it |
| llama.cpp | GGUF, CPU / Metal / CUDA local inference | Get it | Get it |
| Ollama | GGUF, local on-device runs | Get it | Get it |
| LM Studio | GGUF, desktop app and OpenAI server | Get it | Get it |
| MLX-VLM | MLX INT4, Apple Silicon local inference | Get it | Get it |
| vLLM Ascend | BF16 OpenAI server, Ascend devices | Get it | Get it |
| LiteRT-LM | .litertlm, on-device / desktop / server | Get it | Get it |
Tool Calling and Agent Harnesses
For connecting Claude Code, Codex, DeepSeek Harness, WorkBuddy and other agent harnesses, and for multi-turn parallel tool-call request formats, see the Tool Usage Guide. To run locally on iPhone, see Running MiniCPM5-15B-A2.5B on iOS.
Other Supported Frameworks
Beyond the deployment frameworks listed above, MiniCPM5-15B-A2.5B also supports multi-chip deployment through FlagOS.
FlagOS provides a unified multi-chip AI system software stack, and has published multi-chip builds of MiniCPM5-15B-A2.5B on FlagRelease, including BF16 builds for T-Head, NVIDIA, Huawei Ascend, Hygon, Kunlunxin, MetaX, Moore Threads and Iluvatar CoreX, plus a W4A8 build for ARM CPUs.
View MiniCPM5-15B-A2.5B FlagOS multi-chip builds and full instructions