Can I run a LLM on my phone
Generated on 12/12/2024
1 search
Yes, you can run a large language model (LLM) on your phone using Apple's platforms. Apple provides tools and frameworks that allow you to import and run AI models, including large language models, on their devices. You can start with a PyTorch model and convert it into the Core ML format using Core ML tools. These tools help optimize the model for execution on Apple devices, leveraging hardware acceleration across the CPU, GPU, and neural engine. This process allows you to run a wide array of models, such as those from the Hugging Face community, on iOS, iPadOS, and macOS devices.
For more details, you can refer to the session Explore machine learning on Apple platforms (07:16) which discusses running models on device.
Explore machine learning on Apple platforms
Get started with an overview of machine learning frameworks on Apple platforms. Whether you’re implementing your first ML model, or an ML expert, we’ll offer guidance to help you select the right framework for your app’s needs.
Bring your machine learning and AI models to Apple silicon
Learn how to optimize your machine learning and AI models to leverage the power of Apple silicon. Review model conversion workflows to prepare your models for on-device deployment. Understand model compression techniques that are compatible with Apple silicon, and at what stages in your model deployment workflow you can apply them. We’ll also explore the tradeoffs between storage size, latency, power usage and accuracy.
Train your machine learning and AI models on Apple GPUs
Learn how to train your models on Apple Silicon with Metal for PyTorch, JAX and TensorFlow. Take advantage of new attention operations and quantization support for improved transformer model performance on your devices.
Deploy machine learning and AI models on-device with Core ML
Learn new ways to optimize speed and memory performance when you convert and run machine learning and AI models through Core ML. We’ll cover new options for model representations, performance insights, execution, and model stitching which can be used together to create compelling and private on-device experiences.
Platforms State of the Union
Discover the newest advancements on Apple platforms.