wgpu-mm
SHA256-WebGPU
wgpu-mm | SHA256-WebGPU | |
---|---|---|
1 | 5 | |
47 | 11 | |
- | - | |
8.7 | 0.0 | |
about 2 months ago | 4 months ago | |
WGSL | JavaScript | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
wgpu-mm
-
Chrome Ships WebGPU
This is very exciting! (I had suspected it would slip to 114)
WebGPU implementations are still pretty immature, but certainly enough to get started with. I've been implementing a Rust + WebGPU ML runtime for the past few months and have enjoyed writing WGSL.
I recently got a 250M parameter LLM running in the browser without much optimisation and it performs pretty well! (https://twitter.com/fleetwood___/status/1638469392794091520)
That said, matmuls are still pretty handicapped in the browser (especially considering the bounds checking enforced in the browser). From my benchmarking I've struggled to hit 50% of theoretical FLOPS, which is cut down to 30% when the bounds checking comes in. (Benchmarks here: https://github.com/FL33TW00D/wgpu-mm)
I look forward to accessing shader cores as they mentioned in the post.
SHA256-WebGPU
What are some alternatives?
stablehlo - Backward compatible ML compute opset inspired by HLO/MHLO
web-stable-diffusion - Bringing stable diffusion models to web browsers. Everything runs inside the browser with no server support.
wgpu-py - Next generation GPU API for Python
aioquic - QUIC and HTTP/3 implementation in Python
pygfx - A python render engine running on wgpu.
tfjs - A WebGL accelerated JavaScript library for training and deploying ML models.
webgpu-blas - Fast matrix-matrix multiplication on web browser using WebGPU
wgpu_glyph - A fast text renderer for wgpu (https://github.com/gfx-rs/wgpu)