MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / __init__

Method __init__

deepspeed/monitor/csv_monitor.py:14–20  ·  view source on GitHub ↗
(self, csv_config)

Source from the content-addressed store, hash-verified

12class csvMonitor(Monitor):
13
14 def __init__(self, csv_config):
15 super().__init__(csv_config)
16 self.filenames = []
17 self.enabled = csv_config.enabled
18 self.output_path = csv_config.output_path
19 self.job_name = csv_config.job_name
20 self.log_dir = self.setup_log_dir()
21
22 def setup_log_dir(self, base=os.path.join(os.path.expanduser("~"), "csv_monitor")):
23 if self.enabled and dist.get_rank() == 0:

Callers

nothing calls this directly

Calls 1

setup_log_dirMethod · 0.95

Tested by

no test coverage detected