MITB Banner

Apple Optimises LLMs for Edge Use Cases

Apple tackles the challenge of efficiently running LLMs that exceed the available DRAM capacity

Share

Why Apple will Build the Best Chatbot
Listen to this story

Apple has published a paper ‘LLM in a flash: Efficient Large Language Model Inference with Limited Memory’ outlining a method for running LLMs on devices that surpass the available DRAM capacity. This involves storing the model parameters on flash memory and bringing them on demand to DRAM.

https://twitter.com/1littlecoder/status/1737353316634374312

Their method involves constructing an inference cost model that aligns with the behavior of flash memory, guiding optimization efforts in two crucial areas: reducing the volume of data transferred from flash and reading data in larger, more contiguous chunks

Within this flash memory-informed framework, Apple employs two principal techniques. First, “windowing” strategically reduces data transfer by reusing previously activated neurons, and second, “row-column bundling,” tailored to the sequential data access strengths of flash memory, increases the size of data chunks read from flash memory.

These methods collectively enable running models up to twice the size of the available DRAM, with a 4-5x and 20-25x increase in inference speed compared to naive loading approaches in CPU and GPU, respectively.

This research is significant as Apple plans to integrate generative AI capabilities into iOS 18. The new OS will leverage generative AI technology to enhance Siri and the Messages app, enabling them to answer questions and auto-complete sentences more effectively. Apple is also exploring the potential use of generative AI in apps such as Apple Music, Pages, Keynote, and Xcode.

Apart from Apple, Samsung recently introduced Gauss, its own on-device LLM. According to reports, Gauss is set to be incorporated into the upcoming Galaxy S24 smartphone, slated for release in early 2024. The company intends to integrate this language model into its devices such as phones, laptops, and tablets to enhance the capabilities of its smart devices.

Moreover, Google has announced its on-device LLM, called Gemini Nano, which is set to be introduced in the upcoming Google Pixel 8 phones, offering capabilities such as Summarize in the Recorder app and Smart Reply in Gboard. 

Share
Picture of Siddharth Jindal

Siddharth Jindal

Siddharth is a media graduate who loves to explore tech through journalism and putting forward ideas worth pondering about in the era of artificial intelligence.
Related Posts

CORPORATE TRAINING PROGRAMS ON GENERATIVE AI

Generative AI Skilling for Enterprises

Our customized corporate training program on Generative AI provides a unique opportunity to empower, retain, and advance your talent.

Upcoming Large format Conference

May 30 and 31, 2024 | 📍 Bangalore, India

Download the easiest way to
stay informed

Subscribe to The Belamy: Our Weekly Newsletter

Biggest AI stories, delivered to your inbox every week.

AI Forum for India

Our Discord Community for AI Ecosystem, In collaboration with NVIDIA. 

Flagship Events

Rising 2024 | DE&I in Tech Summit

April 4 and 5, 2024 | 📍 Hilton Convention Center, Manyata Tech Park, Bangalore

MachineCon GCC Summit 2024

June 28 2024 | 📍Bangalore, India

MachineCon USA 2024

26 July 2024 | 583 Park Avenue, New York

Cypher India 2024

September 25-27, 2024 | 📍Bangalore, India

Cypher USA 2024

Nov 21-22 2024 | 📍Santa Clara Convention Center, California, USA

Data Engineering Summit 2024

May 30 and 31, 2024 | 📍 Bangalore, India