Live data from Hacker News

Deep Learning in JavaScript

github.com

11–20 of 92 posts

Re: Deep Learning in JavaScript

#11
post #8

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.

Thanks for the tip! I will look into it. Speed in the tensor calculations is definitely one of the largest challenges in this project.

Re: Deep Learning in JavaScript

#12
post #7

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!

This is awesome! Congrats. Clearly a lot of work and a very cool library.

Thank you very much for the feedback! If you have any question about it, let me know.

Re: Deep Learning in JavaScript

#13
post #9

The 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.

You are absolutely right! Will solve that as soon as possible. Thanks for the feedback!

Re: Deep Learning in JavaScript

#16
I 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

#17

I 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.

That’s true. I myself learned ML in python first, and I’m just now trying to implement some stuff in JavaScript. I guess it could be useful to make web integration with neural networks easier in this case, or at least as an educational package!

Re: Deep Learning in JavaScript

#18

I 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.

What language is Python calling to do this? Hint: a language closer to the silicon.
Post reply on HN