MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / test_csv_monitor

Method test_csv_monitor

tests/unit/monitor/test_monitor.py:81–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

79 world_size = 2
80
81 def test_csv_monitor(self):
82 config_dict = {
83 "train_batch_size": 2,
84 "csv_monitor": {
85 "enabled": True,
86 "output_path": "test_output/ds_logs/",
87 "job_name": "test"
88 }
89 }
90 ds_config = DeepSpeedConfig(config_dict)
91 csv_monitor = csvMonitor(ds_config.monitor_config.csv_monitor)
92 assert csv_monitor.enabled == True
93 assert csv_monitor.output_path == "test_output/ds_logs/"
94 assert csv_monitor.job_name == "test"
95
96 def test_empty_csv_monitor(self):
97 config_dict = {"train_batch_size": 2, "csv_monitor": {}}

Callers

nothing calls this directly

Calls 2

DeepSpeedConfigClass · 0.90
csvMonitorClass · 0.90

Tested by

no test coverage detected