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

【AutoParallel】Support bf16 loss in static #7874

Merged
merged 2 commits into from
Jan 24, 2024

Conversation

heavyrain-lzy
Copy link
Contributor

@heavyrain-lzy heavyrain-lzy commented Jan 21, 2024

PR types

Others

PR changes

Others

Description

Support to log loss with dtype bfloat16 aligning to dygraph

metrics[f"{metric_key_prefix}_loss"] = all_losses.mean().item()

Copy link

paddle-bot bot commented Jan 21, 2024

Thanks for your contribution!

Copy link

codecov bot commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4a9c766) 56.69% compared to head (be64171) 56.69%.
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #7874   +/-   ##
========================================
  Coverage    56.69%   56.69%           
========================================
  Files          588      588           
  Lines        89315    89315           
========================================
  Hits         50641    50641           
  Misses       38674    38674           

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

Copy link
Collaborator

@zhiqiu zhiqiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zhiqiu zhiqiu merged commit ca79444 into PaddlePaddle:develop Jan 24, 2024
9 checks 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