Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/allenai/LLM
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkgr committed Jul 18, 2024
2 parents 66d2be7 + 37756a7 commit 345edc6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions olmo/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -1154,9 +1154,12 @@ def on_trace_ready(p):
# Log metrics to console.
if self.global_step % self.cfg.console_log_interval == 0:
if get_global_rank() == 0:
self.log_metrics_to_console(f"[step={self.global_step}/{self.max_steps}]", metrics)
self.log_metrics_to_console(
f"[step={self.global_step}/{self.max_steps},epoch={epoch}/{self.max_epochs}]",
metrics,
)
else:
log.info(f"[step={self.global_step}/{self.max_steps}]")
log.info(f"[step={self.global_step}/{self.max_steps},epoch={epoch}/{self.max_epochs}]")

# Log metrics to W&B.
if (
Expand Down

0 comments on commit 345edc6

Please sign in to comment.