Live data from Hacker News

Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser

twitter.com

81–90 of 194 posts

Re: Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser

#81
post #9

Earlier quoted context omitted.

I don't think so. Chrome is already the most popular browser. If a website decides to use this they are just going to tell users to use Chrome. And then Chrome sustains its dominant position. It's the right strategy for them to further their dominance. And the right way to think about it isn't other browsers. It's Google seeing what Apple is doing in iOS 18 and imitating that.

> It's the right strategy for them. That's what people said about Internet Explorer

Which was only stopped by regulatory action which at the moment does not seem forthcoming. Would love to be wrong about that..

Re: Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser

#82
If they're going to cram a small LLM in the browser, they might as well start cramming a small image generating diffusion model + new image format to go along with it.

I believe we can start compressing down the amount of data going over the wire 100x this way...

Re: Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser

#83
post #35

See https://developer.chrome.com/docs/ai/built-in https://github.com/jeasonstudio/chrome-ai I can’t seem to find public documentation for the API with a cursory search, so https://github.com/jeasonstudio/chrome-ai/blob/ec9e334253713... might be the best documentation (other than directly inspecting the window.ai object in console) at the moment. It’s not really clear if the Gemini Nano here is Nano-1 (1.8B) or Nano-2…

1.8B/3.25B is still too much for edge devices. Ideally tens or hundreds mega would be ok. Is there an option to change the builtin Gemini Nano to other smaller models? By the way, haven't touch the lastest JS code for a while, what does this new syntax mean: "import { chromeai } " Also not get the textStream code: for await (const textPart of textStream) { result = textPart; } does result get override for each loop s…

`import { chromeai } from ...` is doing destructuring of the exported symbols of the module being imported. So, here it only imports the variable or type or function named chromeai.

Re: Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser

#84
Can someone specialized in applied machine learning explain how this is useful? In my opinion, general-purpose models are only useful if they're large, as they are more capable and produce more accurate outputs for certain tasks. For on-device models, fine-tuned ones for specific tasks have greater precision with the same size.

Re: Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser

#85

Earlier quoted context omitted.

1.8B/3.25B is still too much for edge devices. Ideally tens or hundreds mega would be ok. Is there an option to change the builtin Gemini Nano to other smaller models? By the way, haven't touch the lastest JS code for a while, what does this new syntax mean: "import { chromeai } " Also not get the textStream code: for await (const textPart of textStream) { result = textPart; } does result get override for each loop s…

`import { chromeai } from ...` is doing destructuring of the exported symbols of the module being imported. So, here it only imports the variable or type or function named chromeai.

[deleted]

Re: Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser

#86

If they're going to cram a small LLM in the browser, they might as well start cramming a small image generating diffusion model + new image format to go along with it. I believe we can start compressing down the amount of data going over the wire 100x this way...

> I believe we can start compressing down the amount of data going over the wire 100x this way...

What?

Re: Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser

#87
post #80

So they don't standardize things anymore? Look at WebNN [1]. It's from Microsoft and is basically DirecttML but they at least pretend to make it a Web thing. The posture matters. Apple tried to expose Metal through WebGPU [2] then silent-abandoned it. But they had the posture, and other vendors picked it up and made it real. That won't happen to window.ai until they stop sleepwalking. [1] https://www.w3.org/TR/webnn/…

Don't have to when you they have achived a functionally total monopoloy

IE6 had that as well, until it didn’t.

Re: Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser

#88
post #70
post #50

If we thought websites mining Monera in ads was bad, wait until every site sells its users’ CPU cycles on a gray market for distributed LLM processing!

but that’s not much useful if the model is nano. Webgpu would be a better point of misuse maybe

The latency to download all the weights would be a limiting factor on WebGPU. But if the weights are already downloaded and optimized locally…

Re: Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser

#89
post #36

My first impression is that this should enable approximately what Apple is doing with their AI strategy (local on-device first, then filling back to a first party API, and finally something like ChatGPT), but for web users. Having it native in the browser could be really positive for a lot of use cases depending on whether the local version can do things like RAG using locally stored data, and generate structured inf…

Apple might have an advantage given they’ll have custom hardware to drive it, and the ability to combine data from outside the browser with data inside it. But it’s an interesting idea.

Apple may have a bit of a lead in getting it actually deployed end-to-end but given the number of times I've heard "AI accelerator" in reference to mobile processors I'm pretty sure that silicon with 'NPUs' are probably all over the place already, and if they're not, they certainly will be, for better or worse. I've got a laptop with a Ryzen 7040, which apparently has XDNA processors in it. I haven't a damn clue how to use them, but there is apparently a driver for it in Linux[1]. It's hard to think of a mobile chipset launch from any vendor that hasn't talked about AI performance in some regards, even the Rockchip ARM processors seem to have "AI engines".

This is one of those places where Apple's vertical integration has a clear benefit, but even as a bit of a skeptic regarding "AI" technology, it does seem there's a good chance that accelerated ML inference is going to be one of the next battlegrounds for processor mobile performance and capability, if it hasn't started already.

[1]: https://github.com/amd/xdna-driver

Post reply on HN