Live data from Hacker News

Ask HN: What's the idea behind the WebNN API?

news.ycombinator.com

11–14 of 14 posts

Re: Ask HN: What's the idea behind the WebNN API?

#11
post #10

MS and Apple already have/will have/build ai features into the OS and intel is also adding AI cores to laptop CPUs. So when you have a webbrowser based photo editor or other tools, you can build things which do not require a backend server. Not everything has to run remote and without such an API you can't use it locally. Perhaps this will allow me/us to write a website for a local agent as well or an assitant.

The question is more boring than that. I agree that running models in the browser would be cool. The question is, where are the models coming from? If they're downloaded & stored for each website, that's going to get out of hand very quickly. It seems to make sense for browsers to ship with some useful default models, but that doesn't seem to be what the specification is for.

They could run in your local company infrastructure or on my own desktop pc.

I would be happily running my custom agent models on my gpu without sharing those models and still being able to use the browser as an interface.

Re: Ask HN: What's the idea behind the WebNN API?

#12
post #4
post #3

Earlier quoted context omitted.

That's true for chess engines, but almost every use-case listed in the WebNN specification currently requires a fairly large model. Certainly not things you would want every website downloading duplicate copies of.

> almost every use-case listed in the WebNN specification currently requires a fairly large model Do they? At least some of them seem much smaller than Stockfish's NNUE.

Could be I suppose, but what about others? I guess the problem I see is that any given webapp might need to download & store several gigabytes.

If the models were built into the browser, the browser would need to download & store the model data, but that can at least be a lot more efficient than websites doubling up on download & storage of models.

Re: Ask HN: What's the idea behind the WebNN API?

#13
post #9
post #8

expect browse/os to ship models and website llms will be just like font/colors in the 90s. web-safe-models heh.

That's pretty much what I would have expected. I think it makes the most sense for users, since you wouldn't really want to download & store large models for each website. This is not what is covered in the WebNN specification though, and I've yet to hear of any effort to include models in browsers.

yeah, but then it os basically: open on siri/bixby/bard depending on your os.... so, same as doing nothing and sending you to the local app
Post reply on HN