Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wenfeiy-db committed Nov 9, 2023
1 parent e416b96 commit d47cf4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llmfoundry/utils/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def build_callback(name: str, kwargs: Dict[str, Any]) -> Callback:
return EarlyStopper(**kwargs)
elif name == 'hf_checkpointer':
mlflow_logging_config = kwargs.pop('mlflow_logging_config', None)
if isinstance(mlflow_logging_config, omegaconf.dictconfig.DictConfig):
if isinstance(mlflow_logging_config, DictConfig):
mlflow_logging_config = om.to_object(mlflow_logging_config)
kwargs['mlflow_logging_config'] = mlflow_logging_config
return HuggingFaceCheckpointer(**kwargs)
Expand Down

0 comments on commit d47cf4d

Please sign in to comment.