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

Revert "BF16 optimizer: Clear lp grads after updating hp grads in hook" #6508

Merged

Conversation

nelyahu
Copy link
Contributor

@nelyahu nelyahu commented Sep 9, 2024

Reverts #5328
After offline discussion with @YangQun1 , we agreed that there is no memory effect as clear_lp_grads flag triggers zero_() ops which just zeros buffers and does not free any memory. the outcome is compute overhead.

@nelyahu nelyahu requested a review from tjruwase as a code owner September 9, 2024 08:59
@YangQun1
Copy link
Contributor

YangQun1 commented Sep 9, 2024

@nelyahu Thanks. This change looks good to me.

@loadams loadams added this pull request to the merge queue Sep 9, 2024
Merged via the queue into microsoft:master with commit 8fa6b50 Sep 9, 2024
13 checks passed
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.

4 participants