mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Configure train.py with clipping_scale=2.0
This commit is contained in:
parent
8298333bd2
commit
5f55f80fbb
@ -927,7 +927,8 @@ def run(rank, world_size, args):
|
||||
model = DDP(model, device_ids=[rank])
|
||||
|
||||
optimizer = ScaledAdam(model.parameters(),
|
||||
lr=params.initial_lr)
|
||||
lr=params.initial_lr,
|
||||
clipping_scale=2.0)
|
||||
|
||||
scheduler = Eden(optimizer, params.lr_batches, params.lr_epochs)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user