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

Method folding_metadata

deepspeed/runtime/engine.py:5157–5172  ·  view source on GitHub ↗
(*,
                             family,
                             ep_rank,
                             zero_partition_group,
                             zero_partition_rank,
                             zero_partition_count,
                             param_families=None)

Source from the content-addressed store, hash-verified

5155 folded_autoep_tp = folding_spec is not None and folding_spec.tp_size > 1
5156
5157 def folding_metadata(*,
5158 family,
5159 ep_rank,
5160 zero_partition_group,
5161 zero_partition_rank,
5162 zero_partition_count,
5163 param_families=None):
5164 if not folded_autoep_tp:
5165 return None
5166 return DeepSpeedEngine._make_autoep_folding_metadata(folding_spec,
5167 family=family,
5168 ep_rank=ep_rank,
5169 zero_partition_group=zero_partition_group,
5170 zero_partition_rank=zero_partition_rank,
5171 zero_partition_count=zero_partition_count,
5172 param_families=param_families)
5173
5174 def autoep_expert_writer() -> bool:
5175 if folded_autoep_tp:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected