Millie 2: Streaming a 177-Billion-Parameter Language Model on Phones at Million-Token Context
Abstract
Millie 2 runs a 177-billion-parameter language model with a million-token context on a phone with 12 GB of RAM. At that length, its compressed weights and attention data occupy 69.5 GB. On an iPhone 18 Pro, it generates 14.1 tokens/s at short context and 9.9 tokens/s when answering a question about a million-token document. Millie 2 streams model weights by predicting which experts a layer will use and favoring experts whose weights are already in RAM. We propose Residency-Biased Attention (RBA) for streaming attention data. Millie 2 uses an earlier layer's state to score a compact index of the full history, giving a bonus to blocks whose keys and values are already in RAM. The model fetches missing blocks while earlier layers compute. The destination layer then computes attention with the per-token keys and values of its selected blocks. To recover model quality, we keep the compressed weights fixed and train their shared scales under the same expert-selection constraints used on the phone. The resulting model scores close to its parent across reasoning, coding, instruction-following, and agentic benchmarks. We also evaluate browser and Android agents with model inference on the phones. These methods make it practical to run a large language model at long context on a phone even when its compressed weights and attention history together far exceed the phone's RAM.
Community
Millie 2 runs a 177B language model on an iPhone 18 Pro at 14 tok/s with a short prompt and 10 tok/s at 1M context from a saved KV cache. Expert streaming and residency-biased attention cut storage reads, and recovery training helps Millie 2 stay close to its parent, Qwen 3.8 Flash Next, across reasoning, coding, and agentic benchmarks. The paper includes benchmarks with inference running directly on phones. We released both versions of the weights and the inference code.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- MoP: Mixture of Predictors (2026)
- DeepInfer-Mac: Running a 750B-Class MoE on a 24 GB Laptop (2026)
- Shallow Encoding Emits Deep Memories (2026)
- Cache the Encoder Within:Compact, Reusable Memory across LLM Queries (2026)
- Translating KV Caches Between Hybrid-Attention Language Models: MLA Latents, Linear-Attention States and Sparse-Attention Indexers (2026)
- Hybrid Latent Attention for Looped Language Models (2026)
- LooM: Loop-Invariant Memory for Causal Encoder-Decoder Language Models (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Models citing this paper 2
llmsforall/Millie-2-Ternary
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper