Friday, December 4, 2026
HomeCrypto MiningAn iPhone with 12 GB of RAM dealt with an AI workload...

An iPhone with 12 GB of RAM dealt with an AI workload spanning 69.5 GB of information



An iPhone with 12 GB of RAM dealt with an AI workload spanning 69.5 GB of information

An iPhone 18 Professional with 12 GB of RAM ran a 177-billion-parameter language mannequin utilizing a ready cache, and Millie 2 answered a query about almost 1,000,000 tokens of FDA materials.

The cellphone pulled items of the mannequin and the doc’s saved historical past from flash storage because it generated textual content, in response to a Nov. 30 preprint from LLMs For All.

The cache coated 989,693 tokens of FDA materials and laws. Within the reply reproduced within the paper, Millie 2 cited the part on reserve samples for completed medication. It set the minimal at twice the quantity wanted for required assessments, excluding sterility and pyrogen assessments from that calculation, matching the archived federal rule.

That reply got here from Ternary, a model of Millie 2 with a 36.9 GB mannequin file, and the run generated 52 tokens at 11.65 tokens per second.

How the mannequin match on the iPhone

The primary compressed Millie 2 mannequin file, referred to as Q3, was 56.3 GB. The cellphone additionally wanted entry to an consideration historical past, the mannequin’s file of the textual content it already processed.

Collectively, the compressed textual content weights and full historical past got here to about 69.5 GB at 1,000,000 token positions, in response to the paper’s reminiscence breakdown.

Millie 2 makes use of about 6.7 billion parameters per generated token, and retains an index of the doc historical past in RAM and predicts which weights and chunks of historical past it’s going to want subsequent.

Associated Studying

Google’s Gemma 3 makes residence AI a actuality with new open-source mannequin

It reuses information already in reminiscence and begins studying lacking items whereas earlier layers of the mannequin are nonetheless working.

The index lets the cellphone look throughout the saved historical past whereas holding solely the detailed information it’s going to use. In a single Q3 configuration, the weights and historical past information held in RAM directly got here to about 6.1 GB, whereas different elements of the app used further reminiscence.

Studying forward and reusing information in RAM let the mannequin preserve many of the full payload out of working reminiscence.

The in-RAM determine covers weights and a spotlight historical past, together with the index. Different app and system allocations additionally use RAM.

Within the paper’s highlighted Q3 configuration, the iPhone generated 274 tokens at 9.9 tokens per second in its quickest measured trial, and was cooled by a fan.

The timer began after the cellphone restored the cache and processed the query. A contemporary doc wants a separate processing go to construct that cache, so the benchmark measures solely the pace of producing textual content as soon as the enter is prepared.

LLMs For All hyperlinks to the mannequin recordsdata and a information to constructing the iPhone software program from supply in its public runtime repository.

RELATED ARTICLES

Most Popular

Recent Comments