NaN On Step 300
Training runs smoothly for 300 steps at a learning rate that has worked on this model before. The printed loss goes 0.691, 0.412, 0.221, ..., 0.004, then one step prints nan and every step after it is nan. The loss is hand-written:
p = 1 / (1 + np.exp(-logits)) # float32
loss = -(y * np.log(p) + (1 - y) * np.log(1 - p)).mean()
Which explanation fits this trace?
Sign in to answer questions and track your progress
Sign In