---
title: MiniCPM5-15B-A2.5B-NPU2
canonical_url: "https://www.modelscope.cn/models/amd/MiniCPM5-15B-A2.5B-NPU2"
md_url: "https://www.modelscope.cn/models/amd/MiniCPM5-15B-A2.5B-NPU2.md"
repository: amd/MiniCPM5-15B-A2.5B-NPU2
last_updated: 2026-12-04
license: apache-2.0
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - minicpm5_moe
architectures:
  - MiniCPM5MoEForCausalLM
base_model:
  - openbmb/MiniCPM5-15B-A2.5B
base_model_relation: finetune
library_name:
  - other
frameworks:
  - other
downloads: 0
stars: 0
tags:
  - conversational
  - moe
  - tool-calling
  - npu
  - fastflowlm
  - q4nx
---

# MiniCPM5-15B-A2.5B-NPU2

> MiniCPM5-15B-A2.5B-NPU2 - amd 在 ModelScope 开源的模型。MiniCPM5-15B-A2.5B-NPU2

amd/MiniCPM5-15B-A2.5B-NPU2 是 ModelScope 魔搭社区上的text-generation模型，采用 apache-2.0 许可，基于 openbmb/MiniCPM5-15B-A2.5B 构建。

- **Repository**: amd/MiniCPM5-15B-A2.5B-NPU2
- **License**: apache-2.0
- **Tasks**: text-generation
- **Base model**: openbmb/MiniCPM5-15B-A2.5B
- **Tags**: conversational, moe, tool-calling, npu, fastflowlm, q4nx
- **Downloads**: 0
- **Stars**: 0
- **Last updated**: 2026-12-04

Source: https://www.modelscope.cn/models/amd/MiniCPM5-15B-A2.5B-NPU2

---

# MiniCPM5-15B-A2.5B-NPU2

[MiniCPM5-15B-A2.5B](https://huggingface.co/openbmb/MiniCPM5-15B-A2.5B) from OpenBMB, quantized for the AMD XDNA 2
NPU and run by [FastFlowLM](https://github.com/FastFlowLM/FastFlowLM) (`flm`). The files are in FLM's `q4nx` format
and are not loadable by other runtimes.

- Base model: [openbmb/MiniCPM5-15B-A2.5B](https://huggingface.co/openbmb/MiniCPM5-15B-A2.5B) (15B parameters,
  about 2.5B active per token; 28 layers, the first dense and the other 27 with 160 routed experts of which 16 are
  active plus one shared expert; grouped-query attention with an output gate; 130,560-token vocabulary)
- License: Apache 2.0, the same as the base model
- Text in, text out; thinking (on by default, as in the model's chat template) can be turned off per request;
  tool calling
- Context: 128K tokens (the default)
- Requires FLM >= v1.0.15 (the first release that supports this model)
- Run: `flm run minicpm5:15b-a2.5b` or `flm serve minicpm5:15b-a2.5b`

## Quantization

| Weights | Format |
| :--- | :--- |
| Attention (q, k, v, output gate, o), dense FFN, routed and shared experts | Q4_K (4.5 bits per weight) |
| lm_head | Q8_0 |
| Token embedding | BF16 |
| Router | BF16 (expert bias FP32) |
| Norms | BF16 |

The package is 9.2 GB. Prefill and decode, including the lm_head, run on the NPU.

### Importance matrix from bartowski

The Q4_K scales and minima were chosen with an **importance matrix (imatrix) from
[bartowski](https://huggingface.co/bartowski)**, the file `MiniCPM5-15B-A2.5B-imatrix.gguf` in
[bartowski/MiniCPM5-15B-A2.5B-GGUF](https://huggingface.co/bartowski/MiniCPM5-15B-A2.5B-GGUF), computed on bartowski's
calibration set (`MiniCPM5-15B-A2.5B-calibration-v6.txt` in the same repository). We quantized bartowski's BF16 GGUF
of the model with it (every matrix Q4_K, the lm_head Q8_0, the embedding BF16). We did not compute the imatrix and we
thank bartowski for publishing it.

The imatrix only changes how each block's scale and minimum are rounded. The format, the file size and the speed are
the same as an unweighted Q4_K quantization; with every matrix in Q4_K, every layer runs on the fast Q4_K NPU kernels.

Measured against the BF16 model on 100 × 512 tokens (mean KL divergence of the next-token distribution, lower is
better):

| Weights | WikiText-2 | Code |
| :--- | ---: | ---: |
| Official Q4_K_M GGUF (mixed Q4_K / Q6_K) | 0.053 | 0.032 |
| All Q4_K, no importance matrix | 0.189 | 0.095 |
| **All Q4_K with the bartowski imatrix (this package)** | **0.097** | **0.052** |

On the NPU (bf16 compute) the logits stay close to a CPU run of the same Q4_K weights: KL divergence 0.005 to 0.020
on short chat, multi-turn, math, code, tool-call and 2.7K-token document prompts.

## Speed

AMD Ryzen AI MAX+ PRO 395 (Strix Halo, 128 GB), FLM v1.0.15, default NPU power mode (Performance), `flm bench`:

| Context | 1K | 2K | 4K | 8K | 16K | 32K |
| :--- | ---: | ---: | ---: | ---: | ---: | ---: |
| Prefill (tokens/s) | 1032 | 1267 | 1331 | 1132 | 867 | 594 |
| Decode (tokens/s) | 24.9 | 24.2 | 22.7 | 20.2 | 16.7 | 12.4 |

Memory: about 16 GB once loaded at the default 128K context, up to about 21.5 GB while it holds a full 128K prompt.

## Credits

- Model: OpenBMB (Apache 2.0)
- Importance matrix and calibration set: bartowski
- Quantization and NPU runtime: FastFlowLM
