An iPhone with 12 GB of RAM handled an AI workload spanning 69.5 GB of data
Quick Take
- The Millie 2 team used an iPhone 18 Pro to answer a question from a prepared 989,693-token FDA document cache.
- Millie 2 streamed selected model weights and chunks of document history from flash storage as the iPhone generated text.
- The fan-cooled iPhone generated 9.9 tokens per second in the highlighted Q3 run after restoring the cache and processing the question.
An iPhone 18 Pro with 12 GB of RAM ran a 177-billion-parameter language model using a prepared cache, and Millie 2 answered a question about nearly a million tokens of FDA material.
The phone pulled pieces of the model and the document’s saved history from flash storage as it generated text, according to a Nov. 30 preprint from LLMs For All.
The cache covered 989,693 tokens of FDA material and regulations. In the answer reproduced in the paper, Millie 2 cited the section on reserve samples for finished drugs. It set the minimum at twice the amount needed for required tests, excluding sterility and pyrogen tests from that calculation, matching the archived federal rule.
That answer came from Ternary, a version of Millie 2 with a 36.9 GB model file, and the run generated 52 tokens at 11.65 tokens per second.
How the model fit on the iPhone
The main compressed Millie 2 model file, called Q3, was 56.3 GB. The phone also needed access to an attention history, the model’s record of the text it already processed.
Together, the compressed text weights and full history came to about 69.5 GB at a million token positions, according to the paper’s memory breakdown.
Millie 2 uses about 6.7 billion parameters per generated token, and keeps an index of the document history in RAM and predicts which weights and chunks of history it will need next.
It reuses data already in memory and starts reading missing pieces while earlier layers of the model are still working.
The index lets the phone look across the saved history while holding only the detailed data it will use. In one Q3 configuration, the weights and history data held in RAM at once came to about 6.1 GB, while other parts of the app used additional memory.
Millie 2 on 12 GB of RAM
Millie 2 pulls selected model weights and document history from flash storage as it generates text.
Reading ahead and reusing data in RAM let the model keep most of the full payload out of working memory.
The in-RAM figure covers weights and attention history, including the index. Other app and system allocations also use RAM.
Sources
Supporting facts
- Reported statement Ben Krause of LLMs For All submitted a preprint on Nov. 30 describing Millie 2, a 177-billion-parameter language model that ran on an iPhone 18 Pro with 12 GB of RAM. [1] [2]
- Reported statement The paper describes a runtime that keeps a compact index of the document history in RAM, predicts which model weights and history blocks a later layer will need, and starts fetching missing blocks from storage while other work continues. [2] [3]
- Reported statement The preprint puts the main compressed Q3 checkpoint file at 56.3 GB and the combined packed text weights and full attention history at about 69.5 GB at a million token positions. [2]
- Reported statement Appendix C estimates that streaming reduced the packed Q3 weights and attention data held in memory at the same time to about 6.1 GB in the specified iPhone decode configuration. [2]
Method
The common zero-based scale uses the 69.507 GB and 6.073 GB payloads in Appendix C, Table 11, and marks the phone’s 12 GB of total RAM from Table 10. Labels round the payloads to one decimal place.
Scope
The in-RAM figure covers weights and attention history, including the index. Other app and system allocations also use RAM.
CryptoSlateIn the paper’s highlighted Q3 configuration, the iPhone generated 274 tokens at 9.9 tokens per second in its fastest measured trial, and was cooled by a fan.
The timer started after the phone restored the cache and processed the question. A fresh document needs a separate processing pass to build that cache, so the benchmark measures only the speed of generating text once the input is ready.
LLMs For All links to the model files and a guide to building the iPhone software from source in its public runtime repository.
Editorial credits
Also known as "Akiba," Liam Wright is a reporter, podcast producer, and Editor-in-Chief at CryptoSlate. He believes that decentralized technology has the potential to make…
Gino Matos is a law school graduate and a seasoned journalist with six years of experience in the crypto industry. His expertise primarily focuses on the Brazilian blockchain…