# A 177B Qwen model runs on a 12 GB iPhone and reads a million-token document

A single-author preprint compresses Qwen3.8-Flash-Next and streams its pieces from flash storage. The phone generates about 10 tokens, or word fragments, a second over a million-token document, with benchmark scores close to the original model.

- Category: Efficiency
- Readiness level: II (Benchmarked) on Science Underway's four-step scale, as proposed
- Published: 2026-12-03
- Editor: Stefan Perdal
- URL: https://scienceunderway.com/articles/a-177b-qwen-model-runs-on-a-12-gb-iphone-and-reads-a-million-token-document

## The study

Millie 2: Streaming a 177-Billion-Parameter Language Model on Phones at Million-Token Context (preprint, not peer reviewed). arXiv 2611.41874. https://arxiv.org/abs/2611.41874

## At a glance

- What it shows: A very large AI language model, far too big for a phone's working memory, can still answer questions on an iPhone. It works by keeping most of the model in the phone's storage and loading only the parts it needs, just in time. Scores on standard tests stay close to the full model running on servers.
- What it does not show: It does not show how long the phone takes to read a new long document in the first place; the speed figures start after a saved reading is restored. The code and model are not yet public, and the work has not been peer reviewed.
- Why it matters: Today, large assistants usually run in the cloud because phones lack the memory. If this approach holds up, a capable assistant could work privately and offline on a user's own files.

## What the study shows

The author, from the company LLMs For All, takes Qwen3.8-Flash-Next, a language model with 177 billion parameters (the numbers a model learns). Even compressed, the main version is a 56 GB file. At a million tokens of context (roughly the length of several long books), the model's memory of earlier text adds about 13 GB more. The test phone, an iPhone 18 Pro, has 12 GB of RAM in total.

The trick rests on how this model is built. It is a mixture-of-experts model: each layer holds 512 small sub-networks, called experts, but uses only 10 of them per token. Its attention layers, which look back over earlier text, also pick only a few chunks of the history each time. So the data needed for any one token is small. The problem is fetching it from storage fast enough.

The paper's answer has two parts. First, an earlier layer predicts which experts a later layer will want, gives a bonus to experts already in RAM, and starts loading the rest while it is still computing. Second, a method the author calls Residency-Biased Attention keeps a compact index of the whole document in RAM. It uses that index to pick which chunks of past text to load, again favouring chunks already in memory. The author then retrains only the compression settings so the model adapts to these limits. At a million tokens, about 6 GB of the roughly 70 GB total sits in RAM.

The author reports 14.1 tokens a second at short context and 9.9 tokens a second answering a question about a document of about 990,000 tokens. Both are the fastest runs measured. On standard benchmarks the compressed model scores near the parent. On SWE-bench Verified, which asks a model to fix real software bugs, it resolved about 77% of tasks with both streaming methods on, against about 81% for the parent on servers. Coding on HumanEval dropped the most, by about 4 points.

The phone also ran agents, AI systems that take actions step by step. On 70 WebArena Lite web tasks, the iPhone version completed slightly more than the parent on a server. A smaller, more compressed version on a Samsung Galaxy S26 Ultra completed fewer AndroidWorld app tasks than the parent, 69% against 76%. On a million-token recall test, a cautious streaming setting answered 54 of 64 questions, against 51 for the model's native attention.

## Our reading

In our reading, the main contribution is engineering, not a new model. The insight is simple: a mixture-of-experts model touches only a sliver of itself per token, so the phone needs only that sliver in RAM. The hard part is timing, and the paper's tools for timing are sensible. Predict early, prefer what is already loaded, and teach the model to live with that preference.

The headline speeds need care. They are best runs, some with a fan cooling the phone. Over a long answer of about 8,000 tokens the iPhone averaged under 9 tokens a second. More important, the million-token figures start after the document has already been processed and saved. One measurement shows the phone ingesting text at about 60 tokens a second. If that rate held, reading a fresh million-token document would take hours. That is our inference; the paper does not report it.

On readiness, we place this at level II, Benchmarked. Results are reported on public benchmarks. The author says the weights and inference code will be released at github.com/llmsforall, but the paper does not confirm a release, so level III is not yet met.

The rest of the article (what it means, limits, what to watch) is free for members: https://scienceunderway.com/articles/a-177b-qwen-model-runs-on-a-12-gb-iphone-and-reads-a-million-token-document

## How this was made

An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.

---
Source: Science Underway, https://scienceunderway.com/. Please link to the article when you cite it.
