4 ms·
what would it take to python -> wasm -> webgpu for the entire existing webgpu ecosystem (all of the libraries around neural networks, torch, yada yada)
by MuffinFlavored 4y ago
what would it take to python -> wasm -> webgpu for the entire existing webgpu ecosystem (all of the libraries around neural networks, torch, yada yada)
- grlass 4y agoThe Apache TVM machine learning compiler has a WASM and WebGPU backend, and can import from most DNN frameworks. Here's a project running Stable Diffusion with webgpu and TVM [1]. Questions exist around post-and-pre-processing code in folks' Python stacks, with e.g. NumPy and opencv. There's some NumPy to JS transpilers out there, but those aren't feature complete or fully integrated. [1] https://github.com/mlc-ai/web-stable-diffusion https://github.com/mlc-ai/web-stable-diffusion
- korijn 4y agoFYI you can already use webgpu directly in python, see https://github.com/pygfx/wgpu-py https://github.com/pygfx/wgpu-py for webgpu wrappers and https://github.com/pygfx/pygfx https://github.com/pygfx/pygfx for a more high level graphics library
- MuffinFlavored 4y agoI think I meant to ask "how is machine learning support for things like neural networks instead of graphical 2D/3D operations with WebGPU"?
- korijn 4y agoWell, you could implement that on top of the wrappers as well I guess. Anyway!
- MuffinFlavored 4y agoAs in, I could, but a library/libraries doing so do not yet exist?
- korijn 4y agoNot that I know of!