Commit 27f19ba 1 parent 8f38339 commit 27f19ba Copy full SHA for 27f19ba
File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ def __init__(
181
181
eps = 1e-6 ,
182
182
max_grad_norm = None ,
183
183
group_wd_params = True ,
184
- warmup_steps = 1 ,
184
+ warmup_steps = None ,
185
185
cosine_decay_max_steps = None ,
186
186
** kwargs
187
187
):
@@ -357,7 +357,8 @@ def update(self):
357
357
358
358
# accelerator will ocassionally skip optimizer steps in a "dynamic loss scaling strategy"
359
359
if not self .accelerator .optimizer_step_was_skipped :
360
- with self .warmup_scheduler .dampening ():
360
+ sched_context = self .warmup_scheduler .dampening if exists (self .warmup_scheduler ) else nullcontext
361
+ with sched_context ():
361
362
self .scheduler .step ()
362
363
363
364
if self .use_ema :
Original file line number Diff line number Diff line change 1
- __version__ = '1.8.1 '
1
+ __version__ = '1.8.2 '
You can’t perform that action at this time.
0 commit comments