functorch
ml5-library
functorch | ml5-library | |
---|---|---|
11 | 16 | |
1,372 | 6,356 | |
0.4% | 0.4% | |
0.0 | 0.0 | |
1 day ago | 5 months ago | |
Jupyter Notebook | JavaScript | |
BSD 3-clause "New" or "Revised" License | 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.
functorch
-
What is the most efficient approach to ensemble a pytorch actor-critic model?
I would suggest checking https://pytorch.org/functorch/ and https://github.com/metaopt/torchopt for efficient inference and training with ensembles (e.g., t be independent actors in a multi-agent setting or multiple critics).
-
[P] Multidimensional array batch indexing for pytorch and numpy
There were some bugs still with advanced indexing in an older release of functorch, I believe they should be fixed now though: https://github.com/pytorch/functorch/pull/862
- Functorch: Jax-like composable function transforms for PyTorch
-
Jax vs. Julia (Vs PyTorch)
Tangentially related but there is an effort to get some of the features of JAX into PyTorch: https://pytorch.org/functorch/
-
[D] Current State of JAX vs Pytorch?
Fwiw, composable vmap and stuff like that have also been implemented in PyTorch now - see functorch :) https://github.com/pytorch/functorch
-
[D] Ideal deep learning library
Fwiw, it’s not like Pytorch’s design prevents function transformations from being implemented. See functorch for an example of grad/vmap function transforms: https://github.com/pytorch/functorch
-
[P] Made Some Pytorch Modules For Agent Systems
You may find vmap from functorch to be quite useful: https://github.com/pytorch/functorch
-
[D] Are you using PyTorch or TensorFlow going into 2022?
If you're interested in function transformations in PyTorch, try out functorch :) https://github.com/pytorch/functorch
- PyTorch: Where we are headed and why it looks a lot like Julia (but not exactly)
-
Show HN: How does Jax allocate memory on a TPU? An interactive C++ walkthrough
The pytorch programming model is just really hard to adapt to an XLA-like compiler. Imperative python code doesn't translate to an ML graph compiler particularly well; Jax's API is functional, so it's easier to translate to the XLA API. By contrast, torch/xla uses "lazy tensors" that record the computation graph and compile when needed. The trouble is, if the compute graph changes from run to run, you end up recompiling a lot.
I guess in Jax you'd just only apply `jax.jit` to the parts where the compute graph is static? I'd be curious to see examples of how this works in practice. Fwiw, there's an offshoot of pytorch that is aiming to provide this sort of API (see https://github.com/pytorch/functorch and look at eager_compilation.py).
(Disclaimer: I worked on this until quite recently.)
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?
jax - Composable transformations of Python+NumPy programs: differentiate, vectorize, JIT to GPU/TPU, and more
tfjs-models - Pretrained models for TensorFlow.js
nn - 🧑🏫 60 Implementations/tutorials of deep learning papers with side-by-side notes 📝; including transformers (original, xl, switch, feedback, vit, ...), optimizers (adam, adabelief, sophia, ...), gans(cyclegan, stylegan2, ...), 🎮 reinforcement learning (ppo, dqn), capsnet, distillation, ... 🧠
handpose-facemesh-demos - 🎥🤟 8 minimalistic templates for tfjs mediapipe handpose and facemesh
onnx-simplifier - Simplify your onnx model
hal9ai - Hal9 — Data apps powered by code and LLMs [Moved to: https://github.com/hal9ai/hal9]
torch2trt - An easy to use PyTorch to TensorRT converter
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.
BinaryBuilder.jl - Binary Dependency Builder for Julia
bias-monitor - A Chrome Extension that promotes politically diverse news reading with Artificial Intelligence!
py2many - Transpiler of Python to many other languages
pyodide - Pyodide is a Python distribution for the browser and Node.js based on WebAssembly