Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bce loss log #2741

Merged
merged 1 commit into from
Jan 24, 2025
Merged

Fix bce loss log #2741

merged 1 commit into from
Jan 24, 2025

Conversation

laggui
Copy link
Member

@laggui laggui commented Jan 24, 2025

Checklist

  • Confirmed that run-checks all script has been executed.

Related Issues/PRs

Fixes #2739

Changes

Clamped min values to -100 to avoid -inf in loss calculation (clamp value used based on the linked issue, which uses pytorch as a ref)

Testing

Added unit tests

Copy link

codecov bot commented Jan 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.58%. Comparing base (e40c69b) to head (afd3279).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2741      +/-   ##
==========================================
- Coverage   83.91%   83.58%   -0.34%     
==========================================
  Files         821      824       +3     
  Lines      106890   108252    +1362     
==========================================
+ Hits        89702    90479     +777     
- Misses      17188    17773     +585     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@laggui laggui merged commit e586b17 into main Jan 24, 2025
11 checks passed
@laggui laggui deleted the fix/bce-loss branch January 24, 2025 15:34
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.

Training Issues (NaN) When Migrating from PyTorch
1 participant