openbmb/MiniCPM5-2B-DSpark

Model

<div align="center">

34

stars

4

commits

1

linked in READMEs

Sep 6, 2026

updated

custom_code
edge-ai
endpoints_compatible
llama
long-context
minicpm
minicpm5
on-device
qwen3
safetensors
text-generation
text-generation-inference
tool-calling
transformers

README

MiniCPM Tech Report | MiniCPM Wiki(Chinese) | GitHub Repo | UltraData | Online Demo

English | 中文

MiniCPM5-2B-DSpark

MiniCPM5-2B-DSpark is a DSpark draft checkpoint trained for exact pairing with MiniCPM5-2B and its tokenizer.

Model Specification

PropertyValue
Target modelMiniCPM5-2B
Draft layers5
Draft parameters323,776,001
Draft tokens per forward pass7
Target hidden-state layers[1, 10, 20, 30, 39]
Checkpoint precisionBF16

Training Recipe

Training responses were generated by MiniCPM5-2B from a mixture of general-domain, mathematics, and code prompts.

SettingValue
Training sequences1,959,525
Training tokens7,054,154,509
Epochs6
Maximum sequence length12,288
OptimizerAdamW
ObjectiveCE + L1 + confidence loss

Evaluation

Acceptance length is defined as the total number of completion tokens divided by the total number of speculative verification steps. Evaluation uses natural EOS termination and max_new_tokens=4096.

DomainT=0T=1.0
Math6.04964.6050
Code6.11064.4381
General4.15853.0997
Aggregate5.51744.0514

Usage with SGLang

python -m sglang.launch_server \
  --model-path <target-model-path> \
  --trust-remote-code \
  --speculative-algorithm DSPARK \
  --speculative-draft-model-path <draft-model-path> \
  --speculative-dspark-block-size 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 License.

Citation

Please cite our paper if you find our work valuable:

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

Contributors

BigDong

2 commits

funmaker

2 commits

openbmb/MiniCPM5-2B-DSpark

Model

<div align="center">

34

stars

4

commits

1

linked in READMEs

Sep 6, 2026

updated

custom_code
edge-ai
endpoints_compatible
llama
long-context
minicpm
minicpm5
on-device
qwen3
safetensors
text-generation
text-generation-inference
tool-calling
transformers

README

MiniCPM Tech Report | MiniCPM Wiki(Chinese) | GitHub Repo | UltraData | Online Demo

English | 中文

MiniCPM5-2B-DSpark

MiniCPM5-2B-DSpark is a DSpark draft checkpoint trained for exact pairing with MiniCPM5-2B and its tokenizer.

Model Specification

PropertyValue
Target modelMiniCPM5-2B
Draft layers5
Draft parameters323,776,001
Draft tokens per forward pass7
Target hidden-state layers[1, 10, 20, 30, 39]
Checkpoint precisionBF16

Training Recipe

Training responses were generated by MiniCPM5-2B from a mixture of general-domain, mathematics, and code prompts.

SettingValue
Training sequences1,959,525
Training tokens7,054,154,509
Epochs6
Maximum sequence length12,288
OptimizerAdamW
ObjectiveCE + L1 + confidence loss

Evaluation

Acceptance length is defined as the total number of completion tokens divided by the total number of speculative verification steps. Evaluation uses natural EOS termination and max_new_tokens=4096.

DomainT=0T=1.0
Math6.04964.6050
Code6.11064.4381
General4.15853.0997
Aggregate5.51744.0514

Usage with SGLang

python -m sglang.launch_server \
  --model-path <target-model-path> \
  --trust-remote-code \
  --speculative-algorithm DSPARK \
  --speculative-draft-model-path <draft-model-path> \
  --speculative-dspark-block-size 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 License.

Citation

Please cite our paper if you find our work valuable:

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

Contributors

BigDong

2 commits

funmaker

2 commits