Skip to content

Commit

Permalink
yo
Browse files Browse the repository at this point in the history
  • Loading branch information
snarayan21 committed Jul 29, 2024
1 parent 10b1ea9 commit b3b70fc
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions llmfoundry/callbacks/hf_checkpointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,13 @@ def __init__(
)

self.mlflow_logging_config = mlflow_logging_config
self.pretrained_model_name = self.mlflow_logging_config['metadata'].get(
'pretrained_model_name',
None,
)
if 'metadata' in self.mlflow_logging_config:
self.pretrained_model_name = self.mlflow_logging_config['metadata'].get(
'pretrained_model_name',
None,
)
else:
self.pretrained_model_name = None

self.huggingface_folder_name_fstr = os.path.join(
'huggingface',
Expand Down

0 comments on commit b3b70fc

Please sign in to comment.