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

Function check_early_exit_warning

BingBertSquad/utils.py:145–151  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

143 (global_steps >= args.max_steps)
144
145def check_early_exit_warning(args):
146 # Issue warning if early exit from epoch is configured
147 if args.max_steps < sys.maxsize:
148 logging.warning('Early training exit is set after {} global steps'.format(args.max_steps))
149
150 if args.max_steps_per_epoch < sys.maxsize:
151 logging.warning('Early epoch exit is set after {} global steps'.format(args.max_steps_per_epoch))

Callers 1

mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected