Skip to content

Commit

Permalink
pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg committed Sep 27, 2023
1 parent 6180466 commit 62a0fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llmfoundry/callbacks/hf_checkpointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def _save_checkpoint(self, state: State, logger: Logger):
overwrite=self.overwrite,
)

if self.log_to_mlflow and state.get_elapsed_duration() >= 1.0:
if self.log_to_mlflow and state.get_elapsed_duration() is not None and state.get_elapsed_duration() >= 1.0:
log.debug('Reloading model to log to MLFlow')

from torch.distributed.fsdp import \
Expand Down

0 comments on commit 62a0fd6

Please sign in to comment.