An iPhone equipped with 12 GB of RAM managed an AI task involving 69.5 GB of data

Try Our Free Tools!
Master the web with Free Tools that work as hard as you do. From Text Analysis to Website Management, we empower your digital journey with expert guidance and free, powerful tools.

Innovative Performance of iPhone 18 Pro with Millie 2

The iPhone 18 Pro, boasting an impressive 12 GB of RAM, has successfully executed a 177-billion-parameter language model, utilizing a meticulously prepared cache.

In a notable demonstration, the AI model, dubbed Millie 2, responded to inquiries regarding approximately one million tokens of materials from the FDA.

According to a preprint published by LLMs For All on November 30, the device extracted segments of the model alongside the document’s archived history from its flash storage while simultaneously generating coherent text.

This cache encompassed a staggering 989,693 tokens related to FDA guidelines and regulations. In a reproduction of the findings from the study, Millie 2 referenced a specific section concerning reserve samples for finished pharmaceuticals, establishing the minimum requirement at double the quantity needed for mandatory testing—excluding sterility and pyrogen assessments—which aligns with the federal regulations archived previously.

The response was generated by Ternary, a variant of Millie 2 housing a model file size of 36.9 GB, achieving an output of 52 tokens at a rate of 11.65 tokens per second.

Integration of the Model within the iPhone

The primary compressed model file for Millie 2, known as Q3, measures 56.3 GB. Additionally, the phone required access to an attention history—essentially the model’s record of previously processed text.

Collectively, both the compressed text weights and comprehensive history amounted to roughly 69.5 GB at one million token positions, as delineated within the paper’s memory analysis.

Millie 2 operates utilizing approximately 6.7 billion parameters for each generated token, maintaining an index of document history in RAM while forecasting which weights and segments of prior history it will require next.

This indexing capability allows the phone to traverse the saved history while retaining only the granularity of data essential for immediate use. In one configuration of Q3, the weights and history data in RAM were condensed to about 6.1 GB, with additional memory allocated for different application functions.

The predictive data reading and reuse of RAM enabled the model to retain the majority of the full payload beyond the confines of active memory.

The specified in-RAM data comprises weights and attention history, inclusive of the index; other applications and system functions contribute to overall memory usage.

In the highlighted Q3 configuration outlined in the study, the iPhone demonstrated its capacity by generating 274 tokens at an astounding rate of 9.9 tokens per second during its swiftest recorded trial, aided by a cooling fan.

The timing commenced once the iPhone had restored the cache and initialized the question processing.

Black smartphone with three camera lenses on back

It is important to note that processing a fresh document necessitates a distinct pass to construct the cache; thus, the benchmark solely measures the speed of text generation after the input is fully prepared.

Source link: Cryptoslate.com.

Disclosure: This article is for general information only and is based on publicly available sources. We aim for accuracy but can't guarantee it. The views expressed are the author's and may not reflect those of the publication. Some content was created with help from AI and reviewed by a human for clarity and accuracy. We value transparency and encourage readers to verify important details. This article may include affiliate links. If you buy something through them, we may earn a small commission — at no extra cost to you. All information is carefully selected and reviewed to ensure it's helpful and trustworthy.

Reported By

Neil Hemmings

I'm Neil Hemmings from Anaheim, CA, with an Associate of Science in Computer Science from Diablo Valley College. As Senior Tech Associate and Content Manager at RS Web Solutions, I write about AI, gadgets, cybersecurity, and apps – sharing hands-on reviews, tutorials, and practical tech insights.
Share the Love
Related News Worth Reading