MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / get_optimizer_params

Function get_optimizer_params

deepspeed/runtime/config.py:295–299  ·  view source on GitHub ↗
(param_dict)

Source from the content-addressed store, hash-verified

293
294
295def get_optimizer_params(param_dict):
296 if (get_optimizer_name(param_dict) is not None and OPTIMIZER_PARAMS in param_dict[OPTIMIZER].keys()):
297 return param_dict[OPTIMIZER][OPTIMIZER_PARAMS]
298 else:
299 return None
300
301
302def get_optimizer_gradient_clipping(param_dict):

Callers 2

_initialize_paramsMethod · 0.85

Calls 1

get_optimizer_nameFunction · 0.85

Tested by

no test coverage detected