Back to articles

How Millie 2 Streams a 177B Model on a Phone

3 min read

A phone cannot keep the full weights of a very large language model—and the attention data for a million-token history—in its RAM at once. Millie 2 tackles that mismatch as a scheduling problem: predict what will be needed next, load it in time, and overlap data movement with computation. The paper reports running a 177-billion-parameter model on an iPhone 18 Pro with 12 GB of RAM. At a million-token context, compressed weights and attention data together occupy 69.5 GB, so the system must manage a working set larger than the phone’s memory.

How the approach works

  • Expert weights are streamed selectively. Millie 2 predicts which experts a layer is likely to use. It favors experts whose weights are already in RAM, reducing the chance that computation must wait for a read. The goal is not to remove expert computation, but to account for data residency when choosing experts.
  • Attention history is fetched on demand. The paper introduces Residency-Biased Attention (RBA). An earlier layer’s state scores a compact index of the full history. The scoring gives an extra preference to blocks whose keys and values are already in memory, alongside their relevance. Missing blocks can be fetched while earlier layers compute; the destination layer then attends to the selected blocks using their per-token key-value data.
  • A recovery step addresses compression loss. The authors keep compressed weights fixed and train shared scales under the same expert-selection constraints used on the phone. They report scores close to the parent, Qwen 3.8 Flash Next, across reasoning, coding, instruction-following, and agentic benchmarks.
  • The paper includes on-device measurements. On the iPhone 18 Pro, the reported generation rate is 14.1 tokens per second at short context and 9.9 tokens per second when answering a question about a million-token document. The work also evaluates browser and Android agents with inference running on phones.

Why it matters—and what remains open

The central contribution is a way to treat a model whose total data exceeds RAM as a stream of scheduled reads. Expert selection, attention-block selection, and computation are coordinated so that some transfers can happen while other layers are working. This offers a route to long-document use and on-device agents without relying solely on shrinking the model.

It does not make the 69.5 GB working set disappear: data still has to be managed outside RAM, and the result depends on read latency and scheduling. The supplied paper summary does not provide power, thermal, or storage-medium comparisons. The reported speeds therefore demonstrate feasibility in the stated device and setup, rather than guaranteeing the same experience across phones.

Source: Hugging Face Daily Papers

Comments

Checking sign-in status...

Loading comments...

Related articles