Skip to content

Commit

Permalink
The variable name has been updated. (#2970)
Browse files Browse the repository at this point in the history
  • Loading branch information
kadirnar committed Apr 6, 2023
1 parent a9477bb commit 37b359b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,14 +405,14 @@ def main():
args = parse_args()
logging_dir = Path(args.output_dir, args.logging_dir)

accelerator_project_config = ProjectConfiguration(total_limit=args.checkpoints_total_limit)
project_config = ProjectConfiguration(total_limit=args.checkpoints_total_limit)

accelerator = Accelerator(
gradient_accumulation_steps=args.gradient_accumulation_steps,
mixed_precision=args.mixed_precision,
log_with="tensorboard",
logging_dir=logging_dir,
accelerator_project_config=accelerator_project_config,
project_config=project_config,
)

# Currently, it's not possible to do gradient accumulation when training two models with accelerate.accumulate
Expand Down

0 comments on commit 37b359b

Please sign in to comment.