from local

This commit is contained in:
dohe0342 2023-01-28 02:54:10 +09:00
parent 36291af8ad
commit e5a947bc8a
2 changed files with 1 additions and 1 deletions

View File

@ -983,7 +983,7 @@ def run(rank, world_size, args):
model.to(device)
if world_size > 1:
logging.info("Using DDP")
model = DDP(model, device_ids=[rank], find_unused_parameters=False)
model = DDP(model, device_ids=[rank], find_unused_parameters=True)
optimizer = Eve(model.parameters(), lr=params.initial_lr)