Live data from Hacker News

Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference

gizmoweek.com

151–160 of 196 posts

Re: Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference

#151
post #116

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…

The ANE is not a fast or realistic way to infer modern LLMs.

Re: Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference

#152

Earlier 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.

Yes they added it for Gemma 4. Maybe it detects whether your phone has an NPU or not too. I have a OnePlus 15 which does have it.

Re: Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference

#155

Careful 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.

well, technically they can ...

Re: Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference

#156

Earlier 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.

truly a k-shaped economy we live in

Re: Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference

#157
post #116

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…

Isn’t Apple paying Google billions of dollars to license these things? Surely they should make it easier to compile for their native engines…

Re: Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference

#158
post #116

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…

It will be interesting to see how things change in a couple of months at WWDC, when Apple is said to be replacing their decade old CoreML framework with something more geared for modern LLMs.

> 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

#159
post #29

Earlier 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.

10 minutes a day of extreme power usage is probably fine for people asking for directions to the store, setting calendar reminders, timers, checking for important emails etc. AI on your phone will be incredibly useful but power usage doesn't matter when total usage is less than 15 minutes per day. I don't think the average person expects to vibe code on the phone for 8 hours a day.

Re: Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference

#160
post #149

Unfortunately 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…

A vibe coding app that generates new executable code and runs it would:

> execute code which introduces or changes features or functionality of the app,

Post reply on HN