---
title: MiniCPM5-15B-A2.5B-DSpark
canonical_url: "https://www.modelscope.cn/models/OpenBMB/MiniCPM5-15B-A2.5B-DSpark"
md_url: "https://www.modelscope.cn/models/OpenBMB/MiniCPM5-15B-A2.5B-DSpark.md"
repository: OpenBMB/MiniCPM5-15B-A2.5B-DSpark
last_updated: 2026-12-03
license: apache-2.0
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - qwen3
architectures:
  - Qwen3DSparkModel
base_model_relation: finetune
parameters: 428.6M
tensor_type:
  - BF16
library_name:
  - safetensors
language:
  - en
  - zh
downloads: 16
stars: 0
tags:
  - minicpm
  - minicpm5
  - moe
  - text-generation
  - long-context
  - tool-calling
  - on-device
  - edge-ai
---

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

> MiniCPM5-15B-A2.5B-DSpark - OpenBMB 在 ModelScope 开源的模型。MiniCPM Tech Report | MiniCPM Wiki(Chinese) | GitHub Repo | UltraData | Online Demo

OpenBMB/MiniCPM5-15B-A2.5B-DSpark 是 ModelScope 魔搭社区上的 428.6M 参数text-generation模型，采用 apache-2.0 许可。

- **Repository**: OpenBMB/MiniCPM5-15B-A2.5B-DSpark
- **License**: apache-2.0
- **Tasks**: text-generation
- **Parameters**: 428.6M
- **Tags**: minicpm, minicpm5, moe, text-generation, long-context, tool-calling, on-device, edge-ai
- **Downloads**: 16
- **Stars**: 0
- **Last updated**: 2026-12-03

Source: https://www.modelscope.cn/models/OpenBMB/MiniCPM5-15B-A2.5B-DSpark

---

<div align="center">
<img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM/main/assets/minicpm_logo.png" width="500em" />
</div>

<p align="center">
<a href="https://arxiv.org/pdf/2506.07900" target="_blank">MiniCPM Tech Report</a> |
<a href="https://modelbest.feishu.cn/wiki/UtWxwcERfiRIpIkBOjuc3h9tn1D" target="_blank">MiniCPM Wiki(Chinese)</a> |
<a href="https://github.com/OpenBMB/MiniCPM" target="_blank">GitHub Repo</a> |
<a href="https://openbmb.cn/ultradata/" target="_blank">UltraData</a> |
<a href="https://huggingface.co/spaces/openbmb/MiniCPM5-15B-A2.5B-Demo" target="_blank">Online Demo</a>
</p>

<p align="center">
English |
<a href="https://huggingface.co/openbmb/MiniCPM5-15B-A2.5B-DSpark/blob/main/README-cn.md" target="_blank">中文</a>
</p>

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

`MiniCPM5-15B-A2.5B-DSpark` is a speculative decoding draft model for [MiniCPM5-15B-A2.5B](https://huggingface.co/openbmb/MiniCPM5-15B-A2.5B). Following DeepSeek's [DSpark](https://arxiv.org/abs/2607.05147) architecture, it shares the target model's tokenizer and accelerates autoregressive decoding without altering the output distribution. GGUF weights are available at [MiniCPM5-15B-A2.5B-DSpark-GGUF](https://huggingface.co/openbmb/MiniCPM5-15B-A2.5B-DSpark-GGUF).

## Model Specification

| Property | Value |
|---|---|
| Target model | [MiniCPM5-15B-A2.5B](https://huggingface.co/openbmb/MiniCPM5-15B-A2.5B) |
| Draft layers | 5 |
| Draft parameters | ~0.43B (excluding shared token embeddings and LM head) |
| Draft tokens per forward pass | 7 |
| Target hidden-state layers | `[1, 7, 13, 19, 25]` |
| Checkpoint precision | BF16 |

## Training Recipe

We curate roughly 2M instruction prompts from open-source dialogue corpora such as Open-PerfectBlend and internal mathematics and code datasets. For each prompt, we sample target-model completions (`temperature=1.0, top_p=0.95`) in both thinking and non-thinking modes, for a total of ~4M training examples. The draft model shares the target model's frozen token embeddings and LM head, and is supervised jointly on its intermediate hidden states and output distributions.

| Hyperparameter | Value |
|---|---|
| Training examples | ~4.0M (2.0M thinking, 2.0M non-thinking) |
| Training tokens | ~10.4B |
| Epochs | 10 |
| Max sequence length | 8,192 |
| Optimizer | AdamW |
| Loss objective | CE + L1 + confidence loss |

## Evaluation

The table below reports mean acceptance length, defined as total generated tokens divided by speculative verification steps. Decoding runs until natural EOS termination, with `max_new_tokens` capped at 4,096 in thinking mode and 2,048 in non-thinking mode.

| Domain | Thinking (`T=0`) | Thinking (`T=1.0`) | Non-thinking (`T=0`) | Non-thinking (`T=1.0`) |
|---|---:|---:|---:|---:|
| Math | 4.98 | 4.38 | 5.77 | 5.32 |
| Code | 4.41 | 3.76 | 4.66 | 3.96 |
| General | 3.67 | 2.97 | 2.89 | 2.59 |
| Aggregate | **4.12** | **3.46** | **3.82** | **3.40** |

## Deployment

### SGLang

```bash
python -m sglang.launch_server \
  --model-path openbmb/MiniCPM5-15B-A2.5B \
  --served-model-name MiniCPM5-15B-A2.5B \
  --port 8000 \
  --speculative-algorithm DSPARK \
  --speculative-draft-model-path openbmb/MiniCPM5-15B-A2.5B-DSpark \
  --speculative-dspark-block-size 7
```

### vLLM

```bash
vllm serve openbmb/MiniCPM5-15B-A2.5B \
  --served-model-name MiniCPM5-15B-A2.5B \
  --port 8000 \
  --speculative-config '{"method":"dspark","model":"openbmb/MiniCPM5-15B-A2.5B-DSpark","num_speculative_tokens":7}'
```

## Limitations and Disclaimer

This model has no autonomous intent or legal personhood; its outputs are text generated from statistical patterns and may be inaccurate, biased, or offensive, and may be manipulated by carefully crafted prompts ("jailbreaks") into producing unintended content. Its responses on sensitive topics such as politics, health, finance, and law are not reviewed by experts and should not be treated as professional advice.

This model is provided "**AS IS**", without warranty of any kind, express or implied, and the developers are not liable for any damages arising from its use. Users must employ the model only for lawful, compliant, and ethical purposes, configure their own safeguards, and label AI-generated content where required; deliberate jailbreaking, injection attacks, or inducing harmful output is prohibited, and any such testing is at the user's own risk.

## License

This repository and MiniCPM model weights are released under the [Apache-2.0](https://github.com/OpenBMB/MiniCPM/blob/main/LICENSE) License.

## Citation

Please cite our paper if you find our work valuable:

```bibtex
@article{minicpm4,
  title={Minicpm4: Ultra-efficient llms on end devices},
  author={MiniCPM, Team},
  journal={arXiv preprint arXiv:2506.07900},
  year={2025}
}
```
