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

surrogate = surrogate * (trainer.distributed_factor / 8.) #4

Closed
kinglai opened this issue Nov 8, 2021 · 1 comment
Closed

surrogate = surrogate * (trainer.distributed_factor / 8.) #4

kinglai opened this issue Nov 8, 2021 · 1 comment

Comments

@kinglai
Copy link

kinglai commented Nov 8, 2021

is 8 just a parameter or has some exact mining? eg, 8 GPUs?

@luyug
Copy link
Owner

luyug commented Nov 11, 2021

8 is a constant factor that corresponds to the number of GPU used in training DPR in the original paper. This scaling here offset the effect of gradient mean allreduce, thereby aligning the gradient value with the original setup.

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