Skip to content
Snippets Groups Projects
Commit afe75cd9 authored by Alexandre Chapin's avatar Alexandre Chapin :race_car:
Browse files

Change strategy

parent c50a1ab9
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ def main():
trainer = pl.Trainer(accelerator="gpu", devices=num_gpus, profiler="simple",
default_root_dir="./logs", logger=WandbLogger(project="slot-att") if args.wandb else None,
strategy="ddp" if num_gpus > 1 else "default", callbacks=[checkpoint_callback],
strategy="ddp_find_unused_parameters_true" if num_gpus > 1 else "default", callbacks=[checkpoint_callback],
log_every_n_steps=100, max_steps=num_train_steps)
trainer.fit(model, train_loader, val_loader)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment