from local

This commit is contained in:
dohe0342 2022-12-10 15:00:11 +09:00
parent c06244081c
commit 2387a1b380
2 changed files with 2 additions and 1 deletions

View File

@ -1046,7 +1046,8 @@ def train_one_epoch(
f"Epoch {params.cur_epoch}, "
f"batch {batch_idx}, loss[{loss_info}], "
f"tot_loss[{tot_loss}], batch size: {batch_size}, "
f"lr: {cur_lr:.2e}, "
f"enc lr: {cur_lr:.2e}, "
f"dec lr: {cur_lr:.2e}, "
+ (f"grad_scale: {scaler._scale.item()}" if params.use_fp16 else "")
)