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

Recommended settings for transformers? #47

Open
OhadRubin opened this issue Sep 17, 2022 · 1 comment
Open

Recommended settings for transformers? #47

OhadRubin opened this issue Sep 17, 2022 · 1 comment

Comments

@OhadRubin
Copy link

Are there any recommended settings for Transformer Language modeling?

@wassname
Copy link

wassname commented Sep 26, 2022

I'd also like to know this please. Even if it's just some informal insights you might have picked up.

For anyone who's new, the author has said the MadGrad mode is better for transformers. And also states that they have done a bunch of experiments some of which are documented here.

@OhadRubin Until the author arrives we can share our own tips? Here's mine

I've noticed that transformers sometimes can't handle the default learning rate (1e-3 in the readme images), they will "break". So you sometimes need a lower max learning rate (perhaps 1e-4 or even 5e-5) if they "break" them. This happens when the loss goes up and wont come down.

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