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

make tsnex differentiable #10

Open
alonfnt opened this issue Jan 25, 2025 · 0 comments
Open

make tsnex differentiable #10

alonfnt opened this issue Jan 25, 2025 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@alonfnt
Copy link
Owner

alonfnt commented Jan 25, 2025

Right now, tsnex is not differentiable as it relies on a while loop to compute the perplexity.. It does use autograd for minimising the loss nevertheless. This while loop can probably be fixed by defining the custom rules of the backwards pass using the implicit function theorem.

That would allow to apply grad on where there's the transform call inside.

@alonfnt alonfnt added enhancement New feature or request good first issue Good for newcomers labels Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant