iPhone 18 Pro Runs 69.5GB AI Workload With 12GB RAM

An iPhone 18 Pro with 12GB of RAM answered a question from a 989,693-token FDA document cache using a 177-billion-parameter model.

An iPhone 18 Pro with 12GB of RAM ran a 177-billion-parameter language model over a 69.5GB workload, according to a preprint published Nov. 30 by the LLMs For All team.

The demonstration used a prepared cache containing 989,693 tokens from FDA documents and regulations. In the answer reproduced in the preprint, the model addressed reserve samples for finished drugs. It cited a federal rule requiring at least twice the amount needed for required tests, excluding sterility and pyrogen tests from that calculation.

The phone did not load the full model and document history into RAM. Instead, it read selected model weights and portions of the saved document history from flash storage while generating text. An index stored in RAM helped predict which data would be needed next. The system also reused data that had already been loaded.

In the highlighted Q3 configuration, the compressed model file was 56.3GB. Combined with the attention history-the model’s record of text it had processed-the workload reached about 69.5GB at one million token positions. The model weights and attention history occupied about 6.1GB of RAM at one time. The operating system and other software used additional memory.

The iPhone generated 274 tokens at 9.9 tokens per second in the fastest measured Q3 trial. A fan cooled the phone during the test. The timing began after the phone restored the prepared cache and processed the question.

Building a cache from a new document would require a separate processing pass. That work was not included in the benchmark, which measured text generation after the input had been prepared.

A separate version, called Ternary, used a 36.9GB model file and generated a 52-token answer at 11.65 tokens per second. The preprint says the model used about 6.7 billion parameters for each generated token.

LLMs For All made the model files and instructions for building the iPhone software available in its public runtime repository.

Articles by this author