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

Method setUp

tests/goodput_utils_test.py:28–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 """Tests for Goodput monitoring and recording."""
27
28 def setUp(self):
29 super().setUp()
30 self.config = pyconfig.initialize(
31 [None, os.path.join(MAXTEXT_PKG_DIR, "configs", "base.yml")],
32 base_output_directory="gs://runner-maxtext-logs",
33 run_name="runner_test",
34 enable_checkpointing=False,
35 monitor_goodput=True,
36 enable_goodput_recording=True,
37 monitor_step_time_deviation=True,
38 )
39
40 @mock.patch("ml_goodput_measurement.goodput.GoodputRecorder.record_job_end_time")
41 @mock.patch("ml_goodput_measurement.goodput.GoodputRecorder.record_job_start_time")

Callers

nothing calls this directly

Calls 1

initializeMethod · 0.45

Tested by

no test coverage detected