We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 650231f + 107b14d commit 335cc9bCopy full SHA for 335cc9b
swift/megatron/init.py
@@ -74,7 +74,7 @@ def training_log(loss_dict, total_loss_dict, learning_rate, decoupled_learning_r
74
"""Log training information such as losses, timing, ...."""
75
nonlocal jsonl_writer
76
args = get_args()
77
- if is_last_rank() and jsonl_writer is None:
+ if jsonl_writer is None:
78
logging_path = os.path.join(args.save, 'logging.jsonl')
79
logger.info(f'logging_path: {logging_path}')
80
jsonl_writer = JsonlWriter(logging_path, enable_async=True, write_on_rank='last')
0 commit comments