Skip to content

1bit: not need to do wd mom for uncompressed gradients #61

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

Merged
merged 6 commits into from
Jul 30, 2020

Conversation

jasperzhong
Copy link
Owner

Since I have set a threshold, not all gradients are compressed by 1bit. For those uncompressed gradients, which are typically small tensors, there is no need to do wd mom for them. Instead, just normal weight decay is enough.

It is a waste of GPUs to do wd mom for all and may bring unknow results. e.g. hurting accuracy? Results show there is a significant performance gain.

@jasperzhong jasperzhong merged commit 6673b7d into gradient_compression Jul 30, 2020
@jasperzhong jasperzhong deleted the hotfix branch July 30, 2020 18:16
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

Successfully merging this pull request may close these issues.

1 participant