Can I run llm no my iPhone?

Generated on 9/6/2024

1 search

Yes, you can run large language models (LLMs) on your iPhone. Apple provides tools and frameworks to facilitate this process. You can start with a PyTorch model and convert it into the Core ML format using Core ML tools. These tools offer optimization techniques such as quantization and efficient key-value caching for LLMs. Once converted, you can run your model within your app using the Core ML framework, which optimizes execution across the CPU, GPU, and neural engine of Apple devices. This allows you to run a wide array of models, including large language models, on iOS, iPadOS, and macOS devices.

For more details, you can refer to the Platforms State of the Union (16:37) session.