(param_list)
| 1180 | |
| 1181 | |
| 1182 | def 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 | |
| 1188 | def get_norm_with_moe_layers(non_expert_norm, mpu, expert_tensors, norm_type=2): |
no outgoing calls
no test coverage detected