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

Function get_inactive_params

deepspeed/runtime/utils.py:1182–1185  ·  view source on GitHub ↗
(param_list)

Source from the content-addressed store, hash-verified

1180
1181
1182def get_inactive_params(param_list):
1183 from deepspeed.runtime.zero.partition_parameters import ZeroParamStatus
1184 return [param for param in param_list if (hasattr(param, 'ds_id') and \
1185 param.ds_status == ZeroParamStatus.NOT_AVAILABLE)]
1186
1187
1188def get_norm_with_moe_layers(non_expert_norm, mpu, expert_tensors, norm_type=2):

Callers 3

generateMethod · 0.85
run_forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected