You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
optimizer_name() is None when used client optimizer #281
'You are using an untested ZeRO Optimizer. Please add <"zero_allow_untested_optimizer": true> in the configuration file to use it.'
AssertionError: You are using an untested ZeRO Optimizer. Please add <"zero_allow_untested_optimizer": true> in the configuration file to use it.
In cases where we don't have an optimizer name from our config, maybe we should next defer to self.optimizer.__class__.__name__ before returning None from optimizer_name() ? In this case I believe that would give us "Adam" and do the correct thing. If no optimizer was specified we should still return None, I imagine.
Activity
tjruwase commentedon Jun 29, 2020
Thanks for using DeepSpeed.
What happens when you set
zero_allow_untested_optimizerto true?vfdev-5 commentedon Jun 29, 2020
Yes, setting
zero_allow_untested_optimizerto true solves the problem.ShadenSmith commentedon Jun 29, 2020
Good catch!
In cases where we don't have an optimizer name from our config, maybe we should next defer to
self.optimizer.__class__.__name__before returningNonefromoptimizer_name()? In this case I believe that would give us"Adam"and do the correct thing. If no optimizer was specified we should still returnNone, I imagine.Here's
optimizer_name():https://github.com/microsoft/DeepSpeed/blob/4d64b5ba055b663a1e436dbc2d756350554dfe84/deepspeed/pt/deepspeed_light.py#L264-L265
tjruwase commentedon Sep 10, 2020
Fixed by PR #349.