-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add find_unused_parameters option to DeepSpeedEngine #945
Conversation
Merge from base
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
I can't find where was the yapf error in my commit code, also no error when run yapf local, it is strange. |
Ok, Fixed it. |
@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. |
@tjruwase Thanks for the review, i changed it, please review again. |
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. |
@tjruwase Test added, please review again. |
@ghosthamlet, please note the impact of #1039 on this feature. |
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