MediumScenarioDeep learning in practice
Training loss goes to NaN after a few steps. What do you check?
What a good answer covers
Learning rate too high, bad inputs or log of zero, exploding gradients, mixed-precision overflow. Add gradient clipping, normalise inputs, lower the rate and inspect a batch.
PreviousWhat is regularisation and what are L1 and L2?Next Validation loss rises while training loss falls. What actions do you take?
More on Deep learning in practice
Flashcards for this topic- MediumValidation loss rises while training loss falls. What actions do you take?
- HardExplain the attention mechanism and why transformers scale better than RNNs.
- HardGPU memory runs out when training a large model. What are your options?
- MediumWhen does reusing a pretrained model and fine-tuning it beat training from scratch?