MiniCPM5-15B-A2.5B: On-Device MoE & Prefetch-Routing Serving

MiniCPM5-15B-A2.5B is an Apache 2.0 15B sparse Mixture-of-Experts model with 2.5B active parameters, 160 routed experts, and a 512K context window. Trained with LES 1.0 native prefetch-routing (+11% expert prediction accuracy), it sustains 52 tok/s unconstrained and 30 tok/s within ~3 GB RAM on an iPhone 18 Pro Max while reaching 123/126 on CMO 2026.
MiniCPM5-15B-A2.5B: On-Device MoE & Prefetch-Routing Serving: MiniCPM5-15B-A2.5B is an Apache 2.0 15B sparse Mixture-of-Experts model with 2.5B active parameters, 160 routed experts, and a 512K context window. Trained with LES 1.0 native prefetch-routing (+11% expert prediction accuracy), it sustains 52 tok/s unconstrained and 30 tok/s within ~3 GB RAM on an iPhone 18 Pro Max while reaching 123/126 on CMO 2026. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.
- 30 tok/s in ~3 GB Device Memory: Native prefetch-routing lifts expert prefetch accuracy by ~11% on LES 1.0, reaching 52 tok/s unconstrained on iPhone 18 Pro Max.
- Ultra-Compact 160-Expert Topology: 28 hidden layers, 2,048 hidden size, 16 routed + 1 shared expert per token (dim 512), and 16:1 GQA (32 Q / 2 KV heads).
- IMO & CMO Gold-Medal Reasoning: Scored 123/126 (official gold medal) at CMO 2026 and 32/42 (cutoff 29) on IMO 2026 self-evaluation, ranking #1 under 20B on AA-Index (11).
- Full Edge Runtime Matrix: Ships BF16, Q3_gud-LCO-GGUF, Q4_K_M-LCO-GGUF (llama.cpp-omni), MLX 4-bit, GPTQ 4-bit, LiteRT-LM, and DSpark draft weights.
import { createAgent } from '@smoke-monkey/harness';// Execute private on-device coding tasks via local llama.cpp-omni / Ollama serverconst agent = createAgent({agentId: 'minicpm5-edge-agent',provider: 'openai-compatible',baseUrl: 'http://127.0.0.1:8080/v1',model: 'openbmb/MiniCPM5-15B-A2.5B-Q4_K_M-LCO-GGUF',workspacePath: process.cwd(),permissions: {read_file: 'allow',write_file: 'allow',run_command: 'ask',},});async function main() {const result = await agent.run('Refactor the local SQLite cache module to use parameterized prepared statements and run unit tests.');console.log('Edge Agent Output:', result.summary);}main().catch(console.error);
Watch: Related Video Guides
MiniCPM5-15B-A2.5B Hit 30 Tokens/s at About 3 GB | Local LLM Deep Dive Dec 3
๐ข Meet MiniCPM5-15B-A2.5B, an open-source foundation model for on-device agents.#minicpm#opensource
What Is MiniCPM5-15B-A2.5B and Why Does Prefetch-Routing Matter on Edge?
MiniCPM5-15B-A2.5B is an open-source 15B sparse Mixture-of-Experts foundation model (MiniCPM5MoEForCausalLM) engineered specifically for private, on-device agent execution. By activating 2.5B parameters per token and training the router jointly for native prefetch-routing, it streams cold experts from flash storage under a strict 3 GB RAM ceiling.
Edge devices often choke on MoE models because unpredictable expert activation forces synchronous SSD/flash stalls. Building on LES 1.0, MiniCPM5 predicts upcoming experts across layers (~11% higher prefetch hit rate), allowing llama.cpp-omni to overlap flash I/O with matrix math and outperform Qwen3.6-35B-A3B while using under half the parameters.
| Metric / Config Field | MiniCPM5-15B-A2.5B Verified Value | Notes |
|---|---|---|
| Architecture & Layers | MiniCPM5MoEForCausalLM, 28 layers, hidden_size = 2048 | First dense layer (first_k_dense_replace = 1) |
| Expert Configuration | 160 routed + 1 shared, num_experts_per_tok = 16, dim = 512 | routed_scaling_factor = 3.66 |
| Attention & Context | 32 Q heads, 2 KV heads (head_dim = 128), gated attention | max_position_embeddings = 524,288 (512K) |
| Mobile Speed (3 GB RAM) | 30 tok/s (52 tok/s unconstrained on iPhone 18 Pro Max) | Tested with LCO-GGUF + prefetch-routing |
| Math & Intelligence | CMO 2026: 123/126 (Gold); IMO 2026: 32; AA-Index: 11 | #1 LLM under 20B on AA-Index |
Deploying LCO-GGUF, MLX 4-Bit, and DSpark Draft Acceleration
OpenBMB ships first-party artifacts for every local runtime: standard GGUF (llama.cpp, Ollama, LM Studio), Q3_gud-LCO-GGUF and Q4_K_M-LCO-GGUF tuned for llama.cpp-omni, MLX 4-bit for Apple Silicon, LiteRT-LM, and a dedicated MiniCPM5-15B-A2.5B-DSpark speculative draft model.
# Run quantized LCO-GGUF locally with llama.cpp-omni and DSpark speculative drafting
huggingface-cli download openbmb/MiniCPM5-15B-A2.5B-Q4_K_M-LCO-GGUF --local-dir ./models/minicpm5-q4
huggingface-cli download openbmb/MiniCPM5-15B-A2.5B-DSpark-GGUF --local-dir ./models/minicpm5-dspark
./llama-server -m ./models/minicpm5-q4/minicpm5-15b-a2.5b-q4_k_m-lco.gguf -md ./models/minicpm5-dspark/minicpm5-dspark.gguf -c 32768 --port 8080 -ngl 99Use LCO Quantizations Over Generic GGUF on Tight-RAM Devices
Standard Q4_K_M GGUF files lack the layout-and-cache optimization (LCO) ordering expected by llama.cpp-omni. When targeting 3-4 GB mobile or thin-laptop envelopes, prefer Q3_gud-LCO-GGUF or Q4_K_M-LCO-GGUF paired with the DSpark draft checkpoint.
Frequently Asked Questions
Q:How fast does MiniCPM5-15B-A2.5B run on mobile hardware?
On an iPhone 18 Pro Max, MiniCPM5-15B-A2.5B achieves 52 tokens/s with no memory cap and sustains 30 tokens/s when constrained to roughly 3 GB of RAM via native prefetch-routing.
Q:Which agent harnesses work out of the box with MiniCPM5-15B-A2.5B?
OpenBMB lists verified compatibility with Codex, Claude Code, DeepSeek Harness, WorkBuddy, and OpenAI-compatible runtimes such as Smoke Monkey Harness via llama.cpp-omni or MLX.
Q:What is MiniCPM5-15B-A2.5B-DSpark?
MiniCPM5-15B-A2.5B-DSpark is the companion lightweight draft model (available in BF16 and GGUF) used for speculative decoding acceleration alongside the 15B target model.
Q:What is the maximum context window of MiniCPM5-15B-A2.5B?
Per config.json, max_position_embeddings is 524,288 tokens (512K) with rope_theta set to 5,000,000 and 16:1 Grouped-Query Attention (32 query heads, 2 KV heads).
Related Alternatives & Comparisons
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.