Skip to content

Commit

Permalink
Remove strict checkpoint logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ash0ts committed Dec 1, 2023
1 parent 55466a9 commit 7de4ba5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/lightning/fabric/loggers/wandb.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,9 +655,9 @@ def save(self) -> None:
@override
@rank_zero_only
def finalize(self, status: str) -> None:
if status != "success":
# Currently, checkpoints only get logged on success
return
# if status != "success":
# # Currently, checkpoints only get logged on success
# return
# log checkpoints as artifacts
if self._checkpoint_callback and self._experiment is not None:
self._scan_and_log_pytorch_checkpoints(self._checkpoint_callback)
Expand Down
6 changes: 3 additions & 3 deletions src/lightning/pytorch/loggers/wandb.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,9 @@ def use_artifact(self, artifact: str, artifact_type: Optional[str] = None) -> "A
@override
@rank_zero_only
def finalize(self, status: str) -> None:
if status != "success":
# Currently, checkpoints only get logged on success
return
# if status != "success":
# # Currently, checkpoints only get logged on success
# return
# log checkpoints as artifacts
if self._checkpoint_callback and self._experiment is not None:
self._scan_and_log_checkpoints(self._checkpoint_callback)
Expand Down

0 comments on commit 7de4ba5

Please sign in to comment.