Skip to content

Fix inf val loss in early epochs#50

Merged
michaelmckinsey1 merged 2 commits into
LBANN:mainfrom
PatrickRMiles:miles30/debug_val_loss_inf
Apr 16, 2026
Merged

Fix inf val loss in early epochs#50
michaelmckinsey1 merged 2 commits into
LBANN:mainfrom
PatrickRMiles:miles30/debug_val_loss_inf

Conversation

@PatrickRMiles

@PatrickRMiles PatrickRMiles commented Apr 15, 2026

Copy link
Copy Markdown
Collaborator

We've seen that early epochs have inf val_loss_epoch and val_loss_avg. This was caused by the validation CE loss being accumulated in AMP precision -- the local CE sum over samples at scale 7+ overflows in float16.

This PR disables AMP for the local CE calculation, preventing the f16 cast and subsequent overflow.

@michaelmckinsey1
michaelmckinsey1 merged commit ad95456 into LBANN:main Apr 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants