Skip to content

Commit

Permalink
skip log (#3446)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvpatel2000 authored Jul 1, 2024
1 parent 29ed31e commit 8fd9c11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer/loggers/mosaicml_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ def predict_end(self, state: State, logger: Logger) -> None:
self._flush_metadata(force_flush=True)

def close(self, state: State, logger: Logger) -> None:
self._flush_metadata(force_flush=True, future=False)
# Skip flushing metadata as it should be logged by fit/eval/predict_end. Flushing here
# might schedule futures while interpreter is shutting down, which will raise an error.
if self._enabled:
wait(self._futures) # Ignore raised errors on close

Expand Down

0 comments on commit 8fd9c11

Please sign in to comment.