Apple Silicon

How to Choose a Local AI App for iPhone

Lapis EngineeringPublished Updated 6 min read

Choose a local AI app for iPhone. Check which models you can load and how chat handles text, photos and documents.

Minimalist photograph of an Apple iPhone displaying a clean screen on a dark wooden workstation
Photo: Tyler Lastovich · Unsplash
What to try
  • Note what needs downloading and what works after disconnecting the device.
  • Check what happens when you return to a chat and whether you can remove the model to reclaim space.

To choose a local AI app for iPhone, start with something you already want to do. A short chat, a photo and a document have different requirements. Try them with the model you would actually load.

Evaluation Criteria: What Separates Native Edge AI from Cloud Wrappers

Most applications marketed as mobile AI assistants are thin frontends that dispatch API payloads to centralized data centers. While functional when connected to high-bandwidth networks, this model introduces variable latency, recurrent subscription overhead, and catastrophic privacy risks for sensitive personal or corporate data.

Evaluating an authentic local AI application requires assessing four architectural layers:

  • Inference Engine & Backend: Does the application execute via native Apple MLX compute graphs compiled directly for the Metal Shading Language, or does it rely on generic cross-compiled C++ binaries that incur CPU-to-GPU memory roundtrips?
  • Memory Footprint & Buffer Management: How does the memory allocator handle active model weights, KV (key-value) cache buffers, and scratchpad tensors under strict iOS dirty memory caps?
  • Quantization Pipeline: Does the engine support modern affine group-wise 4-bit quantization (such as AWQ or MLX group quantization) to preserve perplexity and instruction-following fidelity while staying within mobile memory bandwidth envelopes?
  • Zero-Telemetry Air-Gapping: Can the application operate indefinitely in airplane mode without degraded functionality, silent telemetry pings, or forced cloud model fallbacks?

If you also use macOS and want a native runtime for your desktop or laptop, explore our guide on the best local AI app for Mac.

Inference Engines Compared: Apple MLX vs. llama.cpp vs. Core ML

The runtime engine dictates the ceiling for throughput (tokens per second), memory efficiency, and thermal stability on iOS devices:

  • Core ML (ANE / GPU): Apple's Core ML provides excellent acceleration for static neural networks via the Apple Neural Engine (ANE). However, generative autoregressive language models require dynamic sequence lengths and rolling KV cache management. Converting large language models to static .mlpackage bundles frequently leads to bloated disk storage, rigid context windows, and lengthy compilation phases on device.
  • llama.cpp (Metal): A foundational, highly versatile open-source engine written in C/C++. Through its GGUF container and Metal compute backend, llama.cpp brought local LLMs to Apple devices. Nevertheless, its memory model is built around generalized host-device abstractions designed for discrete desktop GPUs, which can introduce synchronization overhead and redundant tensor copies on unified memory architectures.
  • Apple MLX (Native Metal Unified Memory): Developed by Apple Machine Learning Research, MLX is purpose-built for Apple Silicon. Its unified array memory architecture allows CPU and GPU cores to operate directly on the exact same physical DRAM pages without data copying or serialization. Combined with lazy graph evaluation and specialized Metal Performance Shaders (MPS) kernels, MLX delivers the lowest memory overhead and highest sustained decoding speeds on modern iPhone SoCs.

The comparison of MLX and llama.cpp on Apple Silicon explores two runtimes found in local apps.

Memory Budgets on iOS: Managing Dirty Pages and Kernel Jetsam

Hardware specifications indicate that modern devices like the iPhone 15 Pro, iPhone 16, and iPhone 16 Pro ship with 8 GB of LPDDR5/LPDDR5X unified memory. However, an application developer cannot allocate all 8 GB to an LLM runtime.

The iOS kernel maintains a rigorous memory reclamation subsystem known as jetsam. Unlike macOS, which utilizes extensive swap space on solid-state drives, iOS prioritizes flash memory endurance and UI responsiveness. The system reserves roughly 2.8 GB to 3.2 GB of RAM for SpringBoard, system daemons (such as mediaserverd and commcenter), and system cache buffers.

On iOS, the memory budget available to an app depends on the device, OS version and memory pressure. Test on the target device with representative context and attachments.

Consequently, local LLMs must fit both their quantized weights and their dynamic KV cache comfortably inside a 1.2 GB to 2.8 GB memory budget. A 4-bit quantized 3-billion-parameter model consumes approximately 1.8 GB to 2.0 GB of memory. As context length increases during a conversation, the KV cache grows dynamically. For a model with 16 attention layers and 8 KV heads (Grouped-Query Attention), each 1,000 tokens of context adds approximately 128 MB of dirty RAM. Applications that fail to implement rolling context truncation or sliding-window attention quickly breach the jetsam threshold and crash.

The app and model are related choices. The guide to open models for iPhone helps assess the latter.

How to test it on your device

Note what needs downloading and what works after disconnecting the device. Check what happens when you return to a chat and whether you can remove the model to reclaim space.

If you want to leverage the larger display and M-series silicon of your tablet, check our guide to the best local AI app for iPad.

Thermal Throttling and Battery Impact During Continuous Reasoning

Unlike desktop computers or MacBooks equipped with active fan cooling, iPhones rely entirely on passive chassis thermal dissipation through a titanium enclosure, internal graphite heat spreaders, and the display glass. The continuous thermal budget of an iPhone is approximately 3.8W to 4.5W.

When an LLM runs continuous generation—such as deep multi-step reasoning with DeepSeek-R1 Distill or processing lengthy documents—the SoC temperature climbs rapidly. If an engine executes inefficient compute loops, iOS activates Dynamic Voltage and Frequency Scaling (DVFS), throttling the GPU clock frequency by 30% to 45% to prevent battery degradation and skin discomfort.

Architectural optimizations in MLX mitigate thermal throttling by scheduling compute workloads asynchronously through Metal command buffers. Rather than spinning high-frequency polling threads on the CPU, MLX signals completion via event callbacks, allowing the high-efficiency CPU cores to sleep while the GPU executes matrix multiplication kernels. In terms of power consumption, generating 1,000 tokens locally via optimized MLX kernels consumes roughly 1.2% to 1.8% of battery capacity—comparable to the energy expenditure of maintaining a sustained 5G cellular data uplink under weak signal conditions.

Why Lapis Stands Out: Architecture Built for Apple Silicon

Lapis was engineered specifically to solve the constraints of on-device mobile AI without compromising on privacy, speed, or model flexibility:

  • Pure Apple MLX Core: Lapis bypasses emulated runtime wrappers in favor of native Metal and MLX execution, ensuring direct access to unified memory bandwidth without duplicate tensor copies.
  • Conservative Memory Management: Built-in dynamic KV cache monitoring tracks dirty memory page growth in real time, preventing memory spikes from reaching kernel jetsam limits.
  • Verifiable Zero-Cloud Architecture: Lapis contains no analytics trackers, no cloud fallback APIs, and no telemetry pings. It functions identically whether your iPhone is connected to fiber-optic Wi-Fi or completely isolated in airplane mode.
  • Secure Local Storage: Conversation logs, prompt histories, and cached weights are encrypted at rest using iOS Data Protection with hardware-backed AES-256 keys derived from the device Secure Enclave.

Checklist: Choosing Your iPhone Local AI Stack

  1. Verify the Execution Backend: Prioritize applications running native Apple MLX or optimized Metal shaders. Avoid tools that compile generic CPU loops without hardware acceleration.
  2. Match Model Size to Available Hardware: On 8 GB iPhones (A17 Pro, A18, A18 Pro), select 1.5B to 3.5B parameter models quantized to 4-bit precision. Reserve 7B+ models for iPads and Macs equipped with 16 GB or more of unified memory.
  3. Test for Air-Gapped Operation: Switch your iPhone into Airplane Mode with Wi-Fi and Bluetooth disabled before launching the app. If the application requires an initial internet handshake or disables core features, it is not a true local AI app.
  4. Inspect Thermal and Battery Profiles: Run a 500-token generation benchmark. An efficient application should complete generation with responsive UI interactivity and minimal chassis heating.

If you need larger models than iPhone memory allows, learn how to connect iPhone to a local Mac LLM over Tailscale.

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