Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python port #6

Open
srush opened this issue Jan 23, 2022 · 2 comments
Open

Python port #6

srush opened this issue Jan 23, 2022 · 2 comments

Comments

@srush
Copy link

srush commented Jan 23, 2022

Hi there,

I really love the g9.js demos! I think they convey how gradients work in such a nice and intuitive manner.

Just for fun I was playing with the idea of running a Torch-like library in the browser. I ported over most of the g9 code to python and ran it with AD (as opposed to finite-differences) -> https://srush.github.io/g9py/ . Not sure why this is better, but it might let you run models with tons of parameters. Let me know if this is okay.

Cheers!
Sasha

@bijection
Copy link
Owner

Very cool! I'd be happy to add a link to this if you like.

It seems at first click that it's a bit less performant for the recursive demos - I haven't read through the code yet, but did you implement the pruning part that uses ctx.pure? Or does that not play nice with AD?

@srush
Copy link
Author

srush commented Aug 9, 2023

Right, yeah I forget why I didn't add that. Need to think about what it means for with torch-style AD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants