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

About gradient accumulation #11

Open
yijicheng opened this issue May 2, 2023 · 0 comments
Open

About gradient accumulation #11

yijicheng opened this issue May 2, 2023 · 0 comments

Comments

@yijicheng
Copy link

Thanks for your excellent work!

I am wonder why the accumulation steps are just multiplied on the one step loss, but not accumulate gradient with multiple steps.

flat_grads = flat_grads if gain is None else flat_grads * gain

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