We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e90052 commit 6218583Copy full SHA for 6218583
torchtune/training/metric_logging.py
@@ -46,7 +46,7 @@ def save_config(config: DictConfig) -> Path:
46
OmegaConf.save(config, output_config_fname)
47
return output_config_fname
48
except Exception as e:
49
- log.warning(f"Error saving config to {output_config_fname}.\nError: \n{e}.")
+ log.warning(f"Error saving config.\nError: \n{e}.")
50
51
52
class MetricLoggerInterface(Protocol):
@@ -421,7 +421,8 @@ def __init__(
421
) from e
422
423
# Remove 'log_dir' from kwargs as it is not a valid argument for comet_ml.ExperimentConfig
424
- del kwargs["log_dir"]
+ if "log_dir" in kwargs:
425
+ del kwargs["log_dir"]
426
427
_, self.rank = get_world_size_and_rank()
428
0 commit comments