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

Add find_unused_parameters option to DeepSpeedEngine #945

Merged
merged 32 commits into from
Apr 25, 2021

Conversation

ghosthamlet
Copy link
Contributor

As unused parameters in modules may not be expected sometimes,
add an explicit error msg when it occurred and an option to avoid the error: #707

As unused parameters in modules may not be expected sometimes, 
add an explicit error msg when it occurred and an option to avoid the error: microsoft#707
As unused parameters in modules may not be expected sometimes, 
add an explicit error msg when it occurred and an option to avoid the error: microsoft#707
@ghost
Copy link

ghost commented Apr 12, 2021

CLA assistant check
All CLA requirements met.

@ghosthamlet
Copy link
Contributor Author

I can't find where was the yapf error in my commit code, also no error when run yapf local, it is strange.

@ghosthamlet
Copy link
Contributor Author

Ok, Fixed it.

@tjruwase
Copy link
Contributor

@ghosthamlet, thanks for this feature. Rather than modifying DeepSpeed engine, can you please add this configuration to the zero options? That is a more appropriate place since the issue only affects zero stage 2. Thanks.

@ghosthamlet
Copy link
Contributor Author

@tjruwase Thanks for the review, i changed it, please review again.

@tjruwase
Copy link
Contributor

Thanks for making the changes. One final request can you also add a unit test?

@ghosthamlet
Copy link
Contributor Author

Thanks for making the changes. One final request can you also add a unit test?

Ok, let me find out how the test works and add it.

@ghosthamlet
Copy link
Contributor Author

@tjruwase Test added, please review again.

@tjruwase tjruwase merged commit d0b61f1 into microsoft:master Apr 25, 2021
@tjruwase
Copy link
Contributor

tjruwase commented May 7, 2021

@ghosthamlet, please note the impact of #1039 on this feature.

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.

2 participants