One-line summary
Same day, same on-device label, one needs a 24GB GPU and the other needs 3GB of memory. The difference is not parameter count — it is embedding tables and context strategy.
Main table
| Model | Publisher | Date | Total / active | Context | Licence | Weight size |
|---|---|---|---|---|---|---|
| Qwen4-35B-A3B | Alibaba Qwen | 2026-12-04 | 35B backbone / 3B active (plus 20.5B PLE and 2B MTP, about 56.8B total) | 1,048,576 tokens native | Apache 2.0 | about 113.7GB BF16, 33 shards |
| MiniCPM5-15B-A2.5B | ModelBest / OpenBMB | 2026-12-04 | 15B total / 2.5B active | 524,288 tokens by default | Apache 2.0 | exact size not published; BF16, GGUF, MLX, GPTQ, LiteRT builds |
Architecture comparison
| Dimension | Qwen4-35B-A3B | MiniCPM5-15B-A2.5B |
|---|---|---|
| Layers | 40 | 28 |
| Attention | 3 Gated DeltaNet + 1 Qwen sparse attention, repeating | details not published; 32 query heads, 2 KV heads |
| Expert routing | 256 experts, 8 + 1 shared per token | 160 experts, 16 + 1 shared per token (first layer dense MLP) |
| Hidden dimension | not published | 2,048 |
| Special structure | per-layer N-gram embedding table (PLE) about 20.5B; MTP head about 2B | native prefetch routing on top of LES 1.0; DSpark draft model |
| Input modalities | text, image, video (2 fps frame sampling by default) | text (on-device agent foundation) |
| Reasoning control | reasoning_effort in four levels: xhigh, high, low, off | thinking mode toggle |
Quantization and memory thresholds
| Version | Disk | Resident | Device |
|---|---|---|---|
| Qwen4 BF16 | about 113.7GB | multi-GPU or large-memory server | production |
| Qwen4 FP8 | not published | — | single node, multiple GPUs |
| Qwen4 Q8_0 | about 59.4GB | — | 64GB workstation |
| Qwen4 Q6_K | about 51.0GB | — | 48GB workstation |
| Qwen4 Q4_K_M | about 36.0GB | about 21.9GB | 24GB GPU or 32GB Mac |
| MiniCPM5 quantized | exact size not published | about 3GB in routine use | phone, tablet, thin laptop |
For Qwen4's 4-bit range, third-party roundups give 20.5 to 24.7GB, while the official statement is "runs on a 32GB Mac." The two correspond to different quantizers and context lengths; actual usage grows with length.
Speed and device measurements
| Metric | Value | Condition |
|---|---|---|
| Qwen4 first-token latency | about 13.66s | Xhigh reasoning setting; low and off are much shorter |
| Qwen4 MTP speedup | +22% generation | Apple M5, Q4 weights, 3 draft tokens |
| MiniCPM5 decode | 52 tokens/s | iPhone 18 Pro Max, no memory limit |
| MiniCPM5 decode | 30 tokens/s | about 3GB resident with native prefetch routing |
These two groups are not comparable: one is time-to-first-token thinking latency, the other steady-state decode throughput, on different devices, quantizers and context lengths.
Benchmark comparison
| Benchmark | Qwen4-35B-A3B | MiniCPM5-15B-A2.5B | Note |
|---|---|---|---|
| AA intelligence index | 25 (Xhigh) | 11 | Qwen4 reference: open-weight 40B–150B median 9; Qwen4-Max 43 |
| 36-benchmark average | — | 64.4 | Qwen3.6-35B-A3B 59.9; Gemma-4-26B-A4B-it 55.1 |
| DeepSWE v1.1 | 61.8 | — | Qwen3.8-Flash-Next 58.7 |
| FrontierCode-AA 2.0 | 16.1 | — | Qwen3.8-Flash-Next 27.1 (weak spot) |
| SWE-bench Verified | — | 68.4 | vendor model card |
| Terminal-Bench v2.1 | — | 50.2 | vendor model card |
| AIME 2025 | — | 97.3 | vendor model card |
| CMO 2026 final | — | 123 / 126, certified gold | same-session test with human contestants |
| IMO 2026 self-test | — | 32 points | gold line 29 |
The strengths do not overlap. Qwen4 leads on the general intelligence index and some code benchmarks; MiniCPM5 is stronger on math reasoning and on-device agent benchmarks. Comparing raw numbers across different benchmarks measures nothing.
Pricing
| Item | Price |
|---|---|
| Qwen4-35B-A3B (Qwen Cloud) | 0.06 USD per million input tokens, 0.36 per million output |
| Qwen4-35B-A3B (Featherless on Hugging Face) | 0.05 USD per million input, 0.32 per million output |
| MiniCPM5-15B-A2.5B | weights free under Apache 2.0; hosted API pricing not published on the model card |
Deployment ecosystem
| Item | Qwen4-35B-A3B | MiniCPM5-15B-A2.5B |
|---|---|---|
| Day-one frameworks | transformers, llama.cpp, vLLM, SGLang, MLX, Ollama, LM Studio, Unsloth, LiteRT-LM | vLLM, SGLang, llama.cpp (per official docs) |
| Weight sources | Hugging Face, ModelScope | Hugging Face, ModelScope |
| Bundled tooling | MTP speculative decoding; PLE offload to SSD on the OMLX path | DSpark draft model; deployment and fine-tuning Agent Skills |
| Agent frameworks | not specifically stated | OpenCode, Codex, Claude Code, DeepSeek Harness and others |
Selection table
| Your situation | First choice | Why | Verify first |
|---|---|---|---|
| Offline phone agent, document summaries | MiniCPM5 | about 3GB resident, 30–52 tokens/s, runs without network | quantization format, background policy, tool-call stability |
| Single 24GB GPU, long-document and codebase Q&A | Qwen4-35B-A3B (4-bit) | 3B active with 1M context, fits one card | cache usage and the slow-down curve at long context |
| Multi-GPU, general capability | Qwen4-35B-A3B (BF16/FP8) | 113.7GB splits cleanly, FP8 separately released | interconnect bandwidth, sharding plan |
| Wiring into coding agent frameworks | MiniCPM5 | ships deployment and fine-tuning Skills, multiple documented integrations | framework versions, harness differences |
| Math and competition-style reasoning only | MiniCPM5 | CMO gold, IMO self-test 32 | compute cost of test-time scaling |
| Long-horizon code work | neither is good | Qwen4 FrontierCode 16.1; MiniCPM5 not evaluated | consider larger closed models |
The most misread row is the last: both models are weakest on long-horizon, precise code editing. If that dominates the workload, the savings from on-device are eaten by repeated correction.
Caveats and uncertainty
- Qwen4's "35B" refers to the language backbone; the repository totals about 56.8B (Hub shows 57B). Do not size VRAM from 35B.
- Qwen4's active count appears as both 3B and 3.8B, from the model card and the Hugging Face blog respectively; the difference is whether MTP and some shared structure are counted.
- Qwen4 pricing appears as 0.06/0.36 and 0.05/0.32 from Qwen Cloud and a third-party host. The billed figure is what counts.
- MiniCPM5's "3GB" is a routine resident magnitude, not weight file size; the corresponding quantization level is not stated.
- The iPhone measurements are vendor figures with no disclosure of quantizer, thermal state or duration.
- Most benchmark scores are vendor-reported or third-party curated and were not independently reproduced; agentic code results depend on the harness and cannot be compared across conditions.
- Both models are Apache 2.0 with no acceptable-use policy attached; compliance is the deployer's responsibility.
- No local runs were performed. This is not a procurement recommendation.
