from local

This commit is contained in:
dohe0342 2023-02-21 02:15:39 +09:00
parent 368f98c5ee
commit 8db84cbfd4
2 changed files with 1 additions and 1 deletions

View File

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