Open Source Models

Open-Weight Models for iPhone: How to Choose One

Lapis EngineeringPublished Updated 3 min read

To choose a model for your iPhone, narrow the task and the size you can load first.

Macro close-up of integrated circuit board traces and computing processor silicon
Photo: Michael Dziedzic · Unsplash
What to try
  • Compare two models with memory to spare.
  • Use the same language and tasks, and check the exact model cards for format, context and licensing.

To choose a model for your iPhone, narrow the task and the size you can load first. Then check whether the variant is tuned for chat, which languages it covers and what its license permits.

The Silicon Constraint: Memory Bandwidth and the iOS Jetsam Wall

Deploying large language models on edge devices involves two non-negotiable physical constraints: memory bandwidth and operating system memory governance.

Autoregressive token generation is strictly memory-bandwidth bound. To predict a single new token, the processor must stream every parameter weight from RAM into the compute cores once. On an Apple A17 Pro or A18 Pro chip, the LPDDR5X memory subsystem provides approximately 60 to 68 GB/s of memory bandwidth. A 4-bit quantized model of 2 billion parameters occupies roughly 1.3 GB. At 60 GB/s theoretical throughput, this establishes an upper theoretical limit near 45 tokens per second.

The second constraint is software-enforced. Although modern iPhones feature 8 GB of physical RAM, the iOS kernel protects system stability through the jetsam daemon. When a third-party application exceeds roughly 4.5 GB to 4.8 GB of active dirty memory, jetsam immediately terminates the process with an out-of-memory exception. Consequently, 7B and 8B parameter models cannot run reliably on standard iPhones; models between 1B and 3.5B parameters constitute the true mobile sweet spot.

If you are getting started, the guide to running local LLMs on iPhone explains the download and usage workflow.

How to test it on your device

Compare two models with memory to spare. Use the same language and tasks, and check the exact model cards for format, context and licensing.

How to compare model families

Try Llama 3.2, Qwen 2.5 or SmolLM2 only if your app supports the variant you chose. Look up the exact model name in the provider’s documentation. For chat, pick an instruction-tuned variant and ask each model the same questions. Check any specific language, output format or licensing needs separately.

The analysis of Llama 3.2 for local chat on iPhone explores one of the families in this selection.

To compare answers in math or code, add a test with Phi-4-mini to your examples.

Quantization Trade-offs: 4-Bit vs. 8-Bit on Mobile Silicon

Model quantization compresses 16-bit floating-point weights (FP16) into lower bit depths to fit unified RAM:

  • 16-Bit (FP16): Demands 2 bytes per weight. A 3B model consumes over 6 GB of RAM, triggering immediate iOS jetsam termination.
  • 8-Bit (INT8): Requires ~1 byte per weight (~3.2 GB for a 3B model). While it avoids immediate jetsam crashes, it leaves virtually no memory headroom for the Key-Value (KV) cache during extended discussions, risking thermal throttling.
  • 4-Bit (MLX Group-Wise): Reduces storage to ~0.55 bytes per parameter (~2.1 GB for a 3B model). Extensive research demonstrates that group-wise 4-bit quantization preserves over 97% of original benchmark accuracy while halving memory bandwidth requirements, doubling generation speed.

Another reference for compact variants is the guide to Gemma on iPhone and its execution requirements.

Best Practices for Running Local Models in Lapis

  1. Match the Model to the Task: Use Llama 3.2 1B for quick notes and text cleanup where speed is paramount. Switch to Qwen 2.5 3B or Llama 3.2 3B when drafting complex arguments or inspecting code.
  2. Monitor Context Length: While models support extended context windows, each 1,000 tokens stored in the KV cache consumes additional RAM (~64 MB in FP16). In Lapis, KV cache management automatically preserves safety margins.
  3. Leverage Full Airplane Mode: Because weights reside entirely on device, you can operate securely in air-gapped environments with cellular and Wi-Fi disabled.

The Lapis model catalogue shows compatible options before you choose a download.

Sources and references

Local execution with Lapis

Chat with compatible models on iPhone, iPad and Mac. Download them once and use local inference offline; model size depends on your device’s resources.

App Store