Skip to content

Commit 335cc9b

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/write_use_last_rank' into write_use_last_rank
2 parents 650231f + 107b14d commit 335cc9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/megatron/init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def training_log(loss_dict, total_loss_dict, learning_rate, decoupled_learning_r
7474
"""Log training information such as losses, timing, ...."""
7575
nonlocal jsonl_writer
7676
args = get_args()
77-
if is_last_rank() and jsonl_writer is None:
77+
if jsonl_writer is None:
7878
logging_path = os.path.join(args.save, 'logging.jsonl')
7979
logger.info(f'logging_path: {logging_path}')
8080
jsonl_writer = JsonlWriter(logging_path, enable_async=True, write_on_rank='last')

0 commit comments

Comments
 (0)