You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will enable browser support. We'll need to shim some files:
io
network
tensor/ffi
It doesn't make sense to support anything besides WebGPU at this point. WASM + SIMD is around 15-20x slower on my machine[1]. Although WebGL is more widely supported today, it doesn't have the compute features needed for efficient modern ML (transformers etc) and will likely be a deprecated backend for other frameworks when WebGPU comes online.
This is exciting! A cool side effect is that this will add Deno support, since Deno supports WebGPU (since v1.8) just like the browser. I guess it may make sense to eventually support Deno via FFI too as their FFI performance catches up to Bun, but even if it does get added, WebGPU has its own set of advantages (safety, isomorphism, etc.), so it may even be preferred over FFI in some circumstances despite having somewhat lower performance.
Looks like WebGPU support may actually land (in Chromium, at least) early/mid next year - looking forward to having a play around with this and building some demos/benchmarks/etc when it does.
This will enable browser support. We'll need to shim some files:
It doesn't make sense to support anything besides WebGPU at this point. WASM + SIMD is around 15-20x slower on my machine[1]. Although WebGL is more widely supported today, it doesn't have the compute features needed for efficient modern ML (transformers etc) and will likely be a deprecated backend for other frameworks when WebGPU comes online.
[1]: In chrome canary, with Unsafe webGPU enabled try models here: https://tensorflow.github.io/tfjs/e2e/benchmarks/local-benchmark/index.html
The text was updated successfully, but these errors were encountered: