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.
scienceunderway.com/articles/a-177b-qwen-model-runs-on-a-12-gb-iphone-and-reads-a-million-token-document


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 this story is for members. Membership is free: read it at scienceunderway.com/articles/a-177b-qwen-model-runs-on-a-12-gb-iphone-and-reads-a-million-token-document
Read the rest of this story
Membership is free. You get every article in full, and can save stories and follow topics.
We send a sign-in link, no password needed. Already a member? Sign inReadiness assessment
| Level | Status | Evidence |
|---|---|---|
| I Lab only | Met | The method is built and tested on GPUs, a MacBook Air and three phones, with detailed design and memory accounting. |
| II Benchmarked | Met | Results are reported on public benchmarks: GPQA Diamond, HumanEval+, IFBench, MuSR, LiveCodeBench v6, SWE-bench Verified, Terminal-Bench 2.1, WebArena Lite, AndroidWorld, plus an adaptation of BABILong. |
| III Open source | Not yet | The paper only states a plan to release the Q3 and ternary checkpoints and the inference code at github.com/llmsforall. No release is confirmed in the paper. |
| IV In production | Not yet | No documented use by a named organisation beyond the authors' own company and demonstrations. |
What would move it up
A public release of the Q3 and ternary checkpoints and the phone inference code, which the authors say they plan, would meet level III. Independent reproduction of the phone speeds and documented use in a shipped app would support level IV.
The study
Ben Krause. Millie 2: Streaming a 177-Billion-Parameter Language Model on Phones at Million-Token Context. arXiv, 30 November 2026. arXiv:2611.41874
Notes
- Krause, B. Millie 2: Streaming a 177-Billion-Parameter Language Model on Phones at Million-Token Context. arXiv preprint, 30 November 2026. CC BY 4.0. Source
- Planned release location for checkpoints and inference code, as stated in the paper. Not confirmed as available. Source
- Exact speeds on iPhone 18 Pro (Q3 model): 14.1 tokens/s short context and 9.9 tokens/s at about 990K tokens, best runs; 8.84 tokens/s averaged over 8,192 tokens; prefill continuing after the saved prefix at 60.6 tokens/s.
- Exact benchmark figures (Q3 with both streaming methods unless stated): SWE-bench Verified 387/500 (77.4%) vs parent 80.6%; HumanEval base 94.5% vs 98.8%; WebArena Lite 64.3% vs 61.4%; AndroidWorld (ternary) 69.0% vs 75.9%; BABILong-derived test 54/64 (64K pool), 51/64 native, 47/64 (16K pool).
- Readiness: level II, Benchmarked. Public benchmark results reported; code and weights only announced as planned.
Edited and signed by
Stefan PerdalFounder. Twenty-five years of building digital products.234 stories editedStefan read the study, set the readiness level and approved this story. An AI system found the paper and wrote the first draft.
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.
No corrections to this article. Found an error? Report it.


