Merge pull request #100 from a-r-r-o-w/wandb-tracker-fix

wandb tracker in scheduling problems during the training initiation and training stages
This commit is contained in:
Sayak Paul
2024-11-29 15:08:19 +05:30
committed by GitHub
+1 -1
View File
@@ -536,7 +536,7 @@ def main(args):
# We need to initialize the trackers we use, and also store our configuration.
# The trackers initializes automatically on the main process.
if accelerator.is_main_process:
if accelerator.distributed_type == DistributedType.DEEPSPEED or accelerator.is_main_process:
tracker_name = args.tracker_name or "cogvideox-sft"
accelerator.init_trackers(tracker_name, config=vars(args))