Skip to content

Commit

Permalink
fixed failed assertion in the xbmu_ambo31 recipe (#1816)
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZr authored Nov 29, 2024
1 parent 18fa6a0 commit a1ade8e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion egs/xbmu_amdo31/ASR/pruned_transducer_stateless7/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,16 @@ def run(rank, world_size, args):
logging.info("Using DDP")
model = DDP(model, device_ids=[rank], find_unused_parameters=True)

optimizer = ScaledAdam(model.parameters(), lr=params.base_lr, clipping_scale=2.0)
parameters_names = []
parameters_names.append(
[name_param_pair[0] for name_param_pair in model.named_parameters()]
)
optimizer = ScaledAdam(
model.parameters(),
lr=params.base_lr,
clipping_scale=2.0,
parameters_names=parameters_names,
)

scheduler = Eden(optimizer, params.lr_batches, params.lr_epochs)

Expand Down

0 comments on commit a1ade8e

Please sign in to comment.