Abstract The field of Artificial Intelligence has witnessed remarkable progress in recent years, especially with the emergence of large language models (LLMs) based on the transformer architecture. Cloud-based LLMs, such as OpenAI’s ChatGPT, offer impressive capabilities but come with concerns regarding latency and privacy due to network dependencies. This article presents an approach to LLM inference that allows LLMs with billions of parameters to be executed directly on mobile devices without network connectivity. The article showcases a fine-tuned GPT LLM with 3 billion parameters that can operate on devices with as low as 4GB of memory. Through the integration of native code and model quantization techniques, the application not only serves as a general-purpose assistant but also facilitates mobile interactions with our text-to-actions feature. With text-to-actions, the assistant capabilities are extended beyond just text conversation, enabling the communication between the low-level LLM and the device’s operating system, autonomously performing tasks such as making calls, searching the web, or scheduling events. The article provides insights into the training pipeline, implementation details, test results, and future directions of on-device LLM inference. This technology opens up possibilities for empowering users with sophisticated AI capabilities while preserving their privacy and eliminating latency concerns.
Carreira et al. (Tue,) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: