MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / _print_args

Function _print_args

DeepSpeedExample/megatron/arguments.py:169–179  ·  view source on GitHub ↗

Print arguments.

(args)

Source from the content-addressed store, hash-verified

167
168
169def _print_args(args):
170 """Print arguments."""
171 if args.rank == 0:
172 print('-------------------- arguments --------------------', flush=True)
173 str_list = []
174 for arg in vars(args):
175 dots = '.' * (32 - len(arg))
176 str_list.append(' {} {} {}'.format(arg, dots, getattr(args, arg)))
177 for arg in sorted(str_list, key=lambda x: x.lower()):
178 print(arg, flush=True)
179 print('---------------- end of arguments ----------------', flush=True)
180
181
182def _check_arg_is_not_none(args, arg):

Callers 1

parse_argsFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected