Learning Machine Learning, I’ve always been interested in PyTorch and its Automatic Backpropagation. In this project, I tried to reimplement most of PyTorch in Javascript. It is implemented from scratch in a well-documented, unit tested, and interpretable way, so it can help other JavaScript learners get into Machine Learning! Hope you enjoy!
You might look into node api or ffi and add some native code to speed up some operations on the server. I helped with this project to do that and get prebuilt binaries: https://github.com/ashvardanian/SimSIMD I haven't looked at ffi over node yet.
Deep Learning in JavaScript
11–20 of 92 posts
Re: Deep Learning in JavaScript
#12Learning Machine Learning, I’ve always been interested in PyTorch and its Automatic Backpropagation. In this project, I tried to reimplement most of PyTorch in Javascript. It is implemented from scratch in a well-documented, unit tested, and interpretable way, so it can help other JavaScript learners get into Machine Learning! Hope you enjoy!
This is awesome! Congrats. Clearly a lot of work and a very cool library.
Re: Deep Learning in JavaScript
#13The nn.Block should probably be renamed to nn.DecoderBlock as it's not very clear if it's supposed to be an encoder or a decoder block, also an option to disable the mask from attention. That said, very cool project.
Re: Deep Learning in JavaScript
#14Re: Deep Learning in JavaScript
#15Do you plan to implement WebGPU acceleration to make it production-ready?
Re: Deep Learning in JavaScript
#16Re: Deep Learning in JavaScript
#17I like to see progress with multiple languages in the space. Julia, R, etc. It does seem though, that python really has a big and commanding lead. So much so that mojo is betting their business on it.
Re: Deep Learning in JavaScript
#18I like to see progress with multiple languages in the space. Julia, R, etc. It does seem though, that python really has a big and commanding lead. So much so that mojo is betting their business on it.
Re: Deep Learning in JavaScript
#19Re: Deep Learning in JavaScript
#20Why not using a faster language that compiles to WebAssembly?