TL;DR

  • openbmb/MiniCPM5-15B-A2.5B is an Apache-2.0 sparse mixture-of-experts language model published on the Hub on November 18, 2026, with the card refreshed on December 3. The card advertises "15B in total and 2.5B activated", a 524,288-token context and a target of on-device agents.
  • I rebuilt the count from the safetensors headers of all six shards. The checkpoint stores 15,002,556,640 values. Of those, 13.59B (90.6%) sit in 4,320 routed experts, and the per-token path touches about 2.50B including the output head. The card's "2.5B activated" holds up.
  • The KV cache is small: 28 layers, 2 KV heads, head dimension 128 gives 28 KiB per token, so the full 524,288-token window costs 14.0 GiB in BF16 for one sequence, or 7.0 GiB in FP8.
  • Published file sizes: BF16 27.9 GiB, Q8_0 14.9 GiB, Q4_K_M 8.5 GiB. A 16 GB GPU holds Q4_K_M plus about 128K tokens of BF16 cache. Single-stream decode on a 4090-class card has a bandwidth ceiling near 200 tokens per second in BF16 and 660 in Q4_K_M.
  • Quality numbers on the card are the vendor's own. I report them as claims and verify only what the files and config can show.

What is MiniCPM5-15B-A2.5B, exactly?

It is a decoder-only MoE with 28 layers and a hidden size of 2,048. Layer 0 is a dense MLP with an intermediate size of 8,192. Layers 1 to 27 each hold 160 routed experts of intermediate size 512, plus one shared expert of the same size. A router picks 16 routed experts per token, so each token sees 16 routed plus 1 shared expert in 27 layers. Attention is grouped-query with 32 query heads and 2 KV heads at head dimension 128. The vocabulary is 130,560 tokens, embeddings are not tied, and RoPE uses a base of 5,000,000 with no scaling entry in config.json.

One detail shows up only in the tensor shapes. The query projection has 8,192 output rows, while the output projection takes 4,096 inputs. That is twice as many, which is consistent with the use_gated_attention flag in the config: each head carries a gate alongside its query. It costs about 0.23B extra parameters across the stack and no extra cache.

The card also lists sibling checkpoints: SFT-only, mid-training and base weights, GGUF, GPTQ, MLX 4-bit, LiteRT, and a draft model for speculative decoding. That is an unusually complete release for people who want to fine-tune or quantize themselves.

How many parameters does it really store and use?

I read the first 8 bytes and the JSON header of each safetensors shard with HTTP range requests, then summed the shape products by tensor family. No weights were downloaded.

https://quickchart.io/chart?w=800&h=420&bkg=white&c=%7B%22type%22%3A%22horizontalBar%22%2C%22data%22%3A%7B%22labels%22%3A%5B%22Routed%20experts%20%2827%20layers%20x%20160%29%22%2C%22Embedding%20table%22%2C%22Output%20head%22%2C%22Attention%20%2828%20layers%29%22%2C%22Shared%20experts%20%2827%20layers%29%22%2C%22Dense%20MLP%20%28layer%200%29%22%2C%22Routers%20and%20norms%22%5D%2C%22datasets%22%3A%5B%7B%22label%22%3A%22Billions%20of%20parameters%22%2C%22data%22%3A%5B13.59%2C0.267%2C0.267%2C0.734%2C0.085%2C0.05%2C0.009%5D%2C%22backgroundColor%22%3A%22%234c6ef5%22%7D%5D%7D%2C%22options%22%3A%7B%22title%22%3A%7B%22display%22%3Atrue%2C%22text%22%3A%22Where%20the%2015.00B%20stored%20parameters%20live%22%7D%2C%22legend%22%3A%7B%22display%22%3Afalse%7D%7D%7D

Component Shape per tensor Values
Routed experts (gate, up, down) 27 layers x 160 x 3 matrices of 512 x 2048 13,589,544,960
Attention (q, k, v, o) 28 layers 734,003,200
Embedding table 130,560 x 2,048 267,386,880
Output head 130,560 x 2,048 267,386,880
Shared experts 27 layers x 3 matrices 84,934,656
Dense MLP, layer 0 3 matrices of 8,192 x 2,048 50,331,648
Routers, norms small about 9M
Total 15,002,556,640

The Hub's own safetensors summary reports the same total, 15,002,556,640 values, with 4,320 of them in F32 (the router correction biases) and the rest in BF16. The file bytes agree: 30,005,121,920 bytes in the index metadata, which is 27.94 GiB.

For the active path, take everything a token must read: attention (0.734B), the dense layer-0 MLP (0.050B), the shared experts (0.085B), the routers and norms (0.009B), 16 of 160 routed experts in each of 27 layers (1.359B), and the output head (0.267B). The sum is 2.505B. The embedding lookup reads a single row, so it adds nothing meaningful. Without the head, the transformer body is 2.24B. Either way, the card's "2.5B activated" is consistent with the files when the head is counted, and that is how most serving engines count a decode step.

The sparsity ratio is therefore about 16.7% of stored values per token. Compare that with the expert layers alone: 16 of 160 is 10%. The always-on parts (attention, head, shared experts) are why the active fraction is higher than the routing fraction.

How much KV cache does a 512K context need?

The cache formula is simple because every one of the 28 layers uses ordinary attention with the same shape:

layers, kv_heads, head_dim = 28, 2, 128 bytes_per_token = layers * kv_heads * head_dim * 2 * 2 # K and V, BF16 print(bytes_per_token) # 28672 bytes = 28 KiB print(bytes_per_token * 524_288 / 2**30) # 14.0 GiB for one sequence 

https://quickchart.io/chart?w=800&h=420&bkg=white&c=%7B%22type%22%3A%22bar%22%2C%22data%22%3A%7B%22labels%22%3A%5B%2232K%22%2C%22128K%22%2C%22256K%22%2C%22512K%20%28max%29%22%5D%2C%22datasets%22%3A%5B%7B%22label%22%3A%22BF16%20KV%20cache%2C%20one%20sequence%20%28GiB%29%22%2C%22data%22%3A%5B0.875%2C3.5%2C7.0%2C14.0%5D%2C%22backgroundColor%22%3A%22%23f59f00%22%7D%2C%7B%22label%22%3A%22FP8%20KV%20cache%20%28GiB%29%22%2C%22data%22%3A%5B0.44%2C1.75%2C3.5%2C7.0%5D%2C%22backgroundColor%22%3A%22%2312b886%22%7D%5D%7D%2C%22options%22%3A%7B%22title%22%3A%7B%22display%22%3Atrue%2C%22text%22%3A%22KV%20cache%20per%20sequence%20vs%20context%20length%20%28formula%20from%20config.json%29%22%7D%7D%7D

Two kv heads is the lever. A model with 8 KV heads and the same depth would need four times as much. The tradeoff is that the cache is real for every layer: there is no linear-attention or sliding-window trick here, so the cost grows linearly with context and with the number of concurrent sequences. At 16 concurrent users each holding 32K tokens, the cache is 14 GiB in BF16, the same as one user at the full 512K.

The card's serving examples start with the default 524,288-token context. On a small GPU you will need to lower --max-model-len, and the card says as much. Quantizing the cache to FP8 halves every number above, though you should test quality on your own long prompts before trusting it.

Which GPU or laptop fits it?

File sizes below come from the Hub listings for the official repositories. Add the cache for the context you serve, plus about 1 to 2 GiB for activations and the CUDA context.

Format File size Fits with 32K cache (0.9 GiB BF16) Fits with 128K cache (3.5 GiB)
BF16 27.9 GiB 32 GB card 40 GB card
Q8_0 GGUF 14.9 GiB 24 GB card 24 GB card
Q4_K_M GGUF 8.5 GiB 12 GB card 16 GB card
GPTQ 4-bit 8.0 GiB 12 GB card 16 GB card
MLX 4-bit 8.6 GiB 16 GB unified memory 16 GB unified memory, tight

For the full 524,288 tokens in BF16 cache, add 14 GiB: Q4_K_M plus full cache is about 22.5 GiB, which fits a 24 GB card, and BF16 weights plus full cache is about 42 GiB, which fits a 48 GB card with little to spare. One 80 GB card holds BF16 weights, a full-length cache and room for several more sequences.

How fast can it decode?

Decode speed for a single stream is usually limited by memory bandwidth, because each new token has to read the active weights once. Taking the 2.50B active values, BF16 means about 5.0 GB per token, and Q4_K_M, scaled by the ratio of file sizes (9.12 GB to 30.03 GB), means about 1.5 GB per token.

Device (published memory bandwidth) BF16 ceiling Q4_K_M ceiling
RTX 4090, 1,008 GB/s about 200 tokens/s about 660 tokens/s
RTX 3060 12 GB, 360 GB/s about 72 tokens/s about 237 tokens/s

These are arithmetic upper bounds for batch size 1 and short context. Real engines lose some to KV reads, kernel launch overhead, routing and dequantization. The card states 52 tokens per second on an iPhone 18 Pro Max with no memory constraint, a figure I cannot reproduce and treat as the vendor's.

Batching changes the picture for a sparse model. At batch size 1 you read 16 experts per layer. With more concurrent tokens, the union of chosen experts grows quickly. If routing were uniform, the expected number of distinct experts touched per layer would be 160 x (1 - 0.9^B).

https://quickchart.io/chart?w=800&h=420&bkg=white&c=%7B%22type%22%3A%22line%22%2C%22data%22%3A%7B%22labels%22%3A%5B%221%22%2C%222%22%2C%224%22%2C%228%22%2C%2216%22%2C%2232%22%2C%2264%22%5D%2C%22datasets%22%3A%5B%7B%22label%22%3A%22Expected%20distinct%20experts%20touched%20per%20layer%20%28of%20160%29%22%2C%22data%22%3A%5B16%2C30.4%2C55.0%2C91.1%2C130.4%2C154.5%2C159.8%5D%2C%22borderColor%22%3A%22%23e03131%22%2C%22fill%22%3Afalse%7D%5D%7D%2C%22options%22%3A%7B%22title%22%3A%7B%22display%22%3Atrue%2C%22text%22%3A%22Illustrative%3A%20uniform%20routing%2C%2016%20of%20160%20experts%20per%20token%2C%20by%20batch%20size%22%7D%7D%7D

At batch 16 that is already 130 of 160 experts, so most of the 13.6B of expert weights are read on every step. That is an illustrative calculation, since real routers are not uniform and often concentrate on a subset. It explains why MoE models shine at batch size 1 on a laptop and give a smaller relative advantage on a busy server, where a dense model of 2.5B would still be much cheaper per step.

The release also ships a speculative-decoding draft model. Its safetensors file is 857,273,722 bytes with about 0.43B values, so it costs under 1 GiB of memory. The card shows how to enable it in vLLM and SGLang.

What does the model card claim about quality?

The card reports a 64.4 average across 36 benchmarks, against 59.9 for Qwen3.6-35B-A3B, 58.7 for Qwen3.5-35B-A3B and 55.1 for Gemma-4-26B-A4B-it among MoE baselines. Among larger dense models in its chart, it lists 63.0 for Qwen3.6-27B and 63.2 for Qwen3.5-27B. It says the model ranks first on 22 of 36 benchmarks against the MoE baselines, and that it earned an official gold-medal certification at the 2026 Chinese Mathematical Olympiad finals with 123 out of 126.

I did not rerun any of these. They are vendor-reported, they come from a chart in the card, and the evaluation settings are described only briefly. Treat them as a reason to test the model on your own tasks, not as a verdict. If you do, the card recommends different sampling for thinking mode (temperature=1.0, top_p=0.95, min_p=0.0) and non-thinking mode (temperature=0.7, top_p=0.80, top_k=20), and notes that llama.cpp defaults to min_p=0.05, which can trigger repetition for this model.

How do I serve it?

The card documents three paths. For vLLM and SGLang you currently need a recent main or nightly build that includes the model-support pull requests it names, and the default launch uses the 524,288-token context. If memory runs out, raise tensor parallelism or reduce the maximum length:

vllm serve openbmb/MiniCPM5-15B-A2.5B \ --served-model-name MiniCPM5-15B-A2.5B \ --max-model-len 131072 --port 8000 

For llama.cpp, the card asks for build b12847 or later and shows -c 8192 as an example context, which you should raise to what your cache budget allows. Remember to set --min-p 0 if you follow the sampling advice. For Apple Silicon there is an MLX 4-bit build, and there is a LiteRT build for phones.

What would I check before relying on it?

  1. Decide the context you will serve. 128K is 3.5 GiB of BF16 cache per sequence, 512K is 14 GiB.
  2. Pick the weight format first, then budget the cache. Q4_K_M at 8.5 GiB is the sweet spot for a 16 GB card.
  3. Test the engine version. Support is recent, and early builds may lack the gated-attention path.
  4. Load-test with your real batch sizes. The sparse advantage shrinks as the batch grows.
  5. Measure tool-calling and agent behavior on your own tasks, since the headline averages are the vendor's.

FAQ

How many parameters does MiniCPM5-15B-A2.5B have?
The checkpoint stores 15,002,556,640 values, of which 13.59B are routed experts. About 2.50B are used per token when the output head is counted.

How big is the KV cache at 512K tokens?
28 KiB per token, so 14.0 GiB in BF16 for one sequence and 7.0 GiB in FP8, because all 28 layers cache 2 KV heads at head dimension 128.

Can I run it on a 12 GB GPU?
Yes with a 4-bit file (8.0 to 8.5 GiB) and a context up to about 32K tokens in BF16 cache, which adds 0.9 GiB.

Is it dense or sparse?
Sparse. Layer 0 is a dense MLP, layers 1 to 27 are MoE with 160 routed experts, 16 active per token, and one shared expert.

What is the license?
Apache 2.0, per the card header.

Sources and further reading

All sizes and counts were read from the Hub on December 5, 2026. Throughput figures are arithmetic ceilings, the batch table is an illustrative uniform-routing model, and cache numbers are formulas from the published config.