179 questions
No questions match those filters.
← All questions
LLMOps & ProductionHard· Training Stability· Debugging· Gradient Monitoring
You are training a 70B model and gradient norm spikes a...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansWhen encountering gradient norm spikes, the first step is to implement per-layer gradient monitoring to determine if the spikes originate in the attention blocks or the output projection. To address these issues, one might introduce QK-norm for the attention path to bound logits and z-loss for the output path to penalize logit scale. Additionally, it is critical to verify if the current learning rate remains within the stable descent region of the cosine schedule.