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

support optimizer opt for deepspeed 0.5.9 #11949

Merged
merged 3 commits into from
Jun 30, 2022
Merged

support optimizer opt for deepspeed 0.5.9 #11949

merged 3 commits into from
Jun 30, 2022

Conversation

zhijxu-MS
Copy link
Contributor

No description provided.

@zhijxu-MS zhijxu-MS requested a review from pengwa June 22, 2022 06:37
@@ -141,6 +141,10 @@ def has_overflow_partitioned_grads_serial(target):
#### END OF THE ORIGINAL IMPLEMENTATION ####

#### THIS IS THE FASTER IMPLEMENTATION ####
import deepspeed

if deepspeed.__version__ >= "0.5.7":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: better use same way check the version.

v > LooseVersion("0.5.9")

Copy link
Contributor Author

@zhijxu-MS zhijxu-MS Jun 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point!

fixed

@pengwa
Copy link
Contributor

pengwa commented Jun 22, 2022

Do you have a rough perf number having this override? Maybe you can add some details in the PR description, which could be helpful for users who want to use it.

@zhijxu-MS zhijxu-MS merged commit 9f260fb into master Jun 30, 2022
@zhijxu-MS zhijxu-MS deleted the zhijxu/PR branch June 30, 2022 03:26
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.

3 participants