Millie 2 runs a compressed 177-billion-parameter Qwen3.8-Flash-Next variant on phones with 12 GB of RAM and supports roughly one million tokens of context, according to arXiv:2611.41874v1 by Ben Krause and collaborators (LLMs For All). The headline numbers: 69.5 GB of compressed weights plus attention state for a million-token session, ~6.7B active parameters per token, and 9.9 tokens per second document Q&A on an iPhone 18 Pro.
Why phone-local long context matters
Cloud assistants already answer short prompts. Personal workflows—email threads, PDF archives, chat exports—often live on the device. Sending a million tokens to an API raises privacy, cost, and offline issues.
Apple's public pattern pairs a small on-device model with a server model for hard queries. Millie 2 attacks the opposite problem: keep a frontier-scale MoE locally by streaming what each token actually needs.
Our Qualcomm 100B-on-phone forecast piece explains why memory bandwidth dominates phone inference. Millie 2 is an existence proof that routing plus prefetch can stretch RAM further than dense loading allows—at the cost of engineering complexity.
Memory budget in plain numbers
The paper's setup for million-token use:
| Item | Size (paper) | Notes |
|---|---|---|
| Compressed main checkpoint | 56.3 GB | Still far above phone RAM |
| KV cache at 1M tokens | 13.1 GB additional | Sparse attention layers grow |
| Total working set | 69.5 GB | Versus 12 GB iPhone RAM |
| Active parameters per token | ~6.7B | MoE plus sparse attention |
The trick is not fitting 69.5 GB simultaneously. It is never needing the whole tensor resident at the moment a layer fires.
Phone on-device assistant concept for Millie 2 streaming a large Qwen model locally
Image: explainx.ai — on-device inference stack.
Expert streaming in one paragraph
Qwen3.8-Flash-Next routes each token through ten of 512 experts per MoE layer. Millie 2 makes two decisions:
- An early predictor nominates experts whose weights should be in RAM or in flight.
- The destination router picks ten experts to execute from the updated resident pool.
Weights live on flash; the model prefetches during earlier-layer compute so the destination layer waits less often. Millie 1.1 used a lighter version of this pattern on a 35B model; Millie 2 scales the idea to 177B text parameters.
Residency-Biased Attention (RBA)
Long context blows up key-value storage in sparse attention layers. Native Qwen Sparse Attention can keep hundreds of eligible blocks ready. Phones cannot.
RBA keeps a compact index of history in RAM, scores which KV blocks matter, and prefers blocks already resident. Missing blocks fetch while earlier layers run. The destination layer can re-score with its query before dot-product attention.
The authors stress test beyond the supported million-token window: repeating a saved prefix, they report 7.6 tokens/s at 2.5M positions on iPhone—useful as an engineering stress result, not a product spec.
Training under phone constraints
Compression alone would gut quality. Millie 2 fixes compressed weight codes and learns shared scales under the same expert-selection constraints used on device. Kernels use packed weights in forward and backward passes so training matches inference routing.
Benchmark tables in the paper claim the compressed model stays close to the parent on reasoning, coding, instruction-following, and agentic suites—verify against your own tasks when weights exist.
Reported iPhone 18 Pro throughput
| Scenario | Tokens per second (paper) |
|---|---|
| Short context generation | 14.1 |
| Million-token document question | 9.9 |
| 2.5M-position RBA stress | 7.6 |
The paper also describes browser and Android agents with on-phone inference—aligning Millie 2 with mobile agent factory tooling themes even though this release is research code.
Architecture refresher on Qwen3.8-Flash-Next
For readers new to the parent:
- 48 text layers in repeating Gated DeltaNet + Qwen Sparse Attention patterns.
- Large n-gram embedding tables push parameter count to ~177B text parameters.
- YaRN extends rotary embeddings to 1,048,576 positions for million-token runs.
- Vision encoder parameters are separate; Millie 2 focus is text on phone.
Connect this to Baidu and Qwen open-weight releases for how Asian labs push long-context MoE into builder hands.
How to try something similar today
Millie 2 weights may not be in your Hugging Face dashboard yet. You can still experiment:
- Quantized MoE on phone using llama.cpp FP8 releases with aggressive expert offloading.
- Document Q&A with smaller models via local RAG patterns while waiting for streaming MoE ports.
- Agent harnesses that page context instead of loading full history—compare to Pete Warden on why AI wants to be local.
When Millie weights ship, rerun your privacy-sensitive evals: legal review threads, medical notes, and offline travel scenarios.
Limits and honest caveats
- Hardware in the paper is iPhone 18 Pro class; Android numbers differ by storage speed.
- Parent model branding (Qwen3.8-Flash-Next) assumes the paper's cited release exists in your registry—confirm naming on Qwen documentation when integrating.
- Active 6.7B per token still demands serious NPUs and thermals; sustained 9.9 tok/s may throttle.
- Agent demos in the paper are research proofs, not app-store products.
What enterprises should plan for
If Millie-style streaming lands in consumer OSes, BYOD assistants could keep million-token corpora local. Security teams should prep:
- Data residency policies that treat on-device context as still corporate if synced.
- Model supply chain review when weights stream from vendor flash images.
- Fallback APIs when thermal limits kick in mid-task.
Teams adopting agents at work can pair this research with corporate AI training so staff know when local beats cloud.
Gated DeltaNet versus sparse attention in the stack
The parent model alternates Gated DeltaNet layers with Qwen Sparse Attention (QSA). DeltaNet layers keep fixed-size recurrent state during decode, so their memory does not grow with every new token. QSA layers store per-token keys and values for the positions they might attend to, so million-token runs concentrate KV growth in a subset of layers.
Millie 2 optimization targets that bimodal memory curve: stream MoE experts everywhere, but apply RBA where history blocks would otherwise require tens of gigabytes of KV storage.
If you deploy hybrid attention models in production, measure which layers dominate KV bytes before buying uniform memory upgrades.
Log-parameterized scale training (why quality recovers)
Weight compression usually damages benchmark scores. Millie 2 keeps compressed codes fixed and learns shared scales while enforcing the same expert routing mask used on phone inference. Training kernels read packed weights during backward passes, so gradients respect on-device sparsity.
That recipe matters for anyone distilling MoE models: you cannot tune in dense mode and expect sparse phone routing to match.
Comparison table: phone LLM strategies
| Approach | Example in ecosystem | Strength | Weakness |
|---|---|---|---|
| Small dense on device | Apple ~3B local tier | Simple runtime | Limited reasoning |
| Cloud escalation | Apple server model | Frontier quality | Privacy and offline |
| Streaming giant MoE | Millie 2 paper | Long context locally | Engineering complexity |
| NPV forecast marketing | Qualcomm 100B claim posts | Sets expectations | Often unverified hardware |
Use the table when product managers ask why not just call GPT.
Benchmark interpretation checklist
Before repeating 9.9 tokens per second:
- Confirm device model (iPhone 18 Pro in the paper).
- Note compressed checkpoint size (56.3 GB) still on storage, not RAM.
- Separate million-token document QA from open-ended chat—prefill dominates long prompts.
- Wait for third-party replication once artifacts ship.
Related reading
- Qualcomm 100B parameters on phones forecast
- Mobile AI Factory on-device agents
- llama.cpp 0.9.0 FP8 and multi-node notes
- TensorFold local inference API
- ARM Edge AI Wonderland offline translation
- Pete Warden on local AI latency
Flash storage bandwidth as the hidden variable
Streaming MoE assumes fast random reads from phone storage. If NVMe-class internal flash is busy with photos or OS paging, prefetch windows shrink and tokens per second fall below paper numbers.
Teams porting Millie ideas should benchmark:
- Cold start after reboot versus warm expert caches
- Thermal throttling after five minutes of 9+ tok/s generation
- Battery draw during million-token prefill
Those measurements rarely appear in research PDFs but decide shipping versus demo.
Local on-device AI stack for long-context phone inference research
Paper lineage: Millie 1.1 to Millie 2
The authors cite Millie 1.1 running 35B parameters on iPhone by keeping some weights on storage. Millie 2 is not a tweak; it adds RBA, larger Qwen parent, and scale training under routing masks.
Readers following on-device research should watch whether LLMs For All releases kernels or checkpoints separately from the arXiv drop. Until then, treat numbers as peer-preview, not App Store marketing.
Enterprise takeaway
Even if Millie 2 never ships on employees phones, it proves million-token corporate archives could stay on-device for regulated industries. Pair the paper with your MDM policies: decide which handsets may hold 56 GB class model bundles and whether wifi-only sync rules apply during prefill jobs that hammer flash IO. Security reviews should ask whether offline long-context assistants change DLP assumptions when context never leaves the handset at all during inference.
Sources: Millie 2 arXiv:2611.41874v1; Qwen3.8-Flash-Next parent architecture references in the same paper.
