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

Method folding_metadata

deepspeed/runtime/engine.py:5253–5268  ·  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

5251 folded_autoep_tp = folding_spec is not None and folding_spec.tp_size > 1
5252
5253 def folding_metadata(*,
5254 family,
5255 ep_rank,
5256 zero_partition_group,
5257 zero_partition_rank,
5258 zero_partition_count,
5259 param_families=None):
5260 if not folded_autoep_tp:
5261 return None
5262 return DeepSpeedEngine._make_autoep_folding_metadata(folding_spec,
5263 family=family,
5264 ep_rank=ep_rank,
5265 zero_partition_group=zero_partition_group,
5266 zero_partition_rank=zero_partition_rank,
5267 zero_partition_count=zero_partition_count,
5268 param_families=param_families)
5269
5270 def autoep_expert_writer() -> bool:
5271 if folded_autoep_tp:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected