frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Google AI Edge – On-device cross-platform AI deployment

https://ai.google.dev/edge
220•nreece•1d ago

Comments

davedx•1d ago
More information here: https://ai.google.dev/edge/mediapipe/solutions/guide

(It seems to be open source: https://github.com/google-ai-edge/mediapipe)

I think this is a unified way of deploying AI models that actually run on-device ("edge"). I guess a sort of "JavaScript of AI stacks"? I wonder who the target audience is for this technology?

wongarsu•1d ago
Some of the mediapipe models are nice, but mediapipe has been around forever (or 2019). It has always been about running AI on the edge, back when the exciting frontier of AI were visual tasks.

For stuff like face tracking it's still useful, but for some other tasks like image recognition the world has changed drastically

babl-yc•1d ago
I would say the target audience is anyone deploying ML models cross-platform, specifically ones that would require supporting code beyond the TFLite runtime to make it work.

LLMs and computer vision tasks are good examples of this.

For example, a hand-gesture recognizer might require: - Pre-processing of input image to certain color space + image size - Copy of image to GPU memory - Run of object detection TFLite model to detect hand - Resize of output image - Run of gesture recognition TFLite model to detect gesture - Post processing of gesture output to something useful

Shipping this to iOS+Android requires a lot of code beyond executing TFLite models.

The Google Mediapipe approach is to package this graph pipeline, and shared processing "nodes" into a single C++ library where you can pick and choose what you need and re-use operations across tasks. The library also compiles cross-platform and the supporting tasks can offer GPU acceleration options.

One internal debate Google likely had was whether it was best to extend TFLite runtime with these features, or to build a separate library (Mediapipe). TFLite already supports custom compile options with additional operations.

My guess is they thought it was best to keep TFLite focused on "tensor based computation" tasks and offload broader operations like LLM and image processing into a separate library.

yeldarb•1d ago
Is this a new product or a marketing page tying together a bunch of the existing MediaPipe stuff into a narrative?

Got really excited then realized I couldn’t figure out what “Google AI Edge” actually _is_.

Edit: I think it’s largely a rebrand of this from a couple years ago: https://developers.googleblog.com/en/introducing-mediapipe-s...

rvnx•1d ago
Make your own opinion here: https://mediapipe-studio.webapps.google.com/studio/demo/imag...

Go to this page using your mobile phone.

I am apparently a doormat or a seatbelt.

It seems to be a rebranded failure. At Google you get promoted for product launches because of the OKRs system and more rarely for maintenance.

tfsh•1d ago
Perhaps you missed the associated documentation? This is a classification tool which requires input labels "uses an EfficientNet architecture and was trained using ImageNet to recognize 1,000 classes, such as trees, animals, food, vehicles".

The full list [1] doesn't seem to include a human. You can tweak the score threshold to reduce false positives.

1: https://storage.googleapis.com/mediapipe-tasks/image_classif...

rvnx•1d ago
You're right about human, that would explain it, but still I find it surprising that such "common item" as a human is not there.

Did you also try on items from the list ?

If there is a match (and this is not frequent), to me it's still very low confidence (like noise or luck).

It seems to be a repacking of https://blog.tensorflow.org/2020/03/higher-accuracy-on-visio...

So an old release from 5 years ago (like very long time in AI-world), and AFAIK it has been superseded by YOLO-NAS and other models. MediaPipe feels really old tool, except for some specific subtasks like face tracking.

And as a side-note, the OKR-system at Google is a very serious thing, there are lot of people internally gaming the system, and that could explain why it is a "new" launch, instead of a rather disappointing rebrand of the 2020-version.

I'd rather recommend building on more modern tools, such as: https://huggingface.co/spaces/HuggingFaceTB/SmolVLM-256M-Ins... (runs on iPhone with < 1GB of memory)

bigyabai•1d ago
> And as a side-note, the OKR-system at Google is a very serious thing, there are lot of people internally gaming the system.

So you came here to offer a knee-jerk assessment of an AI runtime and blamed the failure on OKRs. Then somebody points out that your use-case isn't covered by the model, and you're looping back around to the OKR topic again. To assess an AI inference tool.

Why would you even bother hitting reply on this post if you don't want to talk about the actual topic being discussed? "Agile bad" is not a constructive or novel comment.

danielb123•1d ago
Years behind what is already available through frameworks like CoreML and TimyML. Plus Google has to first prove they won't kill the product to meet the next quarterly investor expectations.
spacecadet•1d ago
Its just a rebranded tensorflow lite, Ive been using that on edge devices since 2019... CoreML is great too!
babl-yc•1d ago
This isn't really true. They are different offerings.

CoreML is specific to the Apple ecosystem and lets you convert a PyTorch model to a CoreML .mlmodel that will run with acceleration on iOS/Mac.

Google Mediapipe is a giant C++ library for running ML flows on any device (iOS/Android/Web). It includes Tensorflow Lite (now LiteRT) but is also a graph processor that helps with common ML preprocessing tasks like image resizing, annotating, etc.

Google killing products early is a good meme but Mediapipe is open source so you can at least credit them with that. https://github.com/google-ai-edge/mediapipe

I used a fork of Mediapipe for a contract iOS/Android computer vision product and it was very complex but worked well. A cross-platform solution would not have been possible with CoreML.

NetOpWibby•1d ago
I wish MediaPipe was good for facial AR but in my experience it’s lacking.
bigyabai•1d ago
My brother in Christ, CoreML only exists because Apple saw Tensorflow and wanted the featureset without cooperating on a common standard. TF was like 2 years old (and fairly successful) by the point CoreML was announced. To this day CoreML is little more than a proprietary BLAS interface, with nearly zero industry buy-in.

Terrifying what being an iOS dev does to a feller.

elpakal•1d ago
The generative AI piece is not available in Apple ecosystems right? I think that would be huge and I really hope Apple gives us something similar. And I gotta say the chat piece of this seems really useful too.

Also where the f is Swift Assist already

mattnewton•1d ago
Tensorflow light has been battle tested on literal billions of devices over the years and this looks like a rebrand/extension of that plus media pipe, one of the biggest users of it. Google has been serious about on device ML for over 5 years now, I don't think they are going to kill this. Confusingly rebrand it maybe :)
coderatlarge•6h ago
is it possible to go to the iPhone app store and get an app that is essentially an ollama like model downloader and launcher?
zb3•1d ago
So can we run Gemma 3n on linux? So much fluff yet this is unclear to me.
quaintdev•1d ago
As far as I know it's based on Gemini nano architecture which exclusively runs on Android and Chrome. So I'm guessing you can't run it on Linux outside Chrome.
saratogacx•23h ago
In the model's community section Goog confirms they're working on a gguf version so you can host it like most other models.

https://huggingface.co/google/gemma-3n-E4B-it-litert-preview...

ricardobeat•1d ago
This is a repackaging of TensorFlow Lite + MediaPipe under a new “brand”.
echelon•23h ago
The same stuff that powers this?

https://3d.kalidoface.com/

It's pretty impressive that this runs on-device. It's better than a lot of commercial mocap offerings.

AND this was marked deprecated/unsupported over 3 years ago despite the fact it's a pretty mature solution.

Google has been sleeping on their tech or not evangelizing it enough.

hatmanstack•1d ago
Played with this a bit and from what I gathered it's purely a re-arch of pytorch models to work as .tflite models, at least that's what I was using it for. It worked well with a custom finbert model with negligible size reduction. It converted a quantized version but outputs were not close. From what I remember of the docs it was created for standard pytorch models, like "torchvision.models", so maybe with those you'd have better luck. Granted, this was all ~12 months ago, sounds like I might have dodged a pack of Raptors?
stanleykm•1d ago
i really wish people who make edge inference libraries like this would quit rebranding them every year and just build the damn things to be fast and small and consistently updated.
bigyabai•1d ago
ONNX exists but since they don't change their name very often not a whole lot of people know about it.
pzo•15h ago
ONNXRuntime is actually quite popular mostly because Hugging Face transformers - many people just don't know they using it under the hood. What is missing is transformers native so you can easily deploy it not only on desktops and servers. Transformers.js is some kind of attempt - can deploy on Web and React Native.
arbayi•1d ago
https://github.com/google-ai-edge/gallery

A gallery that showcases on-device ML/GenAI use cases and allows people to try and use models locally.

roflcopter69•20h ago
Genuine question, why should I use this to deploy models on the edge instead of executorch? https://github.com/pytorch/executorch

For context, I get to choose the tech stack for a greenfield project. I think that executor h, which belongs to the pytorch ecosystem, will have a way more predictable future than anything Google does, so I currently consider executorch more.

6gvONxR4sf7o•18h ago
For one thing, executorch is currently full of sharp edges. No idea about this, but i had bad experience with ET. If i were starting over, I might start from torch.fx and automate from there. fx is stable and should be around for a while.
salamo•20h ago
Really happy to see additional solutions for on-device ML.

That said, I probably wouldn't use this unless mine was one of the specific use cases supported[0]. I have no idea how hard it would be to add a new model supporting arbitrary inputs and outputs.

For running inference cross-device I have used Onnx, which is low-level enough to support whatever weights I need. For a good number of tasks you can also use transformers.js which wraps onnx and handles things like decoding (unless you really enjoy implementing beam search on your own). I believe an equivalent link to the above would be [1] which is just much more comprehensive.

[0] https://ai.google.dev/edge/mediapipe/solutions/guide

[1] https://github.com/huggingface/transformers.js-examples

6gvONxR4sf7o•18h ago
Anybody have any experience with this? I just spend a while contorting a custom pytorch model to get it to export to coreml and it was full of this that and the other not being supported, or segfaulting, and all sorts of silly errors. I'd love if someone could say this isn't full of sharp edges too.
smeej•18h ago
I got it all set up and tested out Gemma3 1B on a Pixel 8a. That only took a few minutes, which was nice.

But it was garbage. It barely parsed the question, didn't even attempt to answer it, and replied in what was barely serviceable English. All I asked was how it was small enough to run locally on my phone. It was bad enough for me to abandon the model entirely, which is saying a lot, because I feel like I have pretty low expectations for AI work in the first place.

throwaway314155•14h ago
> All I asked was how it was small enough to run locally on my phone

Bit off-topic, but did you expect to see a real or honest answer about itself? I see many people under the impression that models know information about themselves that isn't in the system prompt. Couldn't be further from the truth. In face, those questions specifically lead to hallucinations more often resulting in an overconfident assertion with a "reasonable" answer.

The information the model knows (offline - no tools allowed) stops weeks if not months if not years prior to when the model is done training. There is _zero_ information about its inception, how it works, or anything similar in its weights.

Sorry, this is mostly directed at the masses - not you.

smeej•7h ago
Not really, but I did expect an answer, or at least a non-answer, that showed it understood the question, and that an answer was expected.
DrSiemer•3h ago
Why would you ask a 1B model anything? Those are only useful for rephrasing output at best.
suilk•17h ago
How about the MNN engine?
synergy20•17h ago
Can this run on customized embedded devices? or just for phones.
synergy20•15h ago
it does support python and web, and runs on raspberry pi.
init0•15h ago
This can be done with WebLLM, no?
pzo•14h ago
My take: tensorflow lite + mediapipe was great but google really neglected it in the last 3 years or so. Mediapipe didn't have many meaningful update in last 3 years. A lot of models today are outdated or slow. TF Lite supported NPU (like apple ANU) but mediapipe never did. They had also too much mess with different branding: MLKit, Firebase ML, TF lite, LiteRT.

This days probably better to stick with onnxruntime via hugging face transformers or transformers.js library or wait until executorch mature. I haven't seen any SOTA model officially released having official port to tensorflow lite / liteRT for a long time: SAM2, EfficientSAM, EdgeSAM, DFINE, DEIM, Whisper, Lite-Whisper, Kokoro, DepthAnythingV2 - everything is pytorch by default but with still big communities for ONNX and MLX

The LLM Engineer's Almanac

https://modal.com/llm-almanac/advisor
1•pierremenard•24s ago•0 comments

Exhumation and Reburial of Richard III of England

https://en.wikipedia.org/wiki/Exhumation_and_reburial_of_Richard_III_of_England
1•cpach•1m ago•0 comments

Your Cat Knows Your Scent

https://www.nytimes.com/2025/05/28/science/cat-scent-humans.html
1•bookofjoe•8m ago•2 comments

Show HN: Transform Years of Content into a Conversational Knowledge Base

https://blog.marcolancini.it/2025/blog-ask-ai-chat-with-newsletters/
1•okram87•8m ago•0 comments

RSS 2.0 Specification (2009)

https://www.rssboard.org/rss-specification
2•susam•8m ago•0 comments

Purchase power parity adjusted USD conversion rate, per country

https://www.imf.org/external/datamapper/PPPEX@WEO/OEMDC/GUY/COL
1•o999•10m ago•0 comments

xAI plans $300M share sale to allow for new investors: report

https://www.msn.com/en-us/money/other/xai-plans-300m-share-sale-to-allow-for-new-investors-report/ar-AA1FWGrj
1•StanAngeloff•11m ago•0 comments

Tailscale Coordination Server Outage

https://status.tailscale.com/
3•tosh•11m ago•1 comments

Why Is NASA Shuttering This Iconic Institute in New York City?

https://www.scientificamerican.com/article/nasas-goddard-institute-for-space-studies-faces-eviction-under-trump-plan/
2•BeetleB•12m ago•0 comments

Cyber companies hope to untangle weird hacker nicknames

https://www.reuters.com/sustainability/boards-policy-regulation/forest-blizzard-vs-fancy-bear-cyber-companies-hope-untangle-weird-hacker-2025-06-02/
1•jmsflknr•12m ago•0 comments

Can I stop drone delivery companies flying over my property?

https://www.rte.ie/brainstorm/2025/0602/1481005-drone-delivery-companies-property-legal-rights-airspace/
2•austinallegro•12m ago•0 comments

How to Convince People to Care and Invest in Accessibility

https://stephaniewalter.design/blog/how-to-convince-people-to-care-and-invest-in-accessibility/
2•ulrischa•15m ago•2 comments

Ask HN: how should we complain about companies posting in "who's hiring"

1•jorisboris•16m ago•1 comments

My "tiny" Product Hunt alternative made $5.6k in revenue last month

2•jaisalrathee•16m ago•1 comments

Show HN: Ttok.com – Remove the "IK" from TikTok URL's to Download as MP3 or MP4

https://ttok.com/
2•nadermx•17m ago•1 comments

Script Debugger Retired

https://latenightsw.com/script-debugger-retired/
1•nozzlegear•17m ago•0 comments

Monthly Minimum Fee

https://support.portal.flexport.com/hc/en-us/articles/29209904545943-Monthly-Minimum-Fee
1•ilamont•17m ago•0 comments

Hardening fixes lead to hard questions

https://lwn.net/SubscriberLink/1023502/da93507e91908660/
1•jwilk•18m ago•0 comments

Beyond Basic Prompts: Directing LLMs with Convergent and Divergent Instructions

https://ailookingglass.blogspot.com/2025/05/beyond-basic-prompts-directing-llms.html
1•jsphcodes•19m ago•1 comments

Proof: Gut microbial breakdown of fibre cuts cardiovascular disease risk by 20%

https://www.monash.edu/news/articles/first-proof-that-activation-of-receptors-involved-in-the-gut-microbial-breakdown-of-fibre-cuts-cardiovascular-disease-risk-by-20-per-cent
1•gnabgib•20m ago•0 comments

Show HN: GoogLLM – Google search that returns Markdown instead of HTML

https://googllm.com
3•janwilmake•20m ago•0 comments

Paper Review: Deploying Big Neural Nets in 2015

https://theahura.substack.com/p/ilyas-30-papers-to-carmack-deploying
2•theahura•22m ago•0 comments

Show HN: BackendIM – AI Powered Platform to Generate, Deploy and Test Backend

https://backend.im
1•mayowaibitola•22m ago•1 comments

Ask HN: Local AI for Handwriting Transcription?

2•i4i•23m ago•0 comments

Linux user share hits a multi-year high on Steam for May 2025

https://www.gamingonlinux.com/2025/06/linux-user-share-hits-a-multi-year-high-on-steam-for-may-2025/
4•haunter•23m ago•0 comments

Ask HN: Is FAANG job dream dead?

2•throwaway_fangt•26m ago•1 comments

Electric scooters are driving China's salt battery push

https://www.bbc.com/future/article/20250530-how-electric-scooters-are-driving-chinas-salt-battery-push
3•ndsipa_pomu•26m ago•0 comments

Let's Just Stop Writing Long-Form Profiles of Nazis (2017)

https://www.currentaffairs.org/news/2017/11/lets-just-stop-writing-long-form-profiles-of-nazis
1•Tomte•26m ago•0 comments

Ask HN: Using GPT as a logic circuit instead of a text generator – Anyone tried?

1•GENIXUS•26m ago•3 comments

Red Hat just transformed enterprise server Linux

https://www.zdnet.com/article/how-red-hat-just-quietly-radically-transformed-enterprise-server-linux/
3•CrankyBear•29m ago•1 comments