Skip to content

Commit

Permalink
Even more detailed logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgiosSmyrnis committed May 14, 2024
1 parent 236817a commit e10d61d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions open_lm/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
check_exists,
start_sync_process,
remote_sync_with_expon_backoff,
get_metadata_file,
get_string_for_epoch,
log_num_checkpoints,
terminate_sync_process,
Expand Down Expand Up @@ -875,6 +876,9 @@ def main(args):
if args.dataset_manifest is not None:
for i in range(len(next_shard_per_source)):
end_of_epoch_log[f"next_shard_{i}"] = next_shard_per_source[i]
end_of_epoch_log[f"dataset_pass_{i}"] = next_shard_per_source[i] // len(
get_metadata_file(args.dataset_manifest[i])
)

for name, val in end_of_epoch_log.items():
name = "train/" + name
Expand Down

0 comments on commit e10d61d

Please sign in to comment.