Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MLPerfCallback for v2.1 #1607

Merged
merged 14 commits into from
Oct 11, 2022
4 changes: 2 additions & 2 deletions composer/callbacks/mlperf.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ def epoch_start(self, state: State, logger: Logger) -> None:

def epoch_end(self, state: State, logger: Logger) -> None:
if _global_rank_zero():
self.mllogger.event(key=constants.EPOCH_STOP, metadata={'epoch_num': self._get_time(state)})
logger.file_artifact(artifact_name=self.upload_name, file_path=self.filename)
self.mllogger.event(key=constants.EPOCH_STOP, metadata={'epoch_num': state.timestamp.epoch.value})
hanlint marked this conversation as resolved.
Show resolved Hide resolved
logger.upload_file(remote_file_name=self.upload_name, file_path=self.filename)

def eval_start(self, state: State, logger: Logger) -> None:
if _global_rank_zero():
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.