One-line summary
"Runs on a phone" is at least three questions: how much compute per step, how much weight must reside, how much cache must be reserved. Get any one wrong and the deployment fails on real hardware.
Two resident figures, seven times apart
On December 4, two open-weight models made on-device claims that sound adjacent and are not. Qwen4-35B-A3B's 4-bit build needs about 21.9GB resident, and Alibaba says it runs on a 32GB Mac. MiniCPM5-15B-A2.5B holds 30 tokens/s at about 3GB resident and 52 tokens/s on an iPhone with no memory limit.
21.9GB is laptop-and-workstation class. 3GB is phone class. Neither number is "the size of the model." Each is a composite of three different resources under a specific configuration. Separating them is the only way to decide whether your hardware can actually run either.
Ledger one: active parameters set the compute per step
Mixture-of-experts decouples total parameters from per-token compute. Qwen4-35B-A3B has a 35B backbone with about 3B active per token. MiniCPM5-15B-A2.5B has 15B total with about 2.5B active.
| Item | Qwen4-35B-A3B | MiniCPM5-15B-A2.5B |
|---|---|---|
| Backbone total | 35B | 15B |
| Active per token | about 3B (blog: 3.8B) | about 2.5B |
| Routing | 256 experts, 8 + 1 shared | 160 experts, 16 + 1 shared |
| Layers | 40 (3 linear + 1 sparse attention, repeating) | 28 (dense first layer, MoE after) |
| Native context | 1,048,576 tokens | 524,288 tokens |
Active parameters map directly onto FLOPs per step and bytes read per step, so they set the speed ceiling and the power floor. They do not answer whether the model fits. A 35B backbone in 4-bit is still in the mid-teens of gigabytes, and adding the two structures below pushes it to 21.9GB.
Ledger two: embedding tables decide whether it fits
Qwen4's weights total about 56.8B against a 35B name. The extra 22B comes from two non-compute blocks: a per-layer N-gram embedding table of roughly 20.5B parameters, and a 2B multi-token-prediction head.
PLE stores bigram and trigram memories, read per layer in small slices — 512 blocks or 2,048 tokens at a time. It participates in lookup, not matrix multiplication, so it does not need to sit in VRAM and compute every step, but it does need to be reachable. Qwen's approach is to slice it by layer and read on demand; on the MLX/OMLX path, PLE can be offloaded to SSD.
That is where 21.9GB comes from: the backbone plus the embedding rows currently in use plus working cache, not all 57B. It is also why "3B active" alone misleads — what lets a 57B model fit on a 24GB card is the paginated embedding table, not the small active count.
MiniCPM5 has no such table. Its 3GB resident is closer to the conventional shape of "quantized weights plus a modest runtime." The two on-device claims are not the same claim.
Ledger three: KV cache decides how many concurrent requests
Context length is the easiest line item to forget. Qwen4's native window is 1,048,576 tokens; MiniCPM5's is 524,288. Cache size grows with length and multiplies with concurrency.
Three of every four Qwen4 layers are Gated DeltaNet with a fixed-size state; one in four is Qwen sparse attention. Linear layers keep state that barely grows with length, and only the sparse layer stores real KV, so growth is roughly one quarter of the depth times the sparsity ratio. Even so, a fully loaded 1M-token request lands in the gigabytes, which means short conversations are the case that 21.9GB covers.
A rough bill: with k bytes of KV per token in each sparse layer and ten sparse layers, one full-length request costs about 10 × 10^6 × k. At 1KB per token that is about 10GB; at 0.5KB, about 5GB. Multiply by concurrency and single-card capacity is gone. So "1M context" on one GPU means "supported, with low concurrency," and on a phone it means "theoretical ceiling, practically unused."
This holds for every on-device model: longer context, lower concurrency, steeper cost curve.
Ledger four: bandwidth, thermals and battery
The first three ledgers answer "does it fit" and "does it compute." The fourth answers "does it keep computing," and no vendor publishes it — yet it decides whether on-device can host long-running work.
- Storage bandwidth. With PLE on SSD, every layer reads a small slice of embedding rows. SSD random-read latency runs from tens to hundreds of microseconds; across 40 layers that is milliseconds of overhead, and when the hit rate falls, decode speed becomes visibly jittery.
- Thermal throttling. Phones and thin laptops throttle under sustained load. A single short prompt hides it; ten minutes of agent work exposes it.
- Battery. Sparse activation cut energy per token substantially, but long contexts still reread cache. With fixed battery capacity, endurance is a function of context length.
All three point to the same priority: the first job is not chasing a bigger parameter count but balancing resident memory, cache and bandwidth. A stable 3GB plus 32K-context configuration is usually more usable than a 22GB plus 1M-context configuration that throttles under load.
Three reporting conventions that mislead
Disk size versus resident memory. Q4_K_M is 36GB on disk and 21.9GB resident; Q6_K is 51GB on disk; Q8_0 is 59.4GB. Store pages and benchmark write-ups mix these, producing the "my 32GB machine cannot hold a 36GB file" confusion. Resident memory is the bottleneck; disk is only download volume.
Community quants versus vendor weights. Hundreds of quantizations and dozens of fine-tunes appeared on day one. They are different artifacts from the official checkpoint, with their own quality loss and template differences. When results look wrong, first check whether the official weights were used.
First-token latency versus decode speed. Qwen4's 13.66-second first token in the Xhigh setting is thinking time, not network latency. MiniCPM5's 52 tokens/s is decode throughput. One measures time-to-first-word, the other measures how fast the words come. Putting them in one table compares nothing.
How to validate on your own hardware
Published figures are ceilings. On a real device, check four things in order.
- Measure resident peak, not file size. Watch RSS after load and after a long conversation; quantized builds can exceed the estimate once cache allocation grows.
- Measure the long-context curve. Step through 4K, 32K and 128K up to the target length, recording tokens/s and first-token latency, and find the knee. Most on-device models fall off sharply after 32K.
- Measure sustained load. Phones and laptops throttle. Ten minutes and ten seconds are different numbers, and agent tasks are long by nature.
- Measure tool-call stability. On-device agent failures are mostly "called the wrong tool" or "malformed arguments," not "reasoned incorrectly." Run a fixed set of twenty tasks three times and watch the variance.
Where this line of work hits its limits
Both models point at the same shift: on-device competition has moved from "can the parameter count be shrunk" to "how much capability survives inside a fixed memory budget." Three techniques got there — sparse activation for compute, externalized embedding tables for residency, hybrid attention for cache — and all three converged in the second half of 2026.
Each has a ceiling. Sparse activation's efficiency shows up as weakness on long-horizon code work (Qwen4's FrontierCode-AA 2.0 sits at 16.1, roughly 60% of its own larger sibling). Externalized embeddings depend on storage bandwidth, and once SSD is the bottleneck decode becomes uneven. Hybrid attention saves cache, but precise recall over very long contexts still costs.
Impact boundaries
The Qwen4 figures — 35B/3B, 256 experts with 8+1, the 3:1 layer pattern, 1,048,576 tokens, PLE at about 20.5B, MTP at about 2B, 56.8B total, 113.7GB BF16, 36GB/21.9GB Q4_K_M, 59.4GB Q8_0, 22% MTP speedup, 13.66-second first token, FrontierCode 16.1 and DeepSWE 61.8 — come from the Hugging Face blog and model card plus MarkTechPost and University 365 roundups. The MiniCPM5 figures — 15B/2.5B, 28 layers, 160 experts with 16+1, 524,288 tokens, 3GB at 30 tokens/s, 52 tokens/s on iPhone — come from the OpenBMB model page and IT之家. The KV cache arithmetic uses published layer counts and sparsity settings with an assumed per-token byte range; it excludes framework overhead and fragmentation and is an order-of-magnitude estimate, not a measurement. Both models are Apache 2.0 and neither was reproduced locally. This is not a selection recommendation.
