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

Schedule Free Optimizers (pytorch) and Sophia optimizer #30359

Open
CoffeeVampir3 opened this issue Apr 20, 2024 · 2 comments
Open

Schedule Free Optimizers (pytorch) and Sophia optimizer #30359

CoffeeVampir3 opened this issue Apr 20, 2024 · 2 comments
Labels
Feature request Request for a new feature optimization

Comments

@CoffeeVampir3
Copy link

Feature request

See https://github.com/facebookresearch/schedule_free and https://github.com/Liuhong99/Sophia -- These optimizers have very different properties and are often useful over the existing choices.

Motivation

Schedule free optimizer (especially schedule-free SGD) offers increased convergence over the existing implementation with no additional memory requirements. There's some variability on the end gradients but this is an equitable engineering tradeoff in many cases. In the same vein, sophia has been shown to converge twice as fast as adam on some language modeling tasks.

Your contribution

These would add in additional dependencies if included straight on, I'm not sure what the typical approach for this is. I'd be willing to implement both features but I'm unsure how the addition of dependencies should go.

@vasqu
Copy link
Contributor

vasqu commented Apr 20, 2024

#30079 and #24338 are relevant, not sure if the policy around optimizers has changed but you could try out the branches if it's not merged.

@amyeroberts
Copy link
Collaborator

cc @younesbelkada

@amyeroberts amyeroberts added Feature request Request for a new feature optimization labels Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Request for a new feature optimization
Projects
None yet
Development

No branches or pull requests

3 participants