Skip to content

Commit

Permalink
remove assertion (#8302) (#8321)
Browse files Browse the repository at this point in the history
Signed-off-by: dimapihtar <[email protected]>
Co-authored-by: Dmytro Pykhtar <[email protected]>
Signed-off-by: ataghibakhsh <[email protected]>
  • Loading branch information
2 people authored and JRD971000 committed Feb 16, 2024
1 parent 9aab0e3 commit 9e5663a
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1303,11 +1303,6 @@ def setup(self, stage=None):
self.init_global_step = self.trainer.global_step

if self.rampup_batch_size:
optimizer = self.cfg.optim.get('name', None)
assert (
optimizer == 'fused_adam'
), f'{optimizer} optimizer is not supported yet with rampup batch size. Please, use fused_adam optimizer instead.'

num_microbatch_calculator = apex.transformer.pipeline_parallel.utils._GLOBAL_NUM_MICROBATCHES_CALCULATOR
num_microbatch_calculator.update(self.init_consumed_samples, consistency_check=False)
self.prev_consumed_samples = self.init_consumed_samples
Expand Down

0 comments on commit 9e5663a

Please sign in to comment.