MCPcopy Create free account
hub / github.com/AlmondGod/tinyworlds / __post_init__

Method __post_init__

utils/config.py:48–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46 offload_policy: CPUOffloadPolicy | None = None
47
48 def __post_init__(self) -> None:
49 if self.use_ddp and self.use_fsdp:
50 raise ValueError("DistributedConfig cannot enable both DDP and FSDP; choose only one.")
51
52 def get_mixed_precision_policy(self) -> MixedPrecisionPolicy | None:
53 if self.fsdp_mixed_precision is None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected