Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference
TL;DR Highlight
Gemma 4 runs fully offline on iPhone's GPU via the Google AI Edge Gallery app.
Who Should Read
Mobile or backend developers weighing on-device LLMs for apps without server APIs
Core Mechanics
- Gemma 4 runs offline on iPhone
- Google's open-source Gemma 4 does fully local inference on iPhones.
- No API calls and no cloud dependency.
- Setup is one App Store app
- Download Google AI Edge Gallery from the App Store and pick a model variant to run inference.
- It also bundles image recognition, voice interaction, and an extensible Skills framework.
- E2B and E4B are the mobile models
- Both are engineered for mobile deployment, favoring efficiency over raw capability.
- Google's app nudges users toward E2B because it is faster and lighter for memory and thermal limits.
- 31B sits alongside Qwen 3.5 27B
- Early benchmarks put the 31B next to Qwen 3.5's 27B, with Gemma about 4B parameters larger.
- Neither wins across every task.
- Inference runs on the iPhone GPU
- The article says responses arrive with notably low latency.
- It argues offline use suits field work, healthcare, and settings where privacy rules out the cloud.
Community Reactions
- Battery concern over the GPU path
- One commenter says inference goes through the GPU instead of the Apple Neural Engine and drains battery faster.
- They call it a tech demo until the backend targets the ANE.
- iPhone 16 Pro benchmark numbers shared
- One user ran GPU, prefill 256, decode 256, 3 runs: prefill 231 t/s, decode 16 t/s, first token 1.16s, init 20s.
- Another found it fast on a 16 Plus but much slower on longer messages, not from thermal throttling.
- App Store review can block it
- One developer shipping an app with local LLMs reported hitting guideline 2.5.2.
- Another built an offline coding app with Gemma 4 that must be built via Xcode and defaults to 2B due to memory limits.
- Small-model limits noted
- One user says it answered "Can dogs eat avocado" with an emphatic yes.
- Others say Edge Gallery lacks intents access, needs custom plugins for web search, and doesn't render markdown or LaTeX.
How to Apply
- Benchmark E2B in Edge Gallery
- Install Google AI Edge Gallery on a test iPhone today and download E2B.
- Run the in-app benchmark and record prefill, decode, and time to first token as your baseline.
- Check accuracy with your own prompts
- Feed 20 real questions from your service to E2B and E4B and verify answers by hand.
- If factual errors are common, narrow local use to summarizing or classification.
- Move only offline-critical features local
- Pick features that must work offline or can't use the cloud for privacy.
- Keep your existing API for the rest.
- Check App Store review risk before launch
- Local-LLM apps have been blocked under guideline 2.5.2, so decide the distribution route first.
- If approval is uncertain, evaluate alternatives such as internal distribution.
Try It
# Paste into Claude or ChatGPT (simple prompt to test on-device small model fit)
You are a QA engineer evaluating on-device LLM adoption.
Our service: {{service description}}
Feature to handle with a local model: {{feature}}
1. Create 20 test questions: 8 factual, 8 summarization/classification, 4 safety common-sense.
2. Write a one-line expected-answer criterion for each.
3. Mark questions where a wrong answer from a small model (E2B class) would be critical.
4. Output as a table.Terminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
OpenAI still has a WebRTC Problem
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls