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】Change the dtype of initializing the model #8199

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

heavyrain-lzy
Copy link
Contributor

@heavyrain-lzy heavyrain-lzy commented Mar 27, 2024

PR types

Others

PR changes

Others

Description

The amp of static graph model can't accept a model initialized with dtype float16 or bfloat16, so use the dtype float32 to initialize the model in static graph model.

Copy link

paddle-bot bot commented Mar 27, 2024

Thanks for your contribution!

Copy link

codecov bot commented Mar 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.38%. Comparing base (4d49a3e) to head (d7ce0ca).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #8199   +/-   ##
========================================
  Coverage    55.38%   55.38%           
========================================
  Files          601      601           
  Lines        91764    91764           
========================================
  Hits         50823    50823           
  Misses       40941    40941           

☔ 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 6b8f7f9 into PaddlePaddle:develop Mar 27, 2024
8 of 10 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