Local & Offline
~7 min readUpdated: December 2026

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

MiniCPM5-15B-A2.5B on-device prefetch-routing MoE serving in Smoke Monkey

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.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

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.

Key Architectural Takeaways
Quick Implementation Exampleminicpm5-local-edge-agent.ts
minicpm5-local-edge-agent.tstypescript
import { createAgent } from '@smoke-monkey/harness';
// Execute private on-device coding tasks via local llama.cpp-omni / Ollama server
const 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);
Video Guides

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 FieldMiniCPM5-15B-A2.5B Verified ValueNotes
Architecture & LayersMiniCPM5MoEForCausalLM, 28 layers, hidden_size = 2048First dense layer (first_k_dense_replace = 1)
Expert Configuration160 routed + 1 shared, num_experts_per_tok = 16, dim = 512routed_scaling_factor = 3.66
Attention & Context32 Q heads, 2 KV heads (head_dim = 128), gated attentionmax_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 & IntelligenceCMO 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.

bash
# 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 99

Use 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.

Google Search Questions & Answers

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 guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness