Bank
37 / 87
Training stabilityMultiple choiceEasy

Your fp32 training loop computes the softmax as and then the loss .

Once any logit passes about 89 the loss becomes NaN, and on examples where rounds to zero the loss is infinite.

How would you compute the loss so neither happens?