11 ms·
Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference
- andsoitis 7mo agois there a comparison of it running on iPhone vs. Android phones?
- lrvick 7mo agoYou can run Android on just about anything so it boils down to Linux GPU benchmarks.
- fsiefken 7mo agoThat doesn't answer the question, I'm curious too. I think there's a speed and battery advantage on the A19 Pro chip compared to the Snapdragon 8 Elite Gen 5 chip, but to know for sure one has to run the same model used in the most efficient way on both machines (flagships ios and android).
- srslyTrying2hlp 7mo agoI dont think you should have been downvoted. Processing and memory are the only thing that matters. (Unless we are being so nontechnical now that we just say things like Pixel 9 is great...)
- jeroenhd 7mo agoRunning Gemma-4-E2B-it on an iPhone 15 (can't go higher than that due to RAM limitations) versus a Pixel 9 Pro, I don't really notice much of a difference between the two. The Pixel is a bit faster, but also a year more recent. The model itself works absolutely fine, though the iPhone thermal throttles at some point which really reduces the token generation speed. When I asked it to write me a business plan for a fish farm in the Nevada desert, it slowed down after a couple thousand tokens, whereas the Pixel seems to just keep going.
- veunes 7mo agoIt’s likely a llama.cpp backend issue. On the Pixel, inference hits QNN or a well-optimized Vulkan path that distributes the SoC load properly. On the iPhone, everything is shoved through Metal, which maxes out the GPU immediately and causes instant overheating. Until Apple opens up low-level NPU access to third-party models, iPhones will just keep melting on long-context prompts
- mistic92 7mo agoIt runs on Android too, with AI Core or even with llama.cpp
- srslyTrying2hlp 7mo agoIts more impressive when Apple does it because they are so far behind. I remember being excited when Apple got widgets because then I could add my 'Next Alarm time' to my home screen. Made my company work phone usable on trips. I wonder when they are going to get NVIDIA cards or CUDA? Then they can actually run LLMs and not just trick people into buying it under the 30 year old idea of 'Unified Memory'.
- bigyabai 7mo agoIt's kinda funny that macOS supported CUDA when it was a tech demo, but then ideologically objects to it once it's a $3 trillion business. They've had to be dragged kicking and screaming away from the NPU model only to admit that GPGPU tech was the right choice.
- srslyTrying2hlp 7mo agoYeah I remember that. Very Apple of them. 'Cool demo' -> Doesnt convert to tangible things. Wont attempt to compete with companies better than them, but go their own route. "oh look it consumes low power!" (Things no one cared about). They are the Nintendo of tech.
- bossyTeacher 7mo agoIs the output coherent though? I am yet to see a local model working on consumer grade hardware being actually useful.
- lrvick 7mo agoI run qwen3.5 122b on a Framework Desktop at 35/ts as a daily driver doing security and OS systems and software engineering. Never paid an LLM provider and I have no reason to ever start.
- mixermachine 7mo agoWhat spec of Framework Desktop do you run this on?
- breisa 7mo agoThere is only one and for this model you need the one with 128GiB RAM.
- the_pwner224 7mo agoIf you're looking to buy new hardware, also consider the Asus Rog Flow Z13. It has the same chip as the Framework desktop and is ~20% cheaper ($2,700) for the 128 GB spec while coming in a tablet/laptop form factor. It's capped at a slightly lower power but Strix Halo scales down very well in TDP - I never even use the max power mode on my Z13 because you don't really get any extra perf. The only downside is that I suspect the Framework would be a decent bit quieter under load (not that this thing is abnormally loud). As well as you're limited to a single M.2 2230 internal SSD slot in this (I believe Micron recently launched a 4 TB model, but generally you'll max out at 2 TB without using an external enclosure). I don't have anything against the Framework, I'm sure it's a great machine, but the Z13 is an incredible portable all-in-one device that can handle everything from general PC use to gaming to tablet/entertainment to LLMs & high perf.
- camillomiller 7mo ago[flagged]
- dax_ 7mo agoThat bugged me too, so I started looking at other articles - they all look AI generated to me. Whole website should be banned.
- stingraycharles 7mo agoI find it fascinating that after all this time reporters still don’t even bother to proofread content for obvious AI tells. I guess nobody really cares anymore?
- srslyTrying2hlp 7mo agoMy only issue with AI is that its so verbose. What we should encourage are people to simplify with AI. There was that literal 9 page rant by the other day and people had no idea what he was trying to say (too technical language, a poor writer, and seemingly unedited). That could have benefited greatly.
- tom2026hn 7mo ago[dead]
- macintux 7mo agoI'd rather ban comments complaining about it. Judge the content by its merits.
- pabs3 7mo ago> edge AI deployment Isn't the "edge" meant to be computing near the user, but not on their devices?
- pgt 7mo agoYour device is the ultimate edge. The next frontier would be running models on your wetware.
- hhh 7mo agoIt depends, because edge is a meaningless term and people choose what they want for it. In 2022, we set up a call with a vendor for ‘edge’ AI. Their edge meant something like 5kW, and our edge was a single raspberry pi in the best case.
- stingraycharles 7mo agoNo it does not. This is about as “edge” as AI gets. In a general sense, edge just means moving the computation to the user, rather than in a central cloud (although the two aren’t mutually exclusive, eg Cloudflare Workers)
- davidmurdoch 7mo agoFor sure. 1000%. Anyone disagreeing with this has lost their marbles. For those that have lost their marbles: sure, people use words incorrectly, but that does mean we all have to use those words incorrectly. In compute vernacular, "edge" means it's distributed in a way that the compute is close to the user (the "user" here is the device, not a person); "on device" means the compute is on the device. They do not mean the same thing.
- codybontecou 7mo agoUnfortunately 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
- CubsFan1060 7mo agoThough of course Apple's rules aren't always consistent, I have 2 separate apps currently on my phone that can/are running this (Google's Edge Gallery and Locally AI)
- cyanydeez 7mo agoCan't be just a SaaSpocolypse. LLMs with the right harness could obliterate much of the TODO+ apps with a general assistant. But it's more likely it's just walled garden + security theatre that'll keep them from allowing outside apps.
- varispeed 7mo agoWouldn't trust AI to run TODO, especially weak models. They can hallucinate tasks, forget to remind etc.
- tapvt 7mo agoLLMs are stateless. But given an actual database of task-shaped items and some work, I could see the potential. With a canonical source of truth, and set input/output expectations, the potential blast radius is quite small.
- karimf 7mo agoRelated: Gemma 4 on iPhone (254 comments) - https://news.ycombinator.com/item?id=47652561 https://news.ycombinator.com/item?id=47652561
- redbell 7mo agoAnother related submission from 22 days ago : iPhone 17 Pro Demonstrated Running a 400B LLM (+700pts, +300cmts): https://news.ycombinator.com/item?id=47490070 https://news.ycombinator.com/item?id=47490070
- zozbot234 7mo agoThat'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.
- hadlock 7mo ago10 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.
- zozbot234 7mo ago10 minutes a day or 15 minutes a day is what the inference workload is like on fairly small models. Once you start streaming in weights from SSD, things slow down quite a bit and become quite power hungry.
- logicallee 7mo agoFor those who would like an example of its output, I'm currently working through creating a small, free (cc0, public domain) encyclopedia (just a couple of thousand entries) of core concepts in Biology and Health Sciences, Physical Sciences, and Technology. Each entry is being entirely written by Gemma 4:e4b (the 10 GB model.) I believe that this may be slightly larger than the size of the model that runs locally on phones, so perhaps this model is slightly better, but the output is similar. Here is an example entry: https://pastebin.com/ZfSKmfWp https://pastebin.com/ZfSKmfWp Seems pretty good to me!
- everyday7732 7mo agoWhat's your goal? Do you have a project you want the encyclopedia for?
- logicallee 7mo agoI've now published the encyclopedia.[1] I wrote the goals on that page, which are educational. Or you can use it to judge the state of Gemma 4 and its knowledge of these areas. [1] https://stateofutopia.com/encyclopedia/ https://stateofutopia.com/encyclopedia/
- usmanshaikh06 7mo agoESET is blocking this site saying: Threat found This web page may contain dangerous content that can provide remote access to an infected device, leak sensitive data from the device or harm the targeted device. Threat: JS/Agent.RDW trojan
- zache6 7mo agoSame on my device.
- ValleZ 7mo agoThere are many apps to run local LLMs on both iOS & Android
- srslyTrying2hlp 7mo agoOnce you realize Apple and Nintendo have 'understandings' with media outlets, you will start to realize this is just marketing.
- temp7000 7mo agoIs it me, or does the article sound like LLM output? The pattern "It's not mere X — it's Y", occurs like 4 times in the text :v
- bearjaws 7mo agoWould love to see a show down of performance on iPhone vs Googles Tensor G5, which in my experience the G5 is 2 full generations behind performance wise.
- Chrisszz 7mo agoI just installed Google Ai Edge Gallery on my iPhone 16 pro, here are the results of the first benchmark with GPU, Prefill Tokens=256, Decode Tokens=256, Number of runs: 3. Prefill Speed=231t/s, Decode Speed=16t/s, Time to First Token=1.16s, First init time=20s
- conception 7mo agoI’m pretty excited about the edge gallery ios app with gemma 4 on it but it seems like they hobbled it, not giving access to intents and you have to write custom plugins for web search, etc. Does anyone have a favorite way to run these usefully? ChatMCP works pretty well but only supports models via api.
- the_inspector 7mo agoYou are referring to the edge models, right? E2B and E4B, not the bigger ones (26B, 31B)...
- grimm7000 7mo ago[dead]
- grimmai143 7mo agoDo you know of a way of running these models on Android? Also, what does the thermal throttling look like?
- robmccoll 7mo agoEdge Gallery by Research at Google
- DoctorOetker 7mo agodoes anyone know of a decent but low memory or low parameter count multilingual model (as many languages as possible), that can faithfully produce the detailed IPA transcription given a word in a sentence in some language? I want to test a hypothesis for "uploading" neural network knowledge to a user's brain, by a reaction-speed game.
- estimator7292 7mo agoEspeak-ng. You don't need a neural network. Traditional NLP is far better at this task. The keyword you're looking for is "phoenemizer"
- DoctorOetker 7mo agocan Espeak-ng provide the IPA transcription? or does it produce sound? I'm surprised traditional NLP being better than ML models for this task, can you point me to a benchmark analysis pointing out that non-neural Espeak-ng is better than ML models? Also, I asked for a neural model for another reason as well, I still want semantic knowledge present, I want more than pronunciation, but before I use myself as a test subject, I want to make sure I get the proper pronunciation in case the highly speculative "uploading game" works... I don't want to early systematically mis-train myself on pronunciation...
- mfro 7mo agoStrangely, it is super fast on my 16 Plus, but with longer messages it can slow down a LOT, and not because of thermal throttling. I wish I could see some diagnostic data.
- steve-atx-7600 7mo agoInference from an LLM is O(tokens^2)
- halJordan 7mo agoOnly in the naive implementations of attention
- jimbokun 7mo agoI feel like UX and API design are very under explored. What are the possibilities of an Android or iOS device where the OS is centered around a locally running LLM with an API for accessing it from apps, along with tools the LLM can call to access data from locally running apps? What’s the equivalent of the original Mac OS? Do apps disappear and there’s just a running dialog with the LLM generating graphical displays as needed on demand?
- blixt 7mo agoI made this offline pocket vibe coder using Gemma 4 (works offline once model is downloaded) on an iPhone. It can technically run the 4B model but it will default to 2B because of memory constraints. https://github.com/blixt/pucky https://github.com/blixt/pucky It writes a single TypeScript file (I tried multiple files but embedded Gemma 4 is just not smart enough) and compiles the code with oxc. You need to build it yourself in Xcode because this probably wouldn't survive the App Store review process. Once you run it, there are two starting points included (React Native and Three.js), the UX is a bit obscure but edge-swipe left/right to switch between views.
- mandeepj 7mo agoYou might find it useful - https://news.ycombinator.com/item?id=45129160 https://news.ycombinator.com/item?id=45129160 I think react native can be switched with swift
- deckar01 7mo agoThey still don’t render the markdown (or LaTeX) it outputs.
- rich_sasha 7mo agoOffline or not, I'm sure Google uploads every keystroke, phone orientation, photo, WiFi endpoints and your shoe size when you interact with it. To enhance your experience.
- tsycho 7mo ago> ...your shoe size The funny thing is that a lot of Google's internal training content uses an imaginary product "gShoe", and discusses the privacy implications of data that such a shoe might collect :D
- declan_roberts 7mo agoApple is paying Google $1billion for an AI strategy that runs on device. We're seeing the preview of what that will look like.
- adrian17 7mo agoThey released the source (well, currently only the Android version) at https://github.com/google-ai-edge/gallery https://github.com/google-ai-edge/gallery . At a glance, I see they do gather analytics about how much the app is used (model downloads, model invocations etc) without message content, pretty much just the model used.
- declan_roberts 7mo agoI really hope this is a preview of the replacement for Siri that Google is creating bc these models are fantastic for their size!
- halJordan 7mo agoGoogle is not creating a replacement for anything. Apple is getting a base Gemini model (not a Gemma), and it will run on Apple private compute. Apple foundational models will remain the on device model
- veunes 7mo agoI 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 tool
- tjoff 7mo agoI'm certainly fine with it drawing some power. Running background processes might motivate the use of NPU more but don't exactly feel like a pressing need. Actively listen to you 24/7 and analyze the data isn't a usecase I'm eager to explore given the lack of control we have of our own devices.
- the_pwner224 7mo ago> Google’s engineers likely gave up on trying to compile custom attention kernels for Apple’s proprietary tensor blocks iirc. The AI Edge Gallery app on Android (which is the officially recommended way to try out Gemma on phones) uses the GPU (lacks NPU support) even on first party Pixel phones. So it's less of "they didn't want to interface with Apple's proprietary tensor blocks" and more of that they just didn't give a f in general. A truly baffling decision.
- satvikpendem 7mo agoEdge Gallery does have NPU support, it needs you to install the beta of AICore on the Play Store, the Edge Gallery app has instructions.
- the_pwner224 7mo agoHuh 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.
- juancn 7mo agoGemma4 is still power hungry since it tends to activate pretty much every weight. qwen3-coder-next uses a lot less since it seems to only activate ~3B parameters at a time. My guess is that this is still close to tech demo, and a lot of performance is left on the table.
- fancyfredbot 7mo agoThe article is about two models which have either 2B or 4B parameters. Both are dense models. The 2B version will certainly use less power than qwen3-coder-next. The models are quite good. They aren't just a tech demo.
- abstracthinking 7mo agoI don't see the value in this post, are hacker news post being upvoted by bots?
- sieabahlpark 7mo ago[dead]
- politelemon 7mo agoThis is HN clickbait. No details or evidence, this is just generated for votes. I think this should be flagged.
- abc_lisper 7mo agoCareful 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.
- jacobr1 7mo agowell, technically they can ...
- DaiPlusPlus 7mo ago...once