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

question about learning rate #3

Open
HiXiaochen opened this issue Sep 16, 2021 · 0 comments
Open

question about learning rate #3

HiXiaochen opened this issue Sep 16, 2021 · 0 comments

Comments

@HiXiaochen
Copy link

In 《attention is all you need》,lrate in noam decay they used is formulated as:
"lrate = d−0.5 · min(step_num−0.5, step_num · warmup_steps−1.5)"
But in your code,I found there is an original_lr which is 0.05:
self._set_rate(
self.original_lr *
( self.model_size ** -0.5 * min(self._step ** (-0.5),
self._step * self.warmup_steps**(-1.5))))
Why do we need to add this term?

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

1 participant