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

Method __init__

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

Source from the content-addressed store, hash-verified

97 remat_policies: Required[Dict[str, RematSpec]] = REQUIRED
98
99 def __init__(self, cfg: Config):
100 super().__init__(cfg)
101 cfg = self.config
102 self._remat_policies = cfg.remat_policies
103
104 def __call__(self, cfg: SpmdTrainer.Config) -> SpmdTrainer.Config:
105 """Update the remat policy for the specified modules.

Callers 6

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected