pygfx VS wgpu-mm

Compare pygfx vs wgpu-mm and see what are their differences.

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
pygfx wgpu-mm
3 1
357 42
2.6% -
8.8 8.7
3 days ago about 2 months ago
Python WGSL
BSD 2-clause "Simplified" License -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

pygfx

Posts with mentions or reviews of pygfx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-26.
  • Emerging Rust GUI libraries in a WASM world
    11 projects | news.ycombinator.com | 26 Apr 2023
    https://github.com/kushalkolar/fastplotlib

    Alternatively, try pygfx for ThreeJS graphics in Python leveraging wgpu. It works great in Notebooks through notebook-rfb. https://github.com/pygfx/pygfx

    If you're adventurous, figure out how to make pygfx work with webgpu via wasm

  • Chrome Ships WebGPU
    17 projects | news.ycombinator.com | 6 Apr 2023
    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
  • Extending Python with Rust
    12 projects | news.ycombinator.com | 27 Dec 2022
    Rather than using matplotlib, you could try either pygfx (https://github.com/pygfx/pygfx) or fastplotlib (https://github.com/kushalkolar/fastplotlib) to make higher performance graphics using Python.

    However, it won't solve your problem of Python not being fast enough doing the calculations.

wgpu-mm

Posts with mentions or reviews of wgpu-mm. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-06.
  • Chrome Ships WebGPU
    17 projects | news.ycombinator.com | 6 Apr 2023
    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?

When comparing pygfx and wgpu-mm you can also consider the following projects:

SHA256-WebGPU - Implementation of sha256 in WGSL

numexpr - Fast numerical array expression evaluator for Python, NumPy, Pandas, PyTables and more

stablehlo - Backward compatible ML compute opset inspired by HLO/MHLO

graphics_wgpu

wgpu-py - Next generation GPU API for Python

vswhere - Locate Visual Studio 2017 and newer installations

tfjs - A WebGL accelerated JavaScript library for training and deploying ML models.

fastplotlib - Next-gen fast plotting library running on WGPU using the pygfx rendering engine

webgpu-blas - Fast matrix-matrix multiplication on web browser using WebGPU

three.py - Python 3D library based on three.js and Modern OpenGL

web-stable-diffusion - Bringing stable diffusion models to web browsers. Everything runs inside the browser with no server support.