Repository navigation
Add "zero_allow_untested_optimizer" option in conf file - #173
Conversation
|
Thanks so much for putting this together @CalogeroZarbo ! Would you mind adding a unit test that should trigger the assertion? Here's a similar test it could be based off of: https://github.com/microsoft/DeepSpeed/blob/master/tests/unit/test_fp16.py#L251 You could catch the assertion error with pytest: and end the test after that point. |
|
@ShadenSmith Sure, on it! May I add the test to the same Thank you! |
|
That would be perfect. Just right under the other ZeRO tests. |
|
@ShadenSmith Cheers, |
|
@CalogeroZarbo Thanks so much for doing this. |
|
Thanks so much @CalogeroZarbo ! |
Dear all,
I've added the flag, in the same flavor as all the other flags have been addressed, by changing the DeepSpeedConfig class. Also, the assertion has been added to raise an error message if the flag is not set, but the user wants to use the custom optimizer. If both
zero_allow_untested_optimizerandzero_optimizationare set totruea warning message appears and the computation starts normally.