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

Function run

src/MaxText/train.py:561–569  ·  view source on GitHub ↗

Run the job given hyperparameters and utilities

(config, recorder, diagnostic_config)

Source from the content-addressed store, hash-verified

559
560
561def run(config, recorder, diagnostic_config):
562 """Run the job given hyperparameters and utilities"""
563 with (
564 diagnostic.diagnose(diagnostic_config),
565 maybe_record_goodput(recorder, GoodputEvent.JOB),
566 max_utils.maybe_get_transformer_engine_context(config),
567 maybe_monitor_goodput(config),
568 ):
569 train_loop(config, recorder)
570
571
572def main(argv: Sequence[str]) -> None:

Callers 1

mainFunction · 0.70

Calls 4

maybe_record_goodputFunction · 0.90
maybe_monitor_goodputFunction · 0.90
diagnoseMethod · 0.80
train_loopFunction · 0.70

Tested by

no test coverage detected