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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone, I am using AmpOptimWrapper for auto-mixing precision training. But I get nan after about ten epochs of training.
I tried to debug and found that the GradScaler in AmpOptimWrapper scale the loss with 0, leading to nan weights update. What should I do?
The optimizer wrapper I use is:
The zero scale is caculated by the subfunction in GradScaler as following:
where the
self._init_scale
is initialized to2.**16
but is0.0
in function_lazy_init_scale_growth_tracker
.Beta Was this translation helpful? Give feedback.
All reactions