Running artificial intelligence models directly on a mobile device is a significant challenge. ExecuTorch represents a major breakthrough in mobile AI by enabling sophisticated models to run directly on iOS and Android devices. Our team tested various practical applications with Meta's Llama 3.2 model, from text generation to translation and structured data extraction.
Installation and configuration
iOS implementation proved relatively straightforward, following official guidelines. Android presented some challenges, requiring the use of a pre-compiled library. A critical configuration step involves specifying the maximum text length (in tokens) that Llama 3.2 can analyze or generate on the mobile device.