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

Function get_bfloat16_enabled

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

Source from the content-addressed store, hash-verified

157
158
159def get_bfloat16_enabled(param_dict):
160 for key in [BFLOAT16, BFLOAT16_OLD]:
161 if key in param_dict.keys():
162 return get_scalar_param(param_dict[key], BFLOAT16_ENABLED, BFLOAT16_ENABLED_DEFAULT)
163 return False
164
165
166def get_fp16_master_weights_and_grads_enabled(param_dict):

Callers 3

get_loss_scaleFunction · 0.85
_initialize_paramsMethod · 0.85

Calls 1

get_scalar_paramFunction · 0.85

Tested by

no test coverage detected