MCPcopy Create free account
hub / github.com/apple/axlearn / __init__

Method __init__

axlearn/common/trainer_config_modifier.py:279–281  ·  view source on GitHub ↗
(self, cfg: Config)

Source from the content-addressed store, hash-verified

277 partition_specs: Required[Dict[str, PartitionSpec]] = REQUIRED
278
279 def __init__(self, cfg: Config):
280 super().__init__(cfg)
281 self._attribute_dicts = self.config.partition_specs
282
283 def __call__(self, cfg: SpmdTrainer.Config) -> SpmdTrainer.Config:
284 """Update the partition_spec attributes for the specified modules.

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected