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.
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.