MCPcopy Index your code
hub / github.com/deepspeedai/DeepSpeedExamples / print_args

Function print_args

Megatron-LM/utils.py:38–44  ·  view source on GitHub ↗

Print arguments.

(args)

Source from the content-addressed store, hash-verified

36
37
38def print_args(args):
39 """Print arguments."""
40
41 print('arguments:', flush=True)
42 for arg in vars(args):
43 dots = '.' * (29 - len(arg))
44 print(' {} {} {}'.format(arg, dots, getattr(args, arg)), flush=True)
45
46
47def print_params_min_max_norm(optimizer, iteration):

Callers 2

mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected