from local

This commit is contained in:
dohe0342 2022-12-13 13:58:47 +09:00
parent e039441a0f
commit 24ba63ed5b
4 changed files with 5 additions and 3 deletions

Binary file not shown.

View File

@ -1013,6 +1013,7 @@ def train_one_epoch(
scaler.scale(loss).backward()
else:
logging.warning(f"Grad scale is small: {cur_grad_scale}")
if params.multi_optim and batch_idx % params.accum_grads == 0:
set_batch_count(model, params.batch_idx_train)
scheduler_enc.step_batch(params.batch_idx_train)

View File

@ -36,13 +36,12 @@ else
--enable-spec-aug False \
--multi-optim True \
--world-size 4 \
--start-batch 34000 \
--num-epochs 30 \
--start-epoch 6 \
--full-libri 1 \
--exp-dir ./pruned_transducer_stateless_d2v_v2/$1 \
--max-duration 150 \
--freeze-finetune-updates 2000 \
--use-fp16 1 \
--freeze-finetune-updates 2000 # --use-fp16 1 \
--peak-enc-lr 0.001 \
--peak-dec-lr 0.5 \
--accum-grads 3 \
@ -55,3 +54,5 @@ else
--context-size 2 \
--ctc-loss-scale 0.2
fi
#--start-epoch 6 \