from local

This commit is contained in:
dohe0342 2022-12-13 11:40:39 +09:00
parent 0c78b6761b
commit e763a4e7b8
2 changed files with 1 additions and 5 deletions

View File

@ -1306,11 +1306,7 @@ def run(rank, world_size, args, wb=None):
logging.info("Loading optimizer state dict")
optimizer.load_state_dict(checkpoints["optimizer"])
if (
checkpoints
and ("scheduler" in checkpoints or "scheduler_enc" in checkpoints)
and checkpoints["scheduler"] is not None
):
if checkpoints:
if (
params.multi_optim
and "scheduler_enc" in checkpoints