Skip to content

Commit

Permalink
fix no logging command line arg
Browse files Browse the repository at this point in the history
  • Loading branch information
sALTaccount authored Apr 22, 2023
1 parent f256660 commit dc37fd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/train_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2761,6 +2761,8 @@ def prepare_accelerator(args: argparse.Namespace):
if logging_dir is not None:
os.makedirs(logging_dir, exist_ok=True)
os.environ["WANDB_DIR"] = logging_dir
else:
log_with = None

accelerator = Accelerator(
gradient_accumulation_steps=args.gradient_accumulation_steps,
Expand Down

0 comments on commit dc37fd2

Please sign in to comment.