I noticed the inference is routed through the gpu rather than the Apple neural engine. Google’s engineers likely gave up on trying to compile custom attention kernels for Apple’s proprietary tensor blocks iirc. While Metal is predictable and easy to port to, it drains the battery way faster than a dedicated NPU. Until they rewrite the backend for the ANE, this is just a flashy tech demo rather than a production-ready…
Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference
151–160 of 196 posts
Re: Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference
#152Earlier quoted context omitted.
Edge Gallery does have NPU support, it needs you to install the beta of AICore on the Play Store, the Edge Gallery app has instructions.
Huh I didn't see those instructions when I tried it last week. Must not have looked closely enough. I do remember it not having NPU support (confirmed by other people) back at the Gemma 3 launch a while ago.
Re: Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference
#153I think this should be flagged.
Re: Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference
#154This is not meant as a criticism, but people should be aware of their limitations.
Re: Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference
#155Careful with using these small models. The other day, I asked it "Can dogs eat avocado" and answer was emphatic Yes. This is not meant as a criticism, but people should be aware of their limitations.
Re: Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference
#156Earlier quoted context omitted.
I think Apple will become increasingly draconian about LLMs. Very soon people won't need to buy many of their apps. They can just make them. This threatens Apple's entire business model.
It came out in the Epic trial that 90% of App Store revenue comes from in app purchases of loot boxes and other pay to win mechanics. Apple doesn’t care about revenue from a random TODO app.
Re: Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference
#157I noticed the inference is routed through the gpu rather than the Apple neural engine. Google’s engineers likely gave up on trying to compile custom attention kernels for Apple’s proprietary tensor blocks iirc. While Metal is predictable and easy to port to, it drains the battery way faster than a dedicated NPU. Until they rewrite the backend for the ANE, this is just a flashy tech demo rather than a production-ready…
Re: Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference
#158I noticed the inference is routed through the gpu rather than the Apple neural engine. Google’s engineers likely gave up on trying to compile custom attention kernels for Apple’s proprietary tensor blocks iirc. While Metal is predictable and easy to port to, it drains the battery way faster than a dedicated NPU. Until they rewrite the backend for the ANE, this is just a flashy tech demo rather than a production-ready…
> A new report says that Apple will replace Core ML with a modernized Core AI framework at WWDC, helping developers better leverage modern AI capabilities with their apps in iOS 27.
https://9to5mac.com/2026/03/01/apple-replacing-core-ml-with-...
Re: Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference
#159Earlier quoted context omitted.
Another related submission from 22 days ago : iPhone 17 Pro Demonstrated Running a 400B LLM (+700pts, +300cmts): https://news.ycombinator.com/item?id=47490070
That's very impressive but it's streaming in weights from flash storage. That's not really viable in a mobile context, it will use way too much power. Smaller models are way more applicable to typical use, perhaps with mid-sized models (like the Gemma4 26A4B model) using weights offload from SSD for rare uses involving slower "pro" inference.
Re: Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference
#160Unfortunately Apple appears to be blocking the use of these llms within apps on their app store. I've been trying to ship an app that contains local llms and have hit a brick wall with issue 2.5.2
In case someone don't know, this is the full text: > 2.5.2 Apps should be self-contained in their bundles, and may not read or write data outside the designated container area, nor may they download, install, or execute code which introduces or changes features or functionality of the app, including other apps. Educational apps designed to teach, develop, or allow students to test executable code may, in limited circ…
> execute code which introduces or changes features or functionality of the app,