Skip to content

Commit

Permalink
The variable name has been updated. (huggingface#2970)
Browse files Browse the repository at this point in the history
  • Loading branch information
kadirnar authored and Jimmy committed Apr 26, 2024
1 parent aa3b602 commit 46d0115
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 46d0115

Please sign in to comment.