MCPcopy
hub / github.com/deepspeedai/DeepSpeedExamples / is_time_to_exit

Function is_time_to_exit

BingBertSquad/utils.py:141–143  ·  view source on GitHub ↗
(args, epoch_steps=0, global_steps=0)

Source from the content-addressed store, hash-verified

139 .format(tag, micro_step, global_step, norm_groups))
140
141def is_time_to_exit(args, epoch_steps=0, global_steps=0):
142 return (epoch_steps >= args.max_steps_per_epoch) or \
143 (global_steps >= args.max_steps)
144
145def check_early_exit_warning(args):
146 # Issue warning if early exit from epoch is configured

Callers 2

mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected