explainx.ai350K+ learn from us
TrendingAI News TodayExplainx for Business
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

follow on google

Add explainx.ai as a preferred source

corporate training

support@explainx.ai

get started

Find your pathTake Free Evaluation

community

Join the community

learn

mind: share how you thinkpathways — start freeworkshopsbootcampscoursescompare Explainxcertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcpestacktoolsmdx readeragentsllmsdesignsdictionarypeopleagi trackerfelony benchranks

company

aboutvisionmissionteaminstructorsteach on explainxpartnershipscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource libraryfor LLMsexplainx.ai kids

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportcontactprivacytermsdata rightshow we create contentsubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

explainx.ai

On this page

  • Why phone-local long context matters
  • Memory budget in plain numbers
  • Expert streaming in one paragraph
  • Residency-Biased Attention (RBA)
  • Training under phone constraints
  • Reported iPhone 18 Pro throughput
  • Architecture refresher on Qwen3.8-Flash-Next
  • How to try something similar today
  • Limits and honest caveats
  • What enterprises should plan for
  • Gated DeltaNet versus sparse attention in the stack
  • Log-parameterized scale training (why quality recovers)
  • Comparison table: phone LLM strategies
  • Benchmark interpretation checklist
  • Related reading
  • Flash storage bandwidth as the hidden variable
  • Paper lineage: Millie 1.1 to Millie 2
  • Enterprise takeaway
← Back to blog

explainx / blog

Millie 2: 177B Parameters on a Phone at Million-Token Context

Local AI, On-Device, Research, Qwen, MoE

Part of Local AI

Millie 2 adapts Qwen3.8-Flash-Next for phones: 177B parameters, 1M-token context, 14.1 tok/s short and 9.9 tok/s at 1M on iPhone 18 Pro with 12 GB RAM. RBA and expert streaming explained.

Dec 1, 2026·8 min read·Yash Thakker
add explainx.ai
go deep
Millie 2: 177B Parameters on a Phone at Million-Token Context

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.

Daily briefFrom Yash · 350K+ students taught

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

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:

table · 3 cols
ItemSize (paper)Notes
Compressed main checkpoint56.3 GBStill far above phone RAM
KV cache at 1M tokens13.1 GB additionalSparse attention layers grow
Total working set69.5 GBVersus 12 GB iPhone RAM
Active parameters per token~6.7BMoE 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 locallyPhone 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:

  1. An early predictor nominates experts whose weights should be in RAM or in flight.
  2. 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

table · 2 cols
ScenarioTokens per second (paper)
Short context generation14.1
Million-token document question9.9
2.5M-position RBA stress7.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:

  1. Quantized MoE on phone using llama.cpp FP8 releases with aggressive expert offloading.
  2. Document Q&A with smaller models via local RAG patterns while waiting for streaming MoE ports.
  3. 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

table · 4 cols
ApproachExample in ecosystemStrengthWeakness
Small dense on deviceApple ~3B local tierSimple runtimeLimited reasoning
Cloud escalationApple server modelFrontier qualityPrivacy and offline
Streaming giant MoEMillie 2 paperLong context locallyEngineering complexity
NPV forecast marketingQualcomm 100B claim postsSets expectationsOften unverified hardware

Use the table when product managers ask why not just call GPT.

Benchmark interpretation checklist

Before repeating 9.9 tokens per second:

  1. Confirm device model (iPhone 18 Pro in the paper).
  2. Note compressed checkpoint size (56.3 GB) still on storage, not RAM.
  3. Separate million-token document QA from open-ended chat—prefill dominates long prompts.
  4. 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 researchLocal 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.

Spotted something out of date? Let us know.
Daily briefFrom Yash · 350K+ students taught

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

  • ✓ Free
  • ✓ One email a day, no spam
  • ✓ Unsubscribe anytime
Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

View Yash Thakker in People in AI →

Related posts

Nov 13, 2026

Goodfire Neurons as an Interpretable Basis: 2.9% Loss After Ablating 92% of MoE Units

On November 10, 2026 Goodfire published “Neurons as an Interpretable Basis,” studying Qwen3.6-35B-A3B MoE neurons with sparsification, attribution, and agent-written descriptions. Ablating the weakest 92.2% of routed neurons per token raised language-model loss only 2.9%. A 100-million-token fine-tune recovered much benchmark performance. Goodfire sells interpretability tools; the paper is not peer reviewed yet.

Dec 1, 2026

Deepshard Truffle: $1,999 Local AI Box That Retrains a LoRA Every Night

Deepshard launched Truffle, a $1,999 always-on home AI computer that coordinates agentic work across apps and applies nightly LoRA updates on locally collected activity while keeping the base model frozen. The product page quotes up to 180B parameters on-device, dual custom T1 accelerators, and strict local processing unless you opt into cloud helpers.

Dec 1, 2026

LoopTitan MoE Study: Parameter Revisit Gains Dissected

The LoopTitan project from researchers including Shanghai AI Laboratory authors asks what parameter revisit buys in looped mixture-of-experts models. Under matched budgets they report revisit alone buys little; network shape, residual scale, and optimizers explain most gains.