(self)
| 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": {}} |
nothing calls this directly
no test coverage detected