Apple Silicon
Run Local LLM on iPad Pro: Apple Silicon Guide
An iPad Pro can be a useful place to run a local model with a document beside it.
What to try
- Compare a full-screen request with the same request while taking notes or reading a PDF.
- Keep the model fixed and check whether the chat retains its context when you return.
An iPad Pro can be a useful place to run a local model with a document beside it. Multitasking affects available memory, so test with the other apps you expect to keep open.
Architectural Advantage: M-Series Silicon vs. A-Series Mobile Processors
Autoregressive transformer inference exhibits distinct computational characteristics across its two phases: prompt processing (prefill) and token generation (decoding). During decoding, model parameters must be fetched from DRAM to register files once for every single token emitted. As a consequence, token generation speed is strictly constrained by memory bandwidth rather than raw theoretical FLOPS.
This architectural boundary highlights why iPad Pro hardware dramatically outperforms smartphones for edge LLM execution:
- Memory Bus Width & Bandwidth: Flagship smartphone processors such as the Apple A17 Pro and A18 Pro utilize a 64-bit LPDDR5X interface providing between 51.2 GB/s and 68 GB/s of peak memory bandwidth. In contrast, the Apple M2 and Apple M4 chips deployed in iPad Pro employ a 128-bit dual-channel architecture delivering 100 GB/s (M2) and 120 GB/s (M4). This doubling of bus width translates into direct, near-linear throughput acceleration during autoregressive token decoding.
- Zero-Copy Unified Memory Architecture (UMA): Unlike traditional desktop and laptop configurations that shuttle tensor buffers across a high-latency PCIe bus between discrete system RAM and GPU VRAM, Apple Silicon binds the CPU, GPU, and Neural Engine to a singular contiguous memory pool. When Lapis loads an MLX model checkpoint, weights and Key-Value caches reside in shared physical DRAM accessible by GPU compute shaders without redundant serialization or memory replication.
- M4 GPU Architecture with Dynamic Caching: The Apple M4 processor introduces hardware Dynamic Caching, a foundational architectural redesign that allocates local on-chip register and tile memory dynamically in real time. For autoregressive attention operations, this mechanism eliminates register spilling, maximizing GPU ALU occupancy during dense matrix-vector multiplications.
Memory Budgets in iPadOS: The 16GB RAM Frontier and Jetsam Entitlements
On Apple operating systems, physical DRAM allocation is governed by the kernel jetsam subsystem. When an application's resident dirty memory crosses a system-defined threshold, the operating system executes an immediate, non-catchable SIGKILL signal (EXC_RESOURCE / MEMORY) to preserve system stability.
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.
The iPad Pro fundamentally alters this equation through hardware configurations and iPadOS entitlements:
- The Increased Memory Limit Entitlement: Apple permits productivity applications to declare the
com.apple.developer.kernel.increased-memory-limitentitlement in their provisioning profiles. On 8 GB iPad Pro models (128 GB, 256 GB, and 512 GB storage variants), this raises the foreground memory ceiling to ~6.2–6.5 GB. - The 16 GB Hardware Tier: iPad Pro models configured with 1 TB or 2 TB of storage ship with 16 GB of physical unified DRAM. When coupled with the increased memory entitlement, iPadOS allows a single foreground application to consume between 12.0 GB and 12.8 GB of resident memory.
- Substantial Safety Margins for 7B & 8B Models: Under 4-bit MLX quantization, high-performance models like Qwen 2.5 7B (~4.42 GB) and Llama 3.1 8B (~4.95 GB) operate on 16 GB iPad Pro devices with over 6.5 GB of free safety headroom beneath the jetsam termination line. This guarantees stable generation even during lengthy multi-turn conversations with expansive KV caches.
- iPadOS Extended Virtual Memory: On M-series iPads, iPadOS supports virtual memory swap to internal solid-state flash storage. While swapping active model weights to NAND degrades latency, the operating system can page out inactive background processes, dedicating the entire high-speed LPDDR5X DRAM bus to active Lapis inference.
To compare the workflow with a phone, see the guide to local LLMs on iPhone.
Inference Latency and Sustained Throughput: A18 Pro vs. M2 vs. M4
To quantify the real-world performance delta between mobile smartphone chips and iPad Pro hardware, we benchmarked multiple open-source language models running via Apple MLX with 4-bit group-wise affine quantization (group size 64) at batch size 1.
The performance advantages manifest in both inference stages:
- Prompt Ingestion (Prefill / TTFT): Time-to-First-Token depends on parallel matrix compute density. The 10-core GPU and upgraded 16-core Neural Engine on Apple M4 process input tokens at over 195 tokens/second, reducing time-to-first-token for a 500-token prompt to less than 45 milliseconds. On the M2, prompt ingestion averages 140 tokens/second, compared to 95 tokens/second on an A18 Pro.
- Token Generation Throughput: During decoding, the 120 GB/s memory bandwidth of the M4 drives extraordinary token velocities. Compact models such as Llama 3.2 3B generate at 58.4 tokens per second on M4 (compared to 27.6 tok/s on A18 Pro). On 16 GB hardware, Qwen 2.5 7B generates at 24.8 tokens per second, delivering reading speeds substantially faster than typical human comprehension.
- Thermal Headroom & Continuous Power Dissipation: Compact smartphone chassis weigh roughly 200 grams and rely on small internal vapor chambers or titanium frames, causing thermal throttling within 3 to 5 minutes of sustained GPU utilization. In contrast, the iPad Pro features an expansive aluminum chassis (444g to 580g) with internal graphite cooling sheets and copper Apple logo thermal dissipation on M4. The device dissipates continuous 8W to 10W loads with zero thermal throttling over 45 minutes of continuous inference.
For a comprehensive evaluation of native iPadOS software options, explore our guide to the best local AI app for iPad.
How to test it on your device
Compare a full-screen request with the same request while taking notes or reading a PDF. Keep the model fixed and check whether the chat retains its context when you return.
Context Scaling, KV Cache Overhead, and Stage Manager Multitasking
When running local models on an iPad Pro, memory consumption consists of static weight allocations combined with dynamic Key-Value (KV) attention caches. The KV cache footprint scales with context window depth according to the formula:
KV Memory = 2 × layers × kv_heads × head_dim × context_tokens × bytes_per_element
Architectures implementing Grouped-Query Attention (GQA), such as Llama 3.2 and Qwen 2.5, group attention heads into 8 KV key-value projections rather than 32 or 64 independent heads. This architectural optimization reduces KV cache memory consumption by 75% compared to legacy Multi-Head Attention (MHA) designs.
In addition, iPadOS users frequently leverage multitasking through Stage Manager or Split View, running Lapis alongside code editors, PDF readers, or document processors. Understanding this workflow requires careful resource consideration:
- Memory Coexistence: When running in Split View, active applications share the physical DRAM pool. On an 8 GB iPad Pro running a 3B model (~1.82 GB DRAM), over 4 GB of RAM remains available for web browsers and document editors without background app purging.
- Audio & Background Execution: Sandboxed iOS apps lose Metal compute priority when relegated to background state. Keeping Lapis visible in Stage Manager or utilizing foreground multitasking windows preserves uninterrupted GPU inference streams.
The guide to KV cache quantization explains how memory use changes as context grows.
Production Best Practices for iPadOS Edge Inference
To achieve peak performance, thermal longevity, and application stability when running language models locally on iPad Pro, implement the following engineering recommendations:
- Standardize on 4-Bit Affine Quantization: Utilize 4-bit group-wise quantization (group size 64) compiled specifically for Apple MLX. This minimizes memory bandwidth saturation during autoregressive decoding while preserving over 99% of original FP16 reasoning and benchmark scores.
- Align Model Scale with Hardware SKU: On 8 GB iPad Pro hardware (128 GB to 512 GB models), target sub-4B parameter architectures such as Llama 3.2 3B and Qwen 2.5 3B to maintain comfortable jetsam safety margins. Reserve 7B and 8B parameter models for 16 GB configurations (1 TB and 2 TB models).
- Manage Context Budgets Proactively: Limit active KV cache contexts to between 4,096 and 8,192 tokens for daily conversational tasks. Allocate larger 32k contexts only on 16 GB devices when performing extensive document analysis or multi-file summarization.
- Exploit Metal Zero-Copy Shaders with Lapis: By building natively upon Apple MLX and Metal Performance Shaders, Lapis allows the unified memory controller to feed model parameters directly to Apple M-series GPU execution cores without host-to-device memory duplication.
- Preserve True Air-Gapped Data Privacy: Verify that local inference executes with complete network isolation. By running entirely inside Apple Silicon unified memory, Lapis guarantees that sensitive intellectual property, legal transcripts, and private communications never transmit over external networks.
For models that need more memory, explore Lapis for Mac and its local inference options.
Sources and references
- LLM in a flash: Efficient Large Language Model Inference with Limited Memory
K. Alizadeh, I. Mirzadeh, D. Belenko, K. Voleti, M. Merler, S. Y. Kung (Apple / arXiv:2312.11514, 2023)
- com.apple.developer.kernel.increased-memory-limit
Apple Developer Documentation (Core Operating System & Memory Management, 2024)
- Qwen2.5 Technical Report
Qwen Team, Alibaba Group (arXiv:2412.15115, 2024)
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.