Divergence
320 healthy steps, then a simulated LR-schedule incident blows the run up.
Download the input log | Capture method and limits
Timing comparison
1.072x recent / baseline time (s/step)
Timing sources and windows
Source: step_time, from logged metric step_time. 323 timing observations; 0 unusable.
Scroll the timing table horizontally to inspect every column.
Coordinates: step (steps).
Default timing check: first and last 20% of observations, at least five each, without overlap. This describes those windows, not every step of the run. Direct throughput is time per reported unit (such as a sample or token). Unavailable timing does not establish stable speed.
Findings log
ERR
steps 322
divergence
Non-finite training loss
train/loss became Inf at step 322 (1 non-finite point(s) in this run).
first_bad_step=322 count=1
- Inspect the objective and logging reduction separately: an empty batch or empty logging window can produce NaN even while optimizer updates remain finite.
- Check for a divide-by-zero or log(0) in the loss calculation.
- If the optimizer's loss or gradients also become non-finite, inspect the learning rate, gradient clipping and mixed-precision loss scaling.
WARN
steps 320
spikes
Loss spike
eval/loss jumped to 54.88 at step 320 from a level of 0.1838, 29 times the run's progress, for 1 logged point.
peak_step=320 peak_value=54.88 level=0.1838 share_of_progress=29.21 robust_z=83.72 window=21 threshold=6
- Lower the learning rate or add/extend LR warmup.
- Clip gradients (or lower the existing max-norm).
- Check the batch at this step for a data or tokenization bug (e.g. an unmasked pad token, a corrupted shard).
- If the level came straight back and it doesn't recur, it may be one bad batch.
WARN
steps 321
spikes
Loss spike
train/loss jumped to 55.49 at step 321 from a level of 0.1953, 22 times the finite segment's progress, for 1 logged point. Assessed within the finite segment at steps 0-321 (322 observations); no loss trajectory is inferred across NaN/Inf readings.
peak_step=321 peak_value=55.49 level=0.1953 share_of_progress=21.88 robust_z=18.7 window=21 threshold=6 segment_start_step=0 segment_end_step=321 segment_observations=322
- Lower the learning rate or add/extend LR warmup.
- Clip gradients (or lower the existing max-norm).
- Check the batch at this step for a data or tokenization bug (e.g. an unmasked pad token, a corrupted shard).
- If the level came straight back and it doesn't recur, it may be one bad batch.
INFO
steps 290–320
overfitting
Evaluation loss rising
Lowest logged eval/loss in this finite segment was 0.183 at step 290; the last value is 54.88 (299.9x its minimum, slope diagnostic p=0.0833). (Downgraded: a spikes finding at step 321 explains this rise better than ordinary overfitting does.)
segment_start=0 segment_observations=33 best_step=290 best_value=0.183 current_value=54.88 relative_rise=298.9 slope_p_value=0.08326 slope_status=assessed training_status=opposing_trends_not_established training_observations=31 overlap_eval_observations=4 training_step_start=290 training_step_end=320 overlap_eval_step_start=290 overlap_eval_step_end=320 training_scaled_slope=-0.002497 training_slope_p_value=0.4069 overlap_eval_scaled_slope=0.0299 overlap_eval_slope_p_value=0.08326
- If a checkpoint was saved near step 290, compare it with the last saved checkpoint on the same evaluation examples.
- Check evaluation-data and metric-definition changes before attributing the rise to training.
- If the regression persists on a comparable evaluation set, consider early stopping, regularization, or more training data.
INFO
steps 319–322
lr_schedule
LR rose after decay
lr fell from 0.4 at step 20 to 1.097e-05 at step 319, then rose to 30 at step 322. This can be an intended cycle or restart; the log alone does not establish a scheduler fault.
earlier_peak=0.4 peak_step=20 low_value=1.1e-05 low_step=319 high_value=30 high_step=322 confirmed_step=320 rise_fraction_of_peak=1 bump_tolerance=0.01
- If this matches an intended cycle or warm restart, no correction is needed.
- Otherwise, check that scheduler state was restored with the optimizer after a checkpoint resume.
- Check the scheduler's configured horizon and how often scheduler.step() is called.
INFO
steps 321
grad_norm
Gradient-norm explosion
grad_norm exceeded 10x its rolling median 1 time; the largest was 23.02 at step 321, 57x the median around it. Compare the logged loss and optimizer updates; the norm alone does not establish clipping or an effect on training.
count=1 peak_step=321 peak_value=23.02 ratio_to_median=57.02
- Enable or lower gradient clipping (e.g. max-norm 1.0).
- Lower the learning rate.
- Check the batch at this step for an outlier example (e.g. a corrupted/extreme-length sample).
INFO
steps 322
grad_norm
Non-finite gradient norm
grad_norm has 1 NaN or infinite reading, first at step 322.
first_bad_step=322 count=1 distinct_bad_steps=1 trajectory_status=available
- Inspect gradient computation and norm measurement at these steps; a logged non-finite norm alone does not establish its cause.
- If using mixed precision, inspect the gradient scaler and whether the optimizer skipped these updates.
- If the loss went non-finite too, see the divergence finding.