wgpu-py | wgpu-mm | |
---|---|---|
5 | 1 | |
371 | 47 | |
2.7% | - | |
8.6 | 8.7 | |
5 days ago | about 2 months ago | |
Python | WGSL | |
BSD 2-clause "Simplified" License | - |
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-py
- Pygfx/wgpu-py: Next generation GPU API for Python
-
I'm working on techno audio-visuals using Ableton & Javascript
If you've a Python background, I might suggest checking out something like https://github.com/pygfx/wgpu-py
-
Chrome Ships WebGPU
FYI you can already use webgpu directly in python, see https://github.com/pygfx/wgpu-py for webgpu wrappers and https://github.com/pygfx/pygfx for a more high level graphics library
-
I've just started mixing shaders with Pygame and got some great results
This reminds me of another Python GPU project, bringing in WebGPU shaders.
https://github.com/pygfx/wgpu-py
-
Unifying the CUDA Python Ecosystem
Somewhat related, I’ve built compute shaders using wgpu-py:
https://github.com/pygfx/wgpu-py
You can define any compute shader you like in Python, with the data types, and it compiles it to SPIRV and runs it.
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.
What are some alternatives?
CudaPy - CudaPy is a runtime library that lets Python programmers access NVIDIA's CUDA parallel computation API.
SHA256-WebGPU - Implementation of sha256 in WGSL
cudf - cuDF - GPU DataFrame Library
stablehlo - Backward compatible ML compute opset inspired by HLO/MHLO
pygfx - A python render engine running on wgpu.
grcuda - Polyglot CUDA integration for the GraalVM
tfjs - A WebGL accelerated JavaScript library for training and deploying ML models.
web-stable-diffusion - Bringing stable diffusion models to web browsers. Everything runs inside the browser with no server support.
webgpu-blas - Fast matrix-matrix multiplication on web browser using WebGPU
copperhead - Data Parallel Python