from local
This commit is contained in:
parent
0c78b6761b
commit
e763a4e7b8
Binary file not shown.
@ -1306,11 +1306,7 @@ def run(rank, world_size, args, wb=None):
|
|||||||
logging.info("Loading optimizer state dict")
|
logging.info("Loading optimizer state dict")
|
||||||
optimizer.load_state_dict(checkpoints["optimizer"])
|
optimizer.load_state_dict(checkpoints["optimizer"])
|
||||||
|
|
||||||
if (
|
if checkpoints:
|
||||||
checkpoints
|
|
||||||
and ("scheduler" in checkpoints or "scheduler_enc" in checkpoints)
|
|
||||||
and checkpoints["scheduler"] is not None
|
|
||||||
):
|
|
||||||
if (
|
if (
|
||||||
params.multi_optim
|
params.multi_optim
|
||||||
and "scheduler_enc" in checkpoints
|
and "scheduler_enc" in checkpoints
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user