mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
5c805566eb
commit
c13700987f
Binary file not shown.
@ -329,7 +329,6 @@ def get_parser() -> argparse.ArgumentParser:
|
||||
"--unused-params",
|
||||
type=str2bool,
|
||||
default=False,
|
||||
help="Whether to use half precision training.",
|
||||
)
|
||||
|
||||
add_model_arguments(parser)
|
||||
@ -1067,7 +1066,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=params.unused_params)
|
||||
|
||||
optimizer = optim.Eve(model.parameters(), lr=params.initial_lr)
|
||||
scheduler = optim.Eden(optimizer, params.lr_batches, params.lr_epochs)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user