modelscope/FunASR

math.exp can lead to overflow

Opened this issue · 0 comments

Here,

f"(ppl_avg_slice: {math.exp(loss_avg_epoch):.3e}), "

math.exp can easily lead to overflow causing unnecessary termination of training. Same with
f"(ppl_avg_slice: {math.exp(loss_avg_epoch):.3e}), "