# openbmb/MiniCPM5-15B-A2.5B — vLLM serving recipe

> A 15B-parameter mixture-of-experts language model with about 2.5B active non-embedding parameters per token.

Configuration: hardware `h200` (8× H200) · strategy `single_node_tp` (Tensor Parallel) · variant `default` (BF16) · features none

- Interactive page: https://recipes.vllm.ai/openbmb/MiniCPM5-15B-A2.5B
- This configuration as JSON: https://recipes.vllm.ai/openbmb/MiniCPM5-15B-A2.5B.json?hardware=h200

The commands below were rendered for exactly this configuration and take precedence over any example in the guide.

## Other configurations

Change the query string (the same parameters as the page URL) and fetch this URL again. Unknown or incompatible values fall back to the recipe default, so check the Configuration line.

- `hardware`: `h100`, `h200`, `b200`, `gb200`, `b300`, `gb300`, `mi300x`, `mi325x`, `mi350x`, `mi355x`
- `variant`: `default`, `int4`
- `strategy`: `single_node_tp`, `single_node_tep` (multi-node strategies also need `nodes=<n>`)
- `features`: comma-separated list of `tool_calling`, `spec_decoding` (default: none). Use `features=none` to turn them all off.

## Install

Requires vLLM >= 0.36.0 (not released yet — nightly wheel).

vLLM 0.36.0 isn't released yet — nightly required. Nightly wheels are built for CUDA 13.2 (cu132) and need an NVIDIA driver that supports it.

```bash
uv venv
source .venv/bin/activate
uv pip install -U vllm --torch-backend=auto \
  --extra-index-url https://wheels.vllm.ai/nightly
```

## Serve

```bash
vllm serve openbmb/MiniCPM5-15B-A2.5B \
  --dtype bfloat16 \
  --max-model-len 32768 \
  --tensor-parallel-size 1
```

## Guide

> Background reference. Commands in it are examples and may target another configuration — use the Serve section above.

### Overview

MiniCPM5-15B-A2.5B is a Mixture-of-Experts language model from OpenBMB.
The [BF16 checkpoint](https://huggingface.co/openbmb/MiniCPM5-15B-A2.5B)
and [GPTQ INT4 checkpoint](https://huggingface.co/openbmb/MiniCPM5-15B-A2.5B-GPTQ)
use the native vLLM model implementation. vLLM reads the quantization
settings from the INT4 checkpoint and selects the kernels for the hardware.

### Context length and parallelism

The model configuration allows up to 524,288 tokens. This recipe sets a
32,768-token limit as a starting point. The capacity available for longer
requests depends on GPU memory and concurrency. For tensor plus expert
parallelism, the strategy uses all GPUs in the selected hardware profile.
BF16 and INT4 were checked with expert parallelism on two and four
NVIDIA H800 GPUs.

### Tool calling

Tool Calling is off by default. Enable it for Chat Completions requests
that provide a `tools` list. The command builder adds
`--enable-auto-tool-choice` and `--tool-call-parser minicpm5`. The built-in
parser returns the model's XML tool calls as structured `tool_calls`.

### References

- [BF16 model card](https://huggingface.co/openbmb/MiniCPM5-15B-A2.5B)
- [GPTQ INT4 model card](https://huggingface.co/openbmb/MiniCPM5-15B-A2.5B-GPTQ)
- [DSpark draft checkpoint](https://huggingface.co/openbmb/MiniCPM5-15B-A2.5B-DSpark)
