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

Function _add_initialization_args

DeepSpeedExample/megatron/arguments.py:304–314  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

302
303
304def _add_initialization_args(parser):
305 group = parser.add_argument_group(title='initialization')
306
307 group.add_argument('--seed', type=int, default=1234,
308 help='Random seed used for python, numpy, '
309 'pytorch, and cuda.')
310 group.add_argument('--init-method-std', type=float, default=0.02,
311 help='Standard deviation of the zero mean normal '
312 'distribution used for weight initialization.')
313
314 return parser
315
316
317def _add_learning_rate_args(parser):

Callers 1

parse_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected