MCPcopy Create free account
hub / github.com/AI-Hypercomputer/maxtext / main

Function main

tools/gcs_benchmarks/standalone_checkpointer.py:119–127  ·  view source on GitHub ↗
(argv: Sequence[str])

Source from the content-addressed store, hash-verified

117
118
119def main(argv: Sequence[str]) -> None:
120 os.environ["TF_CPP_MIN_LOG_LEVEL"] = "0"
121 config = pyconfig.initialize(argv)
122 validate_train_config(config)
123 print(f"Found {jax.device_count()} devices.")
124 print(f"Found {jax.process_count()} processes.")
125 print(f"Found {jax.devices()} devices.")
126 os.environ["TFDS_DATA_DIR"] = config.dataset_path
127 checkpoint_loop(config)
128
129
130if __name__ == "__main__":

Callers

nothing calls this directly

Calls 3

validate_train_configFunction · 0.90
checkpoint_loopFunction · 0.85
initializeMethod · 0.45

Tested by

no test coverage detected