wonnx
ml5-library
Our great sponsors
wonnx | ml5-library | |
---|---|---|
18 | 16 | |
1,478 | 6,347 | |
6.2% | 0.8% | |
6.5 | 0.0 | |
20 days ago | 4 months ago | |
Rust | JavaScript | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
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.
wonnx
-
Intel CEO: 'The entire industry is motivated to eliminate the CUDA market'
The two I know of are IREE and Kompute[1]. I'm not sure how much momentum the latter has, I don't see it referenced much. There's also a growing body of work that uses Vulkan indirectly through WebGPU. This is currently lagging in performance due to lack of subgroups and cooperative matrix mult, but I see that gap closing. There I think wonnx[2] has the most momentum, but I am aware of other efforts.
[1]: https://kompute.cc/
-
VkFFT: Vulkan/CUDA/Hip/OpenCL/Level Zero/Metal Fast Fourier Transform Library
To a first approximation, Kompute[1] is that. It doesn't seem to be catching on, I'm seeing more buzz around WebGPU solutions, including wonnx[2] and more hand-rolled approaches, and IREE[3], the latter of which has a Vulkan back-end.
[1]: https://kompute.cc/
-
Onnx Runtime: “Cross-Platform Accelerated Machine Learning”
There's also a third-party WebGPU implementation: https://github.com/webonnx/wonnx
-
Are there any ML crates that would compile to WASM?
By experimental I meant e.g. using WGPU to run compute shaders like wonnx, which is working fine but only on a very restricted set of devices and browsers.
- WebGPU ONNX inference runtime written in Rust
-
PyTorch Primitives in WebGPU for the Browser
https://news.ycombinator.com/item?id=35696031 ... TIL about wonnx: https://github.com/webonnx/wonnx#in-the-browser-using-webgpu...
microsoft/onnxruntime: https://github.com/microsoft/onnxruntime
Apache/arrow has language-portable Tensors for cpp: https://arrow.apache.org/docs/cpp/api/tensor.html and rust: https://docs.rs/arrow/latest/arrow/tensor/struct.Tensor.html and Python: https://arrow.apache.org/docs/python/api/tables.html#tensors https://arrow.apache.org/docs/python/generated/pyarrow.Tenso...
Fwiw it looks like the llama.cpp Tensor is from ggml, for which there are CUDA and OpenCL implementations (but not yet ROCm, or a WebGPU shim for use with emscripten transpilation to WASM): https://github.com/ggerganov/llama.cpp/blob/master/ggml.h
Are the recommendable ways to cast e.g. arrow Tensors to pytorch/tensorflow?
FWIU, Rust has a better compilation to WASM; and that's probably faster than already-compiled-to-JS/ES TensorFlow + WebGPU.
What's a fair benchmark?
-
rustformers/llm: Run inference for Large Language Models on CPU, with Rust 🦀🚀🦙
wonnx has done some fantastic work in this regard, so that's where we plan to start once we get there. In terms of general discussion of alternate backends, see this issue.
-
I want to talk about WebGPU
> GPU in other ways, such as training ML models and then using them via an inference engine all powered by your local GPU?
Have a look at wonnix https://github.com/webonnx/wonnx
A WebGPU-accelerated ONNX inference run-time written 100% in Rust, ready for native and the web
-
Chrome Ships WebGPU
Looking forward to your WebGPU ML runtime! Also, why not contribute back to WONNX? (https://github.com/webonnx/wonnx)
-
OpenXLA Is Available Now
You can indeed perform inference using WebGPU (see e.g. [1] for GPU-accelerated inference of ONNX models on WebGPU; I am one of the authors).
The point made above is that WebGPU can only be used for GPU's and not really for other types of 'neural accelerators' (like e.g. the ANE on Apple devices).
ml5-library
- Why do people curse JS so much, but also say it's better than Python
-
Riffr - Create Photo Montages in the Browser with some ML Magic✨
Important APIs - ml5 for in-browser detection, face-api that uses tensorflow-node to accelerate on-server detection. VueUse for a bunch of useful component tools like the QR Code generator. Yahoo's Gifshot for creating gif files in-browser etc.
-
Contributing to WebSockets – Cryptocurrency Users
> Have we seen any creator of a deep learning library, take a similar position if not stopping any support for anyone using it for mass surveillance?
ml5.js license:
> This license gives everyone as much permission to work with this software as possible as long as they comply with the ml5.js Code of Conduct [...]
ml5.js code of conduct:
> Do not: [...] Use ml5.js to build tools of mass surveillance and prediction to repress the rights of people
https://github.com/ml5js/ml5-library/blob/main/LICENSE.md
Not sure how enforcable this is but it exists.
-
Brain.js: GPU Accelerated Neural Networks in JavaScript
See also: https://ml5js.org/
"The library provides access to machine learning algorithms and models in the browser, building on top of TensorFlow.js with no other external dependencies."
-
10 Mind Blowing JavaScript libraries Of 2022 (I mean it Javascript Noob)
(5) ml5.js
-
Top 5 JavaScript Libraries for Machine Learning, Deep Learning
ML.js
-
[Showoff Saturday] I made a captcha prototype that requires a banana
I used ml5js.org , p5js.org and https://teachablemachine.withgoogle.com to train the Banana images. When you create a new image project on Teachable Machine, you can output the p5js and basically use it right out of the box - I customized js, css, and html from there.
-
My First 30 Days of 100 Days of Code.
Going forward: I'll be 100% into JavaScript. You can use JavaScript in so many fields nowadays. Websites React, Mobile Apps React Native, Machine Learning TensorFlow & ML5, Desktop Applications Electron, and of course the backend Node as well. It's kind of a no-brainer. Of course, they all have specific languages that are better, but for now, JavaScript is a bit of a catch-all.
-
PyTorch vs. TensorFlow in 2022
Yeah they made ml5.js for this reason: https://ml5js.org/
I do feel like Google could do better communicating all of their different tools though. Their ecosystem is large and pretty confusing - they've got so many projects going on at once that it always seems like everyone gets fed up with them before they take a second pass and make them more friendly to newcomers.
Facebook seems to have taken a much more focused approach as you can see with PyTorch Live
-
[D] Are you using PyTorch or TensorFlow going into 2022?
From other comments, a lot of JavaScript developers who want to use TensorFlow had never heard of TensorFlow.js or ml5.js!
What are some alternatives?
stablehlo - Backward compatible ML compute opset inspired by HLO/MHLO
tfjs-models - Pretrained models for TensorFlow.js
onnx - Open standard for machine learning interoperability
handpose-facemesh-demos - 🎥🤟 8 minimalistic templates for tfjs mediapipe handpose and facemesh
tract - Tiny, no-nonsense, self-contained, Tensorflow and ONNX inference
hal9ai - Hal9 — Data apps powered by code and LLMs [Moved to: https://github.com/hal9ai/hal9]
iree - A retargetable MLIR-based machine learning compiler and runtime toolkit.
maze-lightning - This simple project approximates the shape of lightning by generating a random maze using Randomized Prim's algorithm and solving it using breadth-first search.
burn - Burn is a new comprehensive dynamic Deep Learning Framework built using Rust with extreme flexibility, compute efficiency and portability as its primary goals.
pyodide - Pyodide is a Python distribution for the browser and Node.js based on WebAssembly
blaze - A Rustified OpenCL Experience
bias-monitor - A Chrome Extension that promotes politically diverse news reading with Artificial Intelligence!