Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Targeting WASI-NN and WebNN together #96

Open
mehmetoguzderin opened this issue Sep 3, 2020 · 5 comments
Open

Targeting WASI-NN and WebNN together #96

mehmetoguzderin opened this issue Sep 3, 2020 · 5 comments
Labels
Discussion topic Topic discussed at the workshop Opportunities and Challenges Opportunities and Challenges of Browser-Based Machine Learning Web Platform Foundations Web Platform Foundations for Machine Learning

Comments

@mehmetoguzderin
Copy link

mehmetoguzderin commented Sep 3, 2020

The "Introducing WASI-NN" talk mentions that the design of WASI-NN can be related to WebNN and teams work together for reviews:

inspired by the WebNN effort, and they have very similar model loader API.

Will it be possible to generalize this to most aspects of WASI-NN? If so, does that imply libraries (likely in a language like Rust or ReScript) that will target WebNN can target WASI-NN with ease in the future?

CC @anssiko

@anssiko
Copy link
Member

anssiko commented Sep 3, 2020

@mehmetoguzderin thank you, the proposal to approach interoperability through libraries in this case merits further investigation.

I'll let @mingqiusun and @abrown from WASI-NN and @huningxin from WebNN to share their thoughts on this, what are the possible obstacles in realizing that vision.

@anssiko anssiko added the Opportunities and Challenges Opportunities and Challenges of Browser-Based Machine Learning label Sep 3, 2020
@mingqiusun
Copy link
Collaborator

@mehmetoguzderin It depends on whether you want to target the library for browser or a standalone Wasm execution environment. If it is latter, WASI is the standard approach for any system calls. If it is the former, note that WASI is not currently targeting the browser environment, so you will need alternative approaches other than WASI.

@anssiko anssiko added the Web Platform Foundations Web Platform Foundations for Machine Learning label Sep 17, 2020
@dontcallmedom dontcallmedom added the Discussion topic Topic discussed at the workshop label Oct 9, 2020
@DanielHauschildt
Copy link

@mingqiusun I guress that with wasmer-js we have wasi in the browser. As such this problem can be solved. Would be interesting to run wasm-wasi in the browser and the cloud

Any thoughts on that?

@mingqiusun
Copy link
Collaborator

mingqiusun commented Feb 9, 2021

@DanielHauschildt Interesting. And if the package supports wasi-nn, it would work. Currently wasi-nn is very similar to webNN's loader API, so an implementation of wasi-nn would be a fairly straightforward mapping.

@anssiko
Copy link
Member

anssiko commented Feb 9, 2021

If the idea of "wasi in the browser" is explored further I'd be happy to invite involved folks to share their thoughts on one of the Web Machine Learning Community Group calls we run on a bi-weekly cadence. Please ping this issue for any movement in that space.

Another place to share ideas that sit at the Web & ML intersection is the proposals repo at https://github.com/webmachinelearning/proposals/

We'll keep an eye on that repo too and bring those proposals to the attention of the Community Group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion topic Topic discussed at the workshop Opportunities and Challenges Opportunities and Challenges of Browser-Based Machine Learning Web Platform Foundations Web Platform Foundations for Machine Learning
Projects
None yet
Development

No branches or pull requests

5 participants